AP_INVOICE_DISTRIBUTIONS_ALL
Product: APtransactionBU-striped (ORG_ID)Payables invoice distributions — the accounting grain under each line: one row per charged GL account with the amount, accounting date, period, and posted state; where AP spend meets the ledger
Accounting grain — a line can split across several distributions, so joining lines to distributions multiplies line amounts
DIST_CODE_COMBINATION_ID is the charged account (documented FK to the code-combinations master). The parent-line link is composite: INVOICE_ID + INVOICE_LINE_NUMBER. POSTED_FLAG is a documented Y/N. Reversals and cancellations stay as paired rows (REVERSAL_FLAG / CANCELLATION_FLAG) — net, don't count.
What the badges mean
- master
- Data class: what the table holds — master data, transaction documents, control/configuration, interface/staging, or a documented view.
Extract access
The delivered surfaces that reach this table — the BICC extract data store (PVO) for bulk extraction and the OTBI subject areas for real-time queries. There is no SQL path to the SaaS database.
- FscmTopModelAM.FinExtractAM.ApBiccExtractAM.InvoiceDistributionExtractPVOOTBI: Payables Invoices - Transactions Real Time
Invoice Distributions data store — keyed on ApInvoiceDistributionsInvoiceDistributionId.
Oracle data-store documentation →
Fields
16 fields · 1 key
| # | Field | Description | Type | Flags |
|---|---|---|---|---|
| 1 | INVOICE_DISTRIBUTION_ID | Surrogate key of the distribution | NUMBER | Key |
| 2 | INVOICE_ID | The invoice | NUMBER | |
| 3 | INVOICE_LINE_NUMBER | The invoice line — pairs with INVOICE_ID for the composite line join | NUMBER | |
| 4 | ORG_ID | The business unit owning the distribution | NUMBER | |
| 5 | DISTRIBUTION_LINE_NUMBER | Distribution number within the invoice | NUMBER | |
| 6 | LINE_TYPE_LOOKUP_CODE | Distribution type | VARCHAR2 | INVOICE DISTRIBUTION TYPE |
| 7 | DIST_CODE_COMBINATION_ID | The charged GL account (CCID) | NUMBER | |
| 8 | ACCOUNTING_DATE | Date the distribution is accounted | DATE | Filter date |
| 9 | PERIOD_NAME | Accounting period | VARCHAR2 | |
| 10 | AMOUNT | Distribution amount in invoice currency | NUMBER | |
| 11 | BASE_AMOUNT | Amount in ledger currency, for foreign-currency invoices | NUMBER | |
| 12 | POSTED_FLAG | Y accounted, N not — page-documented | VARCHAR2 | |
| 13 | REVERSAL_FLAG | Part of a reversal pair — net, don't count | VARCHAR2 | |
| 14 | PO_DISTRIBUTION_ID | Matched PO distribution | NUMBER | |
| 15 | RCV_TRANSACTION_ID | Matched receiving transaction | NUMBER | |
| 16 | SET_OF_BOOKS_ID | The LEDGER — legacy column name, required here | NUMBER |
Field provenance: hand-curated. 1 key field.
Boilerplate SQL
Starting point for reading the BICC-landed copy of AP_INVOICE_DISTRIBUTIONS_ALLon Databricks — real DATE columns need no conversion, and the org anchor and the LAST_UPDATE_DATE watermark (the column incremental BICC extracts key on) are already in place. Set your Unity Catalog location, schema, and org values below; they’re substituted into the SQL and the copy button.
-- ============================================================
-- Table : AP_INVOICE_DISTRIBUTIONS_ALL — Payables invoice distributions — the accounting grain under each line: one row per charged GL account with the amount, accounting date, period, and posted state; where AP spend meets the ledger
-- Purpose: Column-selected read of AP_INVOICE_DISTRIBUTIONS_ALL — auto-generated from field metadata
-- Grain : One row per business unit (ORG_ID) + INVOICE_DISTRIBUTION_ID
-- Caution: Accounting grain — a line can split across several distributions, so joining lines to distributions multiplies line amounts
-- Notes : Auto-generated skeleton for Oracle Fusion Cloud data landed in your lakehouse by a BICC extract — there is no SQL path to the SaaS database. Column names follow Oracle's table documentation — if your landed data still carries PVO attribute headers, map names first; see quirks #pvo-drift. Dates are real DATE/TIMESTAMP columns — no conversion needed. WHO audit columns omitted (see the quirks guide); the optional LAST_UPDATE_DATE watermark filter supports incremental extracts.
-- ============================================================
SELECT
t.INVOICE_DISTRIBUTION_ID AS "Surrogate key of the distribution",
t.INVOICE_ID AS "The invoice",
t.INVOICE_LINE_NUMBER AS "The invoice line — pairs with INVOICE_ID for the composite line join",
t.ORG_ID AS "The business unit owning the distribution",
t.DISTRIBUTION_LINE_NUMBER AS "Distribution number within the invoice",
t.LINE_TYPE_LOOKUP_CODE AS "Distribution type", -- decode t.LINE_TYPE_LOOKUP_CODE via FND_LOOKUP_VALUES (LOOKUP_TYPE = 'INVOICE DISTRIBUTION TYPE', LANGUAGE-filtered)
t.DIST_CODE_COMBINATION_ID AS "The charged GL account (CCID)",
t.ACCOUNTING_DATE AS "Date the distribution is accounted",
t.PERIOD_NAME AS "Accounting period",
t.AMOUNT AS "Distribution amount in invoice currency",
t.BASE_AMOUNT AS "Amount in ledger currency, for foreign-currency invoices",
t.POSTED_FLAG AS "Y accounted, N not — page-documented",
t.REVERSAL_FLAG AS "Part of a reversal pair — net, don't count",
t.PO_DISTRIBUTION_ID AS "Matched PO distribution",
t.RCV_TRANSACTION_ID AS "Matched receiving transaction",
t.SET_OF_BOOKS_ID AS "The LEDGER — legacy column name, required here"
FROM <catalog>.<schema>.AP_INVOICE_DISTRIBUTIONS_ALL t
WHERE
t.ORG_ID = <business_unit_id> -- business unit — Fusion _ALL means BU, not the EBS operating unit; see quirks guide #all-means-bu
-- AND t.INVOICE_DISTRIBUTION_ID = <INVOICE_DISTRIBUTION_ID>
-- AND t.ACCOUNTING_DATE >= DATE '<DATE_FROM>'
-- AND t.ACCOUNTING_DATE <= DATE '<DATE_TO>'
-- AND t.LAST_UPDATE_DATE >= TIMESTAMP '<watermark>' -- the column incremental BICC extracts key on
ORDER BY t.INVOICE_DISTRIBUTION_ID;7 parameters not filled: <catalog>, <schema>, <business_unit_id>, <INVOICE_DISTRIBUTION_ID>, <DATE_FROM>, <DATE_TO>, <watermark>
Relationships
1-hop neighbors — click a table to navigate there. FND lookup decode and translation edges are highlighted; they’re the joins newcomers most often get wrong.
Join details
ON AP_INVOICE_DISTRIBUTIONS_ALL.INVOICE_ID = AP_INVOICES_ALL.INVOICE_ID AND AP_INVOICE_DISTRIBUTIONS_ALL.ORG_ID = AP_INVOICES_ALL.ORG_IDON AP_INVOICE_DISTRIBUTIONS_ALL.INVOICE_LINE_NUMBER = AP_INVOICE_LINES_ALL.LINE_NUMBER AND AP_INVOICE_DISTRIBUTIONS_ALL.INVOICE_ID = AP_INVOICE_LINES_ALL.INVOICE_ID AND AP_INVOICE_DISTRIBUTIONS_ALL.ORG_ID = AP_INVOICE_LINES_ALL.ORG_IDON AP_INVOICE_DISTRIBUTIONS_ALL.LINE_TYPE_LOOKUP_CODE = FND_LOOKUP_VALUES.LOOKUP_CODE AND FND_LOOKUP_VALUES.LOOKUP_TYPE = 'INVOICE DISTRIBUTION TYPE' AND FND_LOOKUP_VALUES.LANGUAGE = '<language>'ON AP_INVOICE_DISTRIBUTIONS_ALL.DIST_CODE_COMBINATION_ID = GL_CODE_COMBINATIONS.CODE_COMBINATION_IDON AP_INVOICE_DISTRIBUTIONS_ALL.PO_DISTRIBUTION_ID = PO_DISTRIBUTIONS_ALL.PO_DISTRIBUTION_IDON AP_INVOICE_DISTRIBUTIONS_ALL.RCV_TRANSACTION_ID = RCV_TRANSACTIONS.TRANSACTION_ID