Search Results ap_invoice_lines_all
Overview
AP_INVOICE_LINES_ALL is the core Payables table in Oracle E-Business Suite (validated in 12.1.1 and 12.2.2) that stores every invoice line record in the AP module. It resides in the AP schema and holds lines entered manually, generated automatically by matching, prepayment, or recurring invoice processes, or imported through the Payables Open Interface. Each row represents a single line on an invoice header defined in AP_INVOICES_ALL, capturing the amount, quantity, tax, matching, and accounting attributes that drive distribution creation, approval, and payment. Because header-level records are stored separately, the line table functions as a child satellite relative to the invoice header. The Data Vault classification heuristic (mined from the FK structure) suggests a satellite-leaning classification, supported by its dependency on AP_INVOICES_ALL and its own detailed descriptive columns.
Key Information Stored
The primary key is defined by the AIL_PK constraint on the composite columns INVOICE_ID and LINE_NUMBER, which is also the business-key candidate enforced by the unique index AP_INVOICE_LINES_U1. Major columns include:
- INVOICE_ID, LINE_NUMBER — composite key linking the line to its invoice header and defining its sequence.
- LINE_TYPE_LOOKUP_CODE — classifies the line (for example, Item, Freight, Tax, Miscellaneous).
- AMOUNT, BASE_AMOUNT, ORIGINAL_AMOUNT — entered and functional-currency line amounts used in accounting and matching.
- QUANTITY_INVOICED, UNIT_PRICE, UNIT_MEAS_LOOKUP_CODE — quantity and pricing detail for item and service lines.
- LINE_SOURCE — indicates whether the line was entered manually or generated by another process.
- MATCH_TYPE, PO_HEADER_ID, PO_LINE_ID, PO_LINE_LOCATION_ID, PO_DISTRIBUTION_ID — purchasing match references to PO entities.
- RCV_SHIPMENT_LINE_ID, RCV_TRANSACTION_ID — receipt-matching references.
- DISTRIBUTION_SET_ID, DEFAULT_DIST_CCID — defaults used to generate invoice distributions.
- ACCOUNTING_DATE, PERIOD_NAME, SET_OF_BOOKS_ID — accounting context for the line.
- TAX_*, TOTAL_REC_TAX_AMOUNT, TOTAL_NREC_TAX_AMOUNT, INCLUDED_TAX_AMOUNT — tax calculation and reporting attributes.
- WFAPPROVAL_STATUS, DISCARDED_FLAG, CANCELLED_FLAG, FINAL_MATCH_FLAG — workflow and lifecycle state indicators.
- CREATION_DATE, CREATED_BY, LAST_UPDATE_DATE, LAST_UPDATED_BY — standard audit columns.
Common Use Cases and Queries
Typical reporting and reconciliation queries join lines to their invoice headers and to distributions. A common pattern retrieves all lines for an invoice:
SELECT ail.line_number, ail.line_type_lookup_code, ail.amount, ail.quantity_invoiced FROM ap_invoice_lines_all ail WHERE ail.invoice_id = :p_invoice_id ORDER BY ail.line_number;- Purchase order match analysis joins PO_LINE_LOCATION_ID to PO_LINE_LOCATIONS_ALL to reconcile invoiced versus ordered quantities.
- Receipt matching joins RCV_SHIPMENT_LINE_ID to RCV_SHIPMENT_LINES to verify receipt-based accruals.
- Tax reporting aggregates TOTAL_REC_TAX_AMOUNT and TOTAL_NREC_TAX_AMOUNT by TAX_REGIME_CODE or PERIOD_NAME.
- Approval and workflow dashboards filter on WFAPPROVAL_STATUS and DISCARDED_FLAG.
These patterns support accrual reconciliation, three-way match exceptions, aging, and audit reporting, and are frequently the foundation of custom Payables extracts.
Related Objects
AP_INVOICE_LINES_ALL is tightly coupled to several core Payables and non-Payables entities:
- AP_INVOICES_ALL — header table joined on INVOICE_ID (and AIL_INVOICE_ID references).
- AP_INVOICE_DISTRIBUTIONS_ALL — child distributions joined on INVOICE_ID and INVOICE_LINE_NUMBER, where distributions reference this table.
- PO_LINE_LOCATIONS_ALL — purchasing match via PO_LINE_LOCATION_ID.
- PO_RELEASES_ALL — release reference via PO_RELEASE_ID.
- RCV_SHIPMENT_LINES — receipt matching via RCV_SHIPMENT_LINE_ID.
- ZX_LINES_SUMMARY — tax summary via SUMMARY_TAX_LINE_ID.
- IGF_AW_AWARD_ALL — grants award reference via AWARD_ID.
- JAI_AP_INVOICE_LINES — localization table referencing INVOICE_ID and INVOICE_LINE_NUMBER.
These relationships make AP_INVOICE_LINES_ALL the central hub for invoice line-level processing across purchasing, receiving, tax, and accounting subledgers.
-
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 ,
-
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 ,
-
APPS.JA_CN_CUSTOM_SOURCES SQL Statements
12.1.1
-
APPS.JA_CN_CUSTOM_SOURCES SQL Statements
12.2.2
-
APPS.POS_AP_INVOICES_PKG SQL Statements
12.1.1
-
APPS.JAI_AP_TOLERANCE_PKG SQL Statements
12.2.2
-
APPS.JAI_AP_TOLERANCE_PKG SQL Statements
12.1.1
-
Table: AP_INVOICE_DISTRIBUTIONS_ALL
12.1.1
owner:AP, object_type:TABLE, fnd_design_data:SQLAP.AP_INVOICE_DISTRIBUTIONS_ALL, object_name:AP_INVOICE_DISTRIBUTIONS_ALL, status:VALID, product: AP - Payables , description: Invoice distribution line information , implementation_dba_data: AP.AP_INVOICE_DISTRIBUTIONS_ALL ,
-
Table: AP_INVOICE_DISTRIBUTIONS_ALL
12.2.2
owner:AP, object_type:TABLE, fnd_design_data:SQLAP.AP_INVOICE_DISTRIBUTIONS_ALL, object_name:AP_INVOICE_DISTRIBUTIONS_ALL, status:VALID, product: AP - Payables , description: Invoice distribution line information , implementation_dba_data: AP.AP_INVOICE_DISTRIBUTIONS_ALL ,
-
APPS.POS_AP_INVOICES_PKG SQL Statements
12.2.2
-
VIEW: APPS.AP_INVOICE_LINES_ALL_DFV
12.2.2
-
VIEW: APPS.AP_INVOICE_LINES_ALL_DFV
12.1.1
-
APPS.AP_PREPAY_UTILS_PKG SQL Statements
12.2.2
-
APPS.AP_PREPAY_UTILS_PKG SQL Statements
12.1.1
-
VIEW: APPS.AP_DOCUMENT_LINES_V
12.1.1
-
APPS.AP_PO_UTILITIES_PKG SQL Statements
12.2.2
-
VIEW: APPS.AP_DOCUMENT_LINES_V
12.2.2
-
APPS.AP_PO_UTILITIES_PKG SQL Statements
12.1.1
-
TRIGGER: APPS.JAI_AP_ILA_ARIUD_T1
12.2.2
owner:APPS, object_type:TRIGGER, object_name:JAI_AP_ILA_ARIUD_T1, status:VALID,
-
TRIGGER: APPS.JAI_AP_ILA_ARIUD_T1
12.1.1
owner:APPS, object_type:TRIGGER, object_name:JAI_AP_ILA_ARIUD_T1, status:VALID,
-
VIEW: APPS.IGI_AP_INVOICE_LINES_V
12.1.1
-
VIEW: APPS.IGI_AP_INVOICE_LINES_V
12.2.2
-
APPS.IGI_AP_INV_LINES_PKG SQL Statements
12.2.2
-
APPS.IGI_AP_INV_LINES_PKG SQL Statements
12.1.1
-
VIEW: APPS.OKL_BPD_AP_INV_LINES_UV
12.1.1
-
APPS.AP_WORKFLOW_PKG SQL Statements
12.2.2
-
APPS.JAI_AP_STND_TAX_PROCESS SQL Statements
12.2.2
-
APPS.AP_WORKFLOW_PKG SQL Statements
12.1.1
-
VIEW: APPS.OKL_BPD_AP_INV_LINES_UV
12.2.2
-
APPS.AP_IAW_PKG SQL Statements
12.1.1
-
VIEW: APPS.FV_INVOICE_DTL_V
12.2.2
-
VIEW: APPS.FV_INVOICE_DTL_V
12.1.1
-
APPS.AP_MATCHING_UTILS_PKG SQL Statements
12.1.1
-
APPS.AP_IAW_PKG SQL Statements
12.2.2
-
APPS.AP_ISP_UTILITIES_PKG SQL Statements
12.1.1
-
View: AP_DOCUMENT_LINES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_DOCUMENT_LINES_V, object_name:AP_DOCUMENT_LINES_V, status:VALID, product: AP - Payables , implementation_dba_data: APPS.AP_DOCUMENT_LINES_V ,
-
Table: AP_INVOICES_ALL
12.1.1
owner:AP, object_type:TABLE, fnd_design_data:SQLAP.AP_INVOICES_ALL, object_name:AP_INVOICES_ALL, status:VALID, product: AP - Payables , description: Detailed invoice records , implementation_dba_data: AP.AP_INVOICES_ALL ,
-
Table: AP_INVOICES_ALL
12.2.2
owner:AP, object_type:TABLE, fnd_design_data:SQLAP.AP_INVOICES_ALL, object_name:AP_INVOICES_ALL, status:VALID, product: AP - Payables , description: Detailed invoice records , implementation_dba_data: AP.AP_INVOICES_ALL ,
-
APPS.JAI_AP_STND_TAX_PROCESS SQL Statements
12.1.1
-
VIEW: APPS.OKL_AP_PAYMENTS_REF_VL
12.2.2
-
APPS.JA_JAINITCL_XMLP_PKG SQL Statements
12.2.2
-
APPS.AP_MATCHING_UTILS_PKG SQL Statements
12.2.2
-
APPS.CSE_IPV_FA_PKG SQL Statements
12.2.2
-
View: AP_DOCUMENT_LINES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_DOCUMENT_LINES_V, object_name:AP_DOCUMENT_LINES_V, status:VALID, product: AP - Payables , implementation_dba_data: APPS.AP_DOCUMENT_LINES_V ,
-
APPS.AP_ISP_UTILITIES_PKG SQL Statements
12.2.2
-
APPS.JA_JAINITCL_XMLP_PKG SQL Statements
12.1.1
-
VIEW: APPS.OKL_AP_PAYMENTS_IA_REF_V
12.2.2
-
VIEW: APPS.OKL_AP_PAYMENTS_IA_REF_V
12.1.1
-
VIEW: APPS.AP_INVOICE_LINES_1_DFV
12.2.2
-
VIEW: APPS.OKL_AP_PAYMENTS_REF_VL
12.1.1