Skip to content
EBS Reference

AP_INVOICE_DISTRIBUTIONS_ALL

Schema: APtransactionOU-striped (ORG_ID)

Supplier invoice distributions — one row per GL-account allocation of an invoice line; the spend-to-account grain payables accounting posts from

Module: FinancialsOperating-unit striped (ORG_ID)
Grain note

Accounting grain — one line fans out across account rows and reversal pairs net to zero; exclude reversals or group by line before comparing to line amounts

Notes

The natural key is invoice + line number + distribution line number; INVOICE_DISTRIBUTION_ID is the surrogate. DIST_CODE_COMBINATION_ID is the charge account — the AP tie to the general ledger.

What the badges mean
master
Data class: what the table holds — master data, transaction documents, control/configuration, interface/staging, or an APPS-schema view.
In field listings, K marks a primary-key field.

Fields

16 fields · 1 key

Table fields: position, field name, description, data type, and flags. 16 fields.
#FieldDescriptionTypeFlags
1INVOICE_DISTRIBUTION_IDSurrogate key of the distributionNUMBER
Key
2ORG_IDOperating unitNUMBER
3INVOICE_IDThe invoiceNUMBER
4INVOICE_LINE_NUMBERThe parent invoice lineNUMBER
5DISTRIBUTION_LINE_NUMBERDistribution number within the line — completes the natural keyNUMBER
6LINE_TYPE_LOOKUP_CODEDistribution type — a lookup code, undecodedVARCHAR2
7DIST_CODE_COMBINATION_IDThe charge account (CCID) — the AP tie to the general ledgerNUMBER
8AMOUNTDistribution amountNUMBER
9BASE_AMOUNTAmount in the ledger currencyNUMBER
10QUANTITY_INVOICEDQuantity on the distributionNUMBER
11ACCOUNTING_DATEThe accounting date — the primary analysis dateDATE
Filter date
12PERIOD_NAMEThe accounting periodVARCHAR2
13PO_DISTRIBUTION_IDThe matched PO distributionNUMBER
14RCV_TRANSACTION_IDThe matched receiving transactionNUMBER
15POSTED_FLAGWhether the distribution has been accountedVARCHAR2
16REVERSAL_FLAGMarks reversal pairs that net to zero — exclude before summingVARCHAR2

Field provenance: hand-curated. 1 key field.

Boilerplate SQL

Starting point for reading AP_INVOICE_DISTRIBUTIONS_ALLon Databricks — real DATE columns need no conversion, and the org anchor and the LAST_UPDATE_DATE watermark are already in place. Set your Unity Catalog location, schema, and org values below; they’re substituted into the SQL and the copy button.

Query parameters
-- ============================================================
-- Table  : AP_INVOICE_DISTRIBUTIONS_ALL — Supplier invoice distributions — one row per GL-account allocation of an invoice line; the spend-to-account grain payables accounting posts from
-- Purpose: Column-selected read of AP_INVOICE_DISTRIBUTIONS_ALL — auto-generated from field metadata
-- Grain  : One row per operating unit (ORG_ID) + INVOICE_DISTRIBUTION_ID
-- Caution: Accounting grain — one line fans out across account rows and reversal pairs net to zero; exclude reversals or group by line before comparing to line amounts
-- Notes  : Auto-generated skeleton for Oracle EBS R12 data landed in your lakehouse. 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.ORG_ID AS "Operating unit",
  t.INVOICE_ID AS "The invoice",
  t.INVOICE_LINE_NUMBER AS "The parent invoice line",
  t.DISTRIBUTION_LINE_NUMBER AS "Distribution number within the line — completes the natural key",
  t.LINE_TYPE_LOOKUP_CODE AS "Distribution type — a lookup code, undecoded",
  t.DIST_CODE_COMBINATION_ID AS "The charge account (CCID) — the AP tie to the general ledger",
  t.AMOUNT AS "Distribution amount",
  t.BASE_AMOUNT AS "Amount in the ledger currency",
  t.QUANTITY_INVOICED AS "Quantity on the distribution",
  t.ACCOUNTING_DATE AS "The accounting date — the primary analysis date",
  t.PERIOD_NAME AS "The accounting period",
  t.PO_DISTRIBUTION_ID AS "The matched PO distribution",
  t.RCV_TRANSACTION_ID AS "The matched receiving transaction",
  t.POSTED_FLAG AS "Whether the distribution has been accounted",
  t.REVERSAL_FLAG AS "Marks reversal pairs that net to zero — exclude before summing"
FROM <catalog>.<schema>.AP_INVOICE_DISTRIBUTIONS_ALL t
WHERE
  t.ORG_ID = <operating_unit_id>  -- operating unit (MOAC does not filter extracts)
  -- 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>'  -- WHO watermark, bulk-stamped by batch jobs; see quirks guide #who-columns
ORDER BY t.INVOICE_DISTRIBUTION_ID;

7 parameters not filled: <catalog>, <schema>, <operating_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

  • AP_INVOICE_DISTRIBUTIONS_ALLAP_INVOICE_LINES_ALLforeign key · N:1
    ON AP_INVOICE_DISTRIBUTIONS_ALL.INVOICE_ID = AP_INVOICE_LINES_ALL.INVOICE_ID AND AP_INVOICE_DISTRIBUTIONS_ALL.INVOICE_LINE_NUMBER = AP_INVOICE_LINES_ALL.LINE_NUMBER AND AP_INVOICE_DISTRIBUTIONS_ALL.ORG_ID = AP_INVOICE_LINES_ALL.ORG_ID
  • AP_INVOICE_DISTRIBUTIONS_ALLGL_CODE_COMBINATIONSforeign key · N:1
    ON AP_INVOICE_DISTRIBUTIONS_ALL.DIST_CODE_COMBINATION_ID = GL_CODE_COMBINATIONS.CODE_COMBINATION_ID
  • AP_INVOICE_DISTRIBUTIONS_ALLPO_DISTRIBUTIONS_ALLforeign key · N:1
    ON AP_INVOICE_DISTRIBUTIONS_ALL.PO_DISTRIBUTION_ID = PO_DISTRIBUTIONS_ALL.PO_DISTRIBUTION_ID AND AP_INVOICE_DISTRIBUTIONS_ALL.ORG_ID = PO_DISTRIBUTIONS_ALL.ORG_ID

Browse more Financialstables →

Maintained by Summit Analytics, a supply chain analytics practice. The tools and references are free — the consulting is selective.

Part of the Summit Analytics reference library.

Work with the practice →

Not affiliated with or endorsed by Oracle. Oracle and Oracle E-Business Suite are registered trademarks of Oracle and/or its affiliates.