Search Results ap_invoice_distributions_all
Overview
AP_INVOICE_DISTRIBUTIONS_ALL is the core distribution table in the Oracle Payables (AP) module of Oracle E-Business Suite 12.1.1 and 12.2.2. Each row represents a single accounting distribution line for an invoice, recording how an invoice amount is allocated across expense accounts, projects, assets, and tax authorities. The table resides in the AP schema and holds 244 documented columns, making it one of the most richly populated transactional entities in the Payables data model.
Structurally, the table records the accounting impact of every invoice line. An invoice header stored in AP_INVOICES_ALL may have multiple lines in AP_INVOICE_LINES_ALL, and each line may in turn generate one or more distributions, giving the table a granularity of one row per invoice-line-distribution combination. This granularity is enforced by the primary key AP_INVOICE_DISTRIBUTIONS_PK (INVOICE_ID, DISTRIBUTION_LINE_NUMBER).
Under a heuristic Data Vault classification derived from the foreign-key structure, AP_INVOICE_DISTRIBUTIONS_ALL models as a hub, since it is the central anchor referenced by many downstream tables including FA_ASSET_INVOICES, PA_COST_DISTRIBUTION_LINES_ALL, AP_TRIAL_BALANCE, and several mass-additions and commitment tables. In practice, this hub role is enriched by satellite-like columns capturing posting status, withholding tax attributes, multi-reporting-currency (MRC) values, and encumbrance tracking.
Key Information Stored
The table's most operationally significant columns fall into several categories:
- Identity and linkage: INVOICE_ID and DISTRIBUTION_LINE_NUMBER form the composite primary key; INVOICE_LINE_NUMBER links back to the originating invoice line. INVOICE_DISTRIBUTION_ID is a surrogate unique key (AP_INVOICE_DISTRIBUTIONS_U2), often used as a stable internal reference. PARENT_INVOICE_ID supports prepayment and parent-child invoice relationships.
- Accounting and posting: DIST_CODE_COMBINATION_ID references GL_CODE_COMBINATIONS and defines the expense or liability account. AMOUNT and BASE_AMOUNT hold the entered and functional-currency distribution values. ACCOUNTING_DATE, PERIOD_NAME, POSTED_FLAG, POSTED_AMOUNT, and JE_BATCH_ID control and record subledger accounting activity.
- Matching and encumbrance: PO_DISTRIBUTION_ID ties the distribution to a purchasing distribution, while MATCH_STATUS_FLAG, FINAL_MATCH_FLAG, QUANTITY_INVOICED, and UNIT_PRICE drive invoice-to-PO matching. ENCUMBERED_FLAG, AMOUNT_ENCUMBERED, and BASE_AMOUNT_ENCUMBERED support encumbrance accounting.
- Withholding tax: AWT_FLAG, AWT_GROUP_ID, AWT_GROSS_AMOUNT, AWT_TAX_RATE_ID, AWT_INVOICE_ID, and AWT_WITHHELD_AMT capture automatic withholding tax calculations.
- Multi-reporting currency: Columns prefixed MRC_ (for example MRC_AMOUNT, MRC_POSTED_FLAG, MRC_JE_BATCH_ID) mirror primary values across secondary ledgers.
- Tax detail: TAX_CODE_ID, TAX_RECOVERABLE_FLAG, TAXABLE_AMOUNT, TAX_RECOVERY_RATE, and SUMMARY_TAX_LINE_ID support E-Business Tax integration (ZX).
The unique index AP_INVOICE_DISTRIBUTIONS_U1 (INVOICE_ID, INVOICE_LINE_NUMBER, DISTRIBUTION_LINE_NUMBER) identifies the business-key candidate for a distribution within an invoice line.
Common Use Cases and Queries
Typical reporting and reconciliation activities query this table to analyze expense distribution, validate posting status, and reconcile invoice amounts to the general ledger.
- Distribution listing for an invoice: Select INVOICE_ID, DISTRIBUTION_LINE_NUMBER, AMOUNT, DIST_CODE_COMBINATION_ID, and POSTED_FLAG filtered by a specific INVOICE_ID.
- Unposted distributions: Filter where POSTED_FLAG = 'N' and PERIOD_NAME is in an open accounting period to identify items awaiting the Payables Accounting process.
- Project cost analysis: Join PROJECT_ID, TASK_ID, and EXPENDITURE_TYPE to PA_TASKS and PA_EXPENDITURE_TYPES for capitalizable or billable cost reporting.
- Withholding tax reporting: Filter AWT_FLAG = 'Y' and aggregate AWT_WITHHELD_AMT by supplier or tax authority for statutory filings.
- Encumbrance reconciliation: Query rows where ENCUMBERED_FLAG = 'Y' to reconcile PO encumbrances against actual invoice distributions.
- MRC reporting: Select MRC_AMOUNT and MRC_DIST_CODE_COMBINATION_ID for secondary-ledger reporting requirements.
A common pattern joins AP_INVOICES_ALL to AP_INVOICE_DISTRIBUTIONS_ALL on INVOICE_ID, then to GL_CODE_COMBINATIONS on DIST_CODE_COMBINATION_ID, to produce an account-level distribution report.
Related Objects
The table participates in an extensive relationship network. The most significant related objects include:
- AP_INVOICES_ALL — joined on INVOICE_ID (also PARENT_INVOICE_ID, AWT_INVOICE_ID, COMPANY_PREPAID_INVOICE_ID), providing the invoice header.
- AP_INVOICE_LINES_ALL — joined on INVOICE_ID and INVOICE_LINE_NUMBER; in turn, its AIL_INVOICE_ID2/3/4 columns reference this table.
- GL_CODE_COMBINATIONS — joined on DIST_CODE_COMBINATION_ID, RATE_VAR_CODE_COMBINATION_ID, and PRICE_VAR_CODE_COMBINATION_ID.
- PO_DISTRIBUTIONS_ALL — joined on PO_DISTRIBUTION_ID for matched purchasing distributions.
- RCV_TRANSACTIONS — joined on RCV_TRANSACTION_ID for receipts matching.
- AP_ACCOUNTING_EVENTS_ALL — joined on ACCOUNTING_EVENT_ID for subledger accounting events.
- AP_AWT_GROUPS and AP_AWT_TAX_RATES_ALL — joined on AWT_GROUP_ID and AWT_TAX_RATE_ID for withholding tax.
- FA_ASSET_INVOICES, FA_MASS_ADDITIONS, and PA_COST_DISTRIBUTION_LINES_ALL — downstream consumers referencing INVOICE_ID or SYSTEM_REFERENCE2.
- AP_TRIAL_BALANCE — reconciliation object referencing INVOICE_ID.
Together these relationships establish AP_INVOICE_DISTRIBUTIONS_ALL as the principal accounting anchor for invoice activity, linking Payables to General Ledger, Purchasing, Projects, Assets, and Tax.
-
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 ,
-
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 ,
-
APPS.POS_AP_INVOICES_PKG SQL Statements
12.1.1
-
APPS.CSE_AP_PA_PKG SQL Statements
12.2.2
-
APPS.POS_AP_INVOICES_PKG SQL Statements
12.2.2
-
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 ,
-
VIEW: APPS.CSTBV_RCV_ACQ_COST_DETAILS
12.1.1
-
VIEW: APPS.CSTBV_RCV_ACQ_COST_DETAILS
12.2.2
-
APPS.GMS_AP_API SQL Statements
12.1.1
-
APPS.PJM_TRANSFER_CHARGES_PKG SQL Statements
12.1.1
-
APPS.PSA_AP_BC_PVT SQL Statements
12.1.1
-
APPS.GMS_AP_API SQL Statements
12.2.2
-
APPS.CSE_IPV_FA_PKG SQL Statements
12.2.2
-
APPS.PJM_TRANSFER_CHARGES_PKG SQL Statements
12.2.2
-
VIEW: APPS.OKE_DTS_PAYABLES_V
12.1.1
-
VIEW: APPS.OKE_DTS_PAYABLES_V
12.2.2
-
VIEW: APPS.CSTFV_RCV_ACQ_COST_DETAILS
12.2.2
-
APPS.GMF_AP_GET_INVOICE_PRICE SQL Statements
12.2.2
-
APPS.GMF_AP_GET_INVOICE_PRICE SQL Statements
12.1.1
-
VIEW: APPS.CE_AP_FC_DUE_INVOICES_V
12.2.2
-
APPS.GMS_AP_API2 SQL Statements
12.1.1
-
APPS.AP_ACCOUNTING_PAY_PKG SQL Statements
12.2.2
-
APPS.PSA_AP_BC_PVT SQL Statements
12.2.2
-
VIEW: APPS.CSTFV_RCV_ACQ_COST_DETAILS
12.1.1
-
APPS.GMS_AP_API2 SQL Statements
12.2.2
-
APPS.JAI_AP_TOLERANCE_PKG SQL Statements
12.2.2
-
APPS.JAI_AP_TOLERANCE_PKG SQL Statements
12.1.1
-
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 ,
-
APPS.JAI_AP_MISC_PKG SQL Statements
12.1.1
-
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.IGI_AP_INV_DIST_PKG SQL Statements
12.2.2
-
APPS.IGI_AP_INV_DIST_PKG SQL Statements
12.1.1
-
APPS.AP_PREPAY_UTILS_PKG SQL Statements
12.2.2
-
TABLE: JG.JG_ZZ_AP_WHT_ITF
12.2.2
owner:JG, object_type:TABLE, fnd_design_data:JG.JG_ZZ_AP_WHT_ITF, object_name:JG_ZZ_AP_WHT_ITF, status:VALID,
-
APPS.AP_PREPAY_UTILS_PKG SQL Statements
12.1.1
-
TABLE: JG.JG_ZZ_AP_WHT_ITF
12.1.1
owner:JG, object_type:TABLE, fnd_design_data:JG.JG_ZZ_AP_WHT_ITF, object_name:JG_ZZ_AP_WHT_ITF, status:VALID,
-
View: CSTBV_RCV_ACQ_COST_DETAILS
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:BOM.CSTBV_RCV_ACQ_COST_DETAILS, object_name:CSTBV_RCV_ACQ_COST_DETAILS, status:VALID, product: BOM - Bills of Material , implementation_dba_data: APPS.CSTBV_RCV_ACQ_COST_DETAILS ,
-
VIEW: APPS.JAI_AP_TDS_DISTRIBUTION_V
12.2.2
-
View: CSTBV_RCV_ACQ_COST_DETAILS
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:BOM.CSTBV_RCV_ACQ_COST_DETAILS, object_name:CSTBV_RCV_ACQ_COST_DETAILS, status:VALID, product: BOM - Bills of Material , implementation_dba_data: APPS.CSTBV_RCV_ACQ_COST_DETAILS ,
-
PACKAGE: APPS.JAI_AP_MATCH_TAX_PROC_PKG
12.2.2
-
View: CE_AP_FC_DUE_INVOICES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:CE.CE_AP_FC_DUE_INVOICES_V, object_name:CE_AP_FC_DUE_INVOICES_V, status:VALID, product: CE - Cash Management , description: Forecasting source - AP invoices based on due dates , implementation_dba_data: APPS.CE_AP_FC_DUE_INVOICES_V ,
-
APPS.PAAP_PWP_PKG SQL Statements
12.2.2
-
VIEW: APPS.CE_AP_FC_DUE_INVOICES_V
12.1.1
-
Table: AP_AWT_GROUPS
12.1.1
owner:AP, object_type:TABLE, fnd_design_data:SQLAP.AP_AWT_GROUPS, object_name:AP_AWT_GROUPS, status:VALID, product: AP - Payables , description: Withholding tax groups , implementation_dba_data: AP.AP_AWT_GROUPS ,
-
APPS.AP_INVOICE_LINES_UTILITY_PKG SQL Statements
12.1.1
-
VIEW: APPS.CE_DUE_PROJECT_INV_V
12.1.1
-
APPS.ZX_AP_ACTG_POPULATE_PKG SQL Statements
12.1.1
-
VIEW: APPS.CE_DUE_PROJECT_INV_V
12.2.2
-
Table: AP_AWT_GROUPS
12.2.2
owner:AP, object_type:TABLE, fnd_design_data:SQLAP.AP_AWT_GROUPS, object_name:AP_AWT_GROUPS, status:VALID, product: AP - Payables , description: Withholding tax groups , implementation_dba_data: AP.AP_AWT_GROUPS ,