Skip to content
EBS Reference

AP_INVOICES_ALL

Schema: APtransactionOU-striped (ORG_ID)

Supplier invoice headers — standard invoices, credit/debit memos, prepayments, and expense reports share the table by type, with amounts, payment status, and the liability account

Module: FinancialsOperating-unit striped (ORG_ID)
Notes

INVOICE_NUM uniqueness per supplier and operating unit is enforced by the application, NOT by a database unique index in 12.2.2 — join on INVOICE_ID and expect near-duplicates in landed data. GL_DATE places the invoice in a period; INVOICE_DATE is the business date.

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.

Header & line

AP_INVOICES_ALL is the header for its lines in AP_INVOICE_LINES_ALL.

Fields

18 fields · 1 key

Table fields: position, field name, description, data type, and flags. 18 fields.
#FieldDescriptionTypeFlags
1INVOICE_IDSurrogate key of the invoice — the join key; the invoice number has no database uniquenessNUMBER
Key
2ORG_IDOperating unitNUMBER
3INVOICE_NUMThe supplier's invoice number — uniqueness per supplier/OU is application-enforced onlyVARCHAR2
4VENDOR_IDThe supplierNUMBER
5VENDOR_SITE_IDThe supplier siteNUMBER
6INVOICE_DATEThe invoice's business date — the primary analysis dateDATE
Filter date
7INVOICE_AMOUNTInvoice totalNUMBER
8AMOUNT_PAIDAmount paid to dateNUMBER
9INVOICE_CURRENCY_CODEInvoice currencyVARCHAR2
10INVOICE_TYPE_LOOKUP_CODEStandard, credit/debit memo, prepayment, expense report — a lookup code, undecoded hereVARCHAR2
11PAYMENT_STATUS_FLAGY paid, N unpaid, P partially paid (per the data dictionary's comment)VARCHAR2
12SOURCEThe system the invoice arrived throughVARCHAR2
13TERMS_IDPayment termsNUMBER
14GL_DATEThe accounting date placing the invoice in a periodDATE
15ACCTS_PAY_CODE_COMBINATION_IDThe liability account (CCID)NUMBER
16CANCELLED_DATEWhen the invoice was cancelled — NULL if neverDATE
17WFAPPROVAL_STATUSInvoice-approval workflow stateVARCHAR2
18PARTY_IDThe supplier's trading-community party (denormalized)NUMBER

Field provenance: hand-curated. 1 key field.

Boilerplate SQL

Starting point for reading AP_INVOICES_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_INVOICES_ALL — Supplier invoice headers — standard invoices, credit/debit memos, prepayments, and expense reports share the table by type, with amounts, payment status, and the liability account
-- Purpose: Column-selected read of AP_INVOICES_ALL — auto-generated from field metadata
-- Grain  : One row per operating unit (ORG_ID) + INVOICE_ID
-- 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_ID AS "Surrogate key of the invoice — the join key; the invoice number has no database uniqueness",
  t.ORG_ID AS "Operating unit",
  t.INVOICE_NUM AS "The supplier's invoice number — uniqueness per supplier/OU is application-enforced only",
  t.VENDOR_ID AS "The supplier",
  t.VENDOR_SITE_ID AS "The supplier site",
  t.INVOICE_DATE AS "The invoice's business date — the primary analysis date",
  t.INVOICE_AMOUNT AS "Invoice total",
  t.AMOUNT_PAID AS "Amount paid to date",
  t.INVOICE_CURRENCY_CODE AS "Invoice currency",
  t.INVOICE_TYPE_LOOKUP_CODE AS "Standard, credit/debit memo, prepayment, expense report — a lookup code, undecoded here",
  t.PAYMENT_STATUS_FLAG AS "Y paid, N unpaid, P partially paid (per the data dictionary's comment)",
  t.SOURCE AS "The system the invoice arrived through",
  t.TERMS_ID AS "Payment terms",
  t.GL_DATE AS "The accounting date placing the invoice in a period",
  t.ACCTS_PAY_CODE_COMBINATION_ID AS "The liability account (CCID)",
  t.CANCELLED_DATE AS "When the invoice was cancelled — NULL if never",
  t.WFAPPROVAL_STATUS AS "Invoice-approval workflow state",
  t.PARTY_ID AS "The supplier's trading-community party (denormalized)"
FROM <catalog>.<schema>.AP_INVOICES_ALL t
WHERE
  t.ORG_ID = <operating_unit_id>  -- operating unit (MOAC does not filter extracts)
  -- AND t.INVOICE_ID = <INVOICE_ID>
  -- AND t.INVOICE_DATE >= DATE '<DATE_FROM>'
  -- AND t.INVOICE_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_ID;

7 parameters not filled: <catalog>, <schema>, <operating_unit_id>, <INVOICE_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_INVOICES_ALLAP_INVOICE_LINES_ALLheader line · 1:N
    ON AP_INVOICES_ALL.INVOICE_ID = AP_INVOICE_LINES_ALL.INVOICE_ID AND AP_INVOICES_ALL.ORG_ID = AP_INVOICE_LINES_ALL.ORG_ID
  • AP_INVOICES_ALLAP_SUPPLIERSforeign key · N:1
    ON AP_INVOICES_ALL.VENDOR_ID = AP_SUPPLIERS.VENDOR_ID
  • AP_INVOICES_ALLAP_SUPPLIER_SITES_ALLforeign key · N:1
    ON AP_INVOICES_ALL.VENDOR_SITE_ID = AP_SUPPLIER_SITES_ALL.VENDOR_SITE_ID AND AP_INVOICES_ALL.ORG_ID = AP_SUPPLIER_SITES_ALL.ORG_ID
  • AP_INVOICES_ALLGL_CODE_COMBINATIONSforeign key · N:1
    ON AP_INVOICES_ALL.ACCTS_PAY_CODE_COMBINATION_ID = GL_CODE_COMBINATIONS.CODE_COMBINATION_ID
  • AP_INVOICES_ALLHZ_PARTIESforeign key · N:1
    ON AP_INVOICES_ALL.PARTY_ID = HZ_PARTIES.PARTY_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.