AP Invoices and Lines
Description:
Detail Invoice Aging report with line item details and amounts
Parameter explanation:
-
Invoice on Hold (LOV: Yes/No) Default Value = Null (Hold Status not considered as per current behaviour) Yes - Only Invoices that currently have an unreleased hold will be retrieved No - Only Invoices that do not currently have an unreleased hold will be retrieved
-
Hold Name (LOV: AP Hold Names) Default Value Null If specified - only Invoices that currently have an unreleased hold of the specified name will be retrieved
Hold column explanation:
- Holds - a list of the current unreleased holds against the invoice
- Hold Dates - the Hold Date
- Holds Held By - the name of user who applied the holds
- Hold PO References - Identifies the matching POs for PO Matching Holds in the format: PO Number(Release number)(Line Number)(Shipment Number)
- Hold Receipt References - Identifies the matching Receipts for Receipt Matching Holds in the format: Receipt Number(Line Number)
Parameters
Ledger, Operating Unit, Aging Bucket Name, Display Level, Supplier, Supplier Site, Invoice Number, Invoice Date Period, Invoice Date From, Invoice Date To, Accounting Period, Accounting Date From, Accounting Date To, Payment Period, Payment Date From, Payment Date To, Open only, Days Overdue, Invoice Type, Invoice Status, Payment Status, Expense Account From, Expense Account To, Exclude Cancelled, Invoice on Hold, Hold Name, Has Attachment, Creation Date From, Creation Date To, Show DFF Attributes, Show Attachments, Show SLA Accounting
Used tables
xla_transaction_entities, xla_events, fnd_attached_documents, ap_invoice_payments_all, ap_checks_all, po_headers_all, po_distributions_all, rcv_transactions
Categories
Dependencies
If you would like to try one of these Oracle EBS SQLs without having Blitz Report installed, note that some of the reports require functions from utility package xxen_util.
Example Report
AP Invoices and Lines 29-Jul-2020 201730.xlsx
Report SQL
www.enginatics.com/reports/ap-invoices-and-lines/
Blitz Report™ import options
Case Study & Technical Analysis: AP Invoices and Lines
1. Executive Summary
Business Problem
Managing Accounts Payable requires deep visibility into invoice details to ensure timely payments, accurate accounting, and effective cash flow management. Standard Oracle reports often provide either a high-level summary (Aging) or specific transactional details (Register), but rarely combine both effectively. Finance teams struggle with:
- Hold Resolution: Identifying why invoices are blocked from payment (e.g., Price Variance, Qty Received).
- Reconciliation: Verifying that invoice header totals match the sum of lines, taxes, and freight.
- Aging Analysis: Understanding the detailed composition of overdue balances.
- Audit Compliance: Tracing invoices back to their source (PO, Receipt) and verifying approval status.
Solution Overview
The AP Invoices and Lines report is a comprehensive operational tool that bridges the gap between high-level aging and detailed transaction analysis. It provides a flattened view of AP data, combining Invoice Headers, Lines, Payment Schedules, and Hold details into a single, pivot-friendly dataset. This allows AP Managers and Accountants to drill down from a supplier’s total outstanding balance to the specific line items and hold reasons causing delays.
Key Benefits
- Holistic View: Combines Header, Line, and Payment Schedule data in one report.
- Hold Management: Detailed visibility into active holds, including the user who placed them and the date.
- Financial Accuracy: distinct columns for Item, Tax, Freight, and Miscellaneous amounts to ensure accurate sub-ledger reporting.
- Aging Insight: Dynamic calculation of “Days Due” and aging buckets for precise cash flow forecasting.
- Process Efficiency: Reduces the time spent navigating multiple Oracle screens to gather invoice status information.
2. Technical Analysis
Core Tables and Views
The report queries the core AP transactional tables:
AP_INVOICES_ALL: Primary header table containing invoice number, supplier, dates, and status.AP_INVOICE_LINES_ALL: Detailed line items (Item, Tax, Freight).AP_PAYMENT_SCHEDULES_ALL: Tracks due dates, remaining balances, and payment status.AP_HOLDS_ALL: Stores details on invoice holds.PO_HEADERS_ALL/PO_LINES_ALL: Linked for PO-matched invoices.XLA_EVENTS/XLA_TRANSACTION_ENTITIES: Used to derive the accounting status.
SQL Logic and Data Flow
The SQL is designed to handle the one-to-many relationships inherent in AP data (One Invoice -> Many Lines -> Many Holds).
- Denormalization: The query flattens the hierarchy, repeating header information for each line item. This is optimized for Excel pivot tables.
- Calculated Fields:
invoice_total: Dynamically calculated as (Item + Tax + Freight + Misc - Prepayments - Withholding).days_due: Calculated based on the system date versus the due date.invoice_status: Derived logic to determine if an invoice is ‘Validated’, ‘Needs Revalidation’, or ‘Cancelled’.
- Utility Functions: Uses
ap_invoices_utility_pkgto fetch summarized totals (e.g.,get_item_total,get_tax_total) ensuring consistency with Oracle forms. - Conditional Decoding: Uses
decode(ap_inv.first_invoice,'Y', ...)to ensure that header-level amounts (like Invoice Amount) are only summed once per invoice when aggregating lines, preventing double-counting in pivot tables.
Integration Points
- Purchasing: Links to POs for matching details.
- General Ledger: Provides GL Dates and Account Code Combinations.
- Payments: Links to
AP_CHECKS_ALL(via payment schedules) to show payment history. - SLA (Subledger Accounting): Links to XLA tables for accounting status.
3. Functional Capabilities
Reporting Dimensions
- Supplier Analysis: Group by Supplier and Site to see total liability.
- Aging: Analyze open balances by Due Date buckets (Current, 1-30, 31-60, etc.).
- Status Tracking: Filter by ‘Invoice on Hold’ to target problem invoices.
- Expense Analysis: Analyze spend by GL Account or Cost Center (derived from distribution lines).
Key Parameters
- Date Ranges: Invoice Date, GL Date, Creation Date.
- Status Filters: Invoice Status (Validated, Cancelled), Payment Status (Paid, Unpaid, Partial).
- Hold Filters: Filter by specific Hold Names (e.g., “Qty Recv”, “Max Ship Amount”).
- Supplier/Invoice: Filter for specific vendors or transaction numbers.
4. Implementation Considerations
Performance
- Data Volume: For high-volume environments, it is recommended to run this report for specific date ranges or Supplier groups to avoid performance issues.
- Indexing: Ensure standard Oracle indexes on
AP_INVOICES_ALL(Invoice Date, Vendor ID) are active.
Best Practices
- Pivot Tables: The output is designed for Excel Pivot Tables. Users should be trained to use the “First Invoice” flag or specific Line Amount columns to avoid double-counting header totals.
- Month-End Close: Use this report during month-end to identify unvalidated invoices or those on hold that need resolution before the period closes.
Oracle E-Business Suite Reporting Library
We provide an open source Oracle EBS SQLs as a part of operational and project implementation support toolkits for rapid Excel reports generation.
Blitz Report™ is based on Oracle EBS forms technology, and hence requires minimal training. There are no data or performance limitations since the output files are created directly from the database without going through intermediate file formats such as XML.
Blitz Report can be used as BI Publisher and Oracle Discoverer replacement tool. Standard Oracle BI Publisher and Discoverer reports can also be imported into Blitz Report for immediate output to Excel. Typically, reports can be created and version tracked within hours instead of days. The concurrent request output automatically opens upon completion without the need for re-formatting.
The Filters, Columns, Rows and Values fields are used to create and deliver the data in pivot table format with full drill down to details.

The Excel template upload functionality in Blitz Report allows users to create their own layouts by uploading an Excel template with additional sheets and charts, automatically refreshed when the report runs again. This allows to create custom dashboards and more advanced visualizations of report data.

You can download and use Blitz Report free of charge for your first 30 reports.
The installation and implementation process usually takes less than 1 hour; you can refer to our installation and user guides for specific details.
If you would like to optimize your Oracle EBS implementation and or operational reporting you can visit www.enginatics.com to review great ideas and example usage in blog. Or why not try for yourself in our demo environment.
Useful Links
Blitz Report™ – World’s fastest data upload and reporting for Oracle EBS
Oracle Discoverer replacement – importing worksheets into Blitz Report™
Blitz Report™ Questions & Answers
Supply Chain Hub by Blitz Report™
© 2025 Enginatics