Search Results jai_ap_invoice_lines
Overview
The AP_INVOICE_LINES_ALL table is a core transactional entity within the Oracle E-Business Suite Payables module (AP). It serves as the central repository for all line-level detail associated with supplier invoices. Every invoice entered into the system, whether created manually, generated automatically (e.g., from recurring invoices or expense reports), or imported via the Payables Open Interface, has its itemized charges, quantities, and descriptions stored in this table. Its multi-organization architecture, denoted by the "_ALL" suffix, allows it to store data for multiple operating units, making it a fundamental table for enterprise-wide invoice processing and reporting.
Key Information Stored
The table's primary key is a composite of INVOICE_ID and LINE_NUMBER, uniquely identifying each line on an invoice. Beyond these identifiers, critical columns capture the financial and descriptive essence of the invoice line. This includes the LINE_TYPE_LOOKUP_CODE (distinguishing between ITEM, TAX, FREIGHT, etc.), the AMOUNT, QUANTITY_INVOICED, UNIT_PRICE, and DESCRIPTION. For invoices matched to purchase orders or receipts, the table maintains referential integrity through foreign key columns such as PO_LINE_LOCATION_ID and RCV_SHIPMENT_LINE_ID. Other significant fields include the ACCOUNTING_DATE, DISTRIBUTION_SET_ID for automatic accounting, and various tax-related identifiers.
Common Use Cases and Queries
This table is integral for invoice inquiry, audit reports, and custom accounting analyses. A common scenario is tracing the detailed composition of an approved invoice for reconciliation. A typical query joins AP_INVOICE_LINES_ALL to AP_INVOICES_ALL to retrieve line details for a specific invoice number or supplier.
- Invoice Line Detail Report: SELECT aia.invoice_num, aia.invoice_date, aila.line_number, aila.line_type_lookup_code, aila.amount, aila.description FROM ap_invoices_all aia, ap_invoice_lines_all aila WHERE aia.invoice_id = aila.invoice_id AND aia.invoice_num = '<INVOICE_NUMBER>' ORDER BY aila.line_number;
- Analysis of Line Types: Analyzing the distribution of charges (e.g., Item vs. Freight vs. Tax) across a set of invoices.
- Interface and Integration: Data from this table is often sourced for populating subledger accounting events and for feeding external financial reporting systems.
Related Objects
AP_INVOICE_LINES_ALL has a primary parent-child relationship with the invoice header table, AP_INVOICES_ALL. Its most critical relationship is with the AP_INVOICE_DISTRIBUTIONS_ALL table, where each invoice line's amount is allocated to one or more accounting distributions. The provided metadata shows multiple foreign keys (AIL_INVOICE_ID, AIL_INVOICE_ID2, etc.) linking to this distribution table. For matched invoices, it references purchasing and receiving tables (PO_LINE_LOCATIONS_ALL, RCV_SHIPMENT_LINES). It is also referenced by other modules, as evidenced by the foreign key from the India Localization table JAI_AP_INVOICE_LINES. Key APIs, such as AP_INVOICES_PKG and AP_INVOICE_LINES_PKG, are used to validate and maintain data in this table.
-
Table: AP_INVOICE_LINES_ALL
12.1.1
owner:AP, object_type:TABLE, fnd_design_data:SQLAP.AP_INVOICE_LINES_ALL, object_name:AP_INVOICE_LINES_ALL, status:VALID, product: AP - Payables , description: AP_INVOICE_LINES_ALL contains records for invoice lines entered manually, generated automatically or imported from the Open Interface. , implementation_dba_data: AP.AP_INVOICE_LINES_ALL ,
-
Table: AP_INVOICE_LINES_ALL
12.2.2
owner:AP, object_type:TABLE, fnd_design_data:SQLAP.AP_INVOICE_LINES_ALL, object_name:AP_INVOICE_LINES_ALL, status:VALID, product: AP - Payables , description: AP_INVOICE_LINES_ALL contains records for invoice lines entered manually, generated automatically or imported from the Open Interface. , implementation_dba_data: AP.AP_INVOICE_LINES_ALL ,