Skip to content
EBS Reference

OE_ORDER_HEADERS_ALL

Schema: ONTtransactionOU-striped (ORG_ID)

The sales order header — one row per order or quote, carrying the order number, type, customer references, currency, and the workflow status the whole order-to-cash cycle hangs off; operating-unit striped

Module: Order ManagementOperating-unit striped (ORG_ID)
Notes

Naming trap: SOLD_TO_ORG_ID, SHIP_TO_ORG_ID, and INVOICE_TO_ORG_ID are TCA customer account and site-use ids, not organizations; SHIP_FROM_ORG_ID is an inventory org (warehouse); ORG_ID is the operating unit — three different concepts sharing one suffix. ORDER_NUMBER is unique only together with order type and version, never alone. Cancelled orders keep their rows.

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

OE_ORDER_HEADERS_ALL is the header for its lines in OE_ORDER_LINES_ALL.

Fields

18 fields · 1 key

Table fields: position, field name, description, data type, and flags. 18 fields.
#FieldDescriptionTypeFlags
1HEADER_IDSurrogate key of the order header — what lines, holds, adjustments, and shipping rows join onNUMBER
Key
2ORG_IDOperating unit the order belongs to — the MOAC stripe, not a warehouseNUMBER
3ORDER_NUMBERThe user-facing order number — unique only together with order type and version, never aloneNUMBER
4ORDER_TYPE_IDThe order transaction type — workflow, defaults, and category come from itNUMBER
5VERSION_NUMBERDocument version — part of the real unique key with order number and typeNUMBER
6ORDER_CATEGORY_CODEOrder, return, or mixedVARCHAR2
7FLOW_STATUS_CODEWorkflow-derived header status — a code, not a display name; header and line statuses divergeVARCHAR2
FLOW_STATUS
8BOOKED_FLAGY once the order is bookedVARCHAR2
9OPEN_FLAGY while the order is still openVARCHAR2
10CANCELLED_FLAGY when fully cancelled — the row persistsVARCHAR2
11ORDERED_DATEWhen the order was placed — the primary analysis date (nullable on quotes and drafts)DATE
Filter date
12BOOKED_DATEWhen the order was bookedDATE
13SOLD_TO_ORG_IDThe customer ACCOUNT (a TCA id) — not an organization, despite the nameNUMBER
14SHIP_TO_ORG_IDThe customer ship-to SITE USE (a TCA id) — not an organization eitherNUMBER
15SHIP_FROM_ORG_IDDefault ship-from warehouse — this one IS an org: an inventory organizationNUMBER
16TRANSACTIONAL_CURR_CODEThe order currencyVARCHAR2
17CUST_PO_NUMBERThe customer's own PO referenceVARCHAR2
18ORDER_SOURCE_IDWhere the order came from — decodes through the order source masterNUMBER

Field provenance: hand-curated. 1 key field.

Boilerplate SQL

Starting point for reading OE_ORDER_HEADERS_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  : OE_ORDER_HEADERS_ALL — The sales order header — one row per order or quote, carrying the order number, type, customer references, currency, and the workflow status the whole order-to-cash cycle hangs off; operating-unit striped
-- Purpose: Column-selected read of OE_ORDER_HEADERS_ALL — auto-generated from field metadata
-- Grain  : One row per operating unit (ORG_ID) + HEADER_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.HEADER_ID AS "Surrogate key of the order header — what lines, holds, adjustments, and shipping rows join on",
  t.ORG_ID AS "Operating unit the order belongs to — the MOAC stripe, not a warehouse",
  t.ORDER_NUMBER AS "The user-facing order number — unique only together with order type and version, never alone",
  t.ORDER_TYPE_ID AS "The order transaction type — workflow, defaults, and category come from it",
  t.VERSION_NUMBER AS "Document version — part of the real unique key with order number and type",
  t.ORDER_CATEGORY_CODE AS "Order, return, or mixed",
  t.FLOW_STATUS_CODE AS "Workflow-derived header status — a code, not a display name; header and line statuses diverge",  -- decode t.FLOW_STATUS_CODE via FND_LOOKUP_VALUES (LOOKUP_TYPE = 'FLOW_STATUS', LANGUAGE-filtered) — see quirks guide #lookups
  t.BOOKED_FLAG AS "Y once the order is booked",
  t.OPEN_FLAG AS "Y while the order is still open",
  t.CANCELLED_FLAG AS "Y when fully cancelled — the row persists",
  t.ORDERED_DATE AS "When the order was placed — the primary analysis date (nullable on quotes and drafts)",
  t.BOOKED_DATE AS "When the order was booked",
  t.SOLD_TO_ORG_ID AS "The customer ACCOUNT (a TCA id) — not an organization, despite the name",
  t.SHIP_TO_ORG_ID AS "The customer ship-to SITE USE (a TCA id) — not an organization either",
  t.SHIP_FROM_ORG_ID AS "Default ship-from warehouse — this one IS an org: an inventory organization",
  t.TRANSACTIONAL_CURR_CODE AS "The order currency",
  t.CUST_PO_NUMBER AS "The customer's own PO reference",
  t.ORDER_SOURCE_ID AS "Where the order came from — decodes through the order source master"
FROM <catalog>.<schema>.OE_ORDER_HEADERS_ALL t
WHERE
  t.ORG_ID = <operating_unit_id>  -- operating unit (MOAC does not filter extracts)
  -- AND t.HEADER_ID = <HEADER_ID>
  -- AND t.ORDERED_DATE >= DATE '<DATE_FROM>'
  -- AND t.ORDERED_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.HEADER_ID;

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

  • OE_ORDER_HEADERS_ALLOE_ORDER_LINES_ALLheader line · 1:N
    ON OE_ORDER_HEADERS_ALL.HEADER_ID = OE_ORDER_LINES_ALL.HEADER_ID AND OE_ORDER_HEADERS_ALL.ORG_ID = OE_ORDER_LINES_ALL.ORG_ID
  • OE_ORDER_HEADERS_ALLOE_TRANSACTION_TYPES_ALLforeign key · N:1
    ON OE_ORDER_HEADERS_ALL.ORDER_TYPE_ID = OE_TRANSACTION_TYPES_ALL.TRANSACTION_TYPE_ID AND OE_ORDER_HEADERS_ALL.ORG_ID = OE_TRANSACTION_TYPES_ALL.ORG_ID
  • OE_ORDER_HEADERS_ALLOE_ORDER_SOURCESforeign key · N:1
    ON OE_ORDER_HEADERS_ALL.ORDER_SOURCE_ID = OE_ORDER_SOURCES.ORDER_SOURCE_ID
  • OE_ORDER_HEADERS_ALLMTL_PARAMETERSforeign key · N:1
    ON OE_ORDER_HEADERS_ALL.SHIP_FROM_ORG_ID = MTL_PARAMETERS.ORGANIZATION_ID
  • OE_ORDER_HEADERS_ALLHR_OPERATING_UNITSforeign key · N:1
    ON OE_ORDER_HEADERS_ALL.ORG_ID = HR_OPERATING_UNITS.ORGANIZATION_ID
  • OE_ORDER_HEADERS_ALLFND_LOOKUP_VALUESFND lookup decode · N:1
    ON OE_ORDER_HEADERS_ALL.FLOW_STATUS_CODE = FND_LOOKUP_VALUES.LOOKUP_CODE AND FND_LOOKUP_VALUES.LOOKUP_TYPE = 'FLOW_STATUS' AND FND_LOOKUP_VALUES.LANGUAGE = '<language>'
  • OE_ORDER_HOLDS_ALLOE_ORDER_HEADERS_ALLforeign key · N:1
    ON OE_ORDER_HOLDS_ALL.HEADER_ID = OE_ORDER_HEADERS_ALL.HEADER_ID AND OE_ORDER_HOLDS_ALL.ORG_ID = OE_ORDER_HEADERS_ALL.ORG_ID
  • OE_PRICE_ADJUSTMENTSOE_ORDER_HEADERS_ALLforeign key · N:1
    ON OE_PRICE_ADJUSTMENTS.HEADER_ID = OE_ORDER_HEADERS_ALL.HEADER_ID
  • OE_DROP_SHIP_SOURCESOE_ORDER_HEADERS_ALLforeign key · N:1
    ON OE_DROP_SHIP_SOURCES.HEADER_ID = OE_ORDER_HEADERS_ALL.HEADER_ID AND OE_DROP_SHIP_SOURCES.ORG_ID = OE_ORDER_HEADERS_ALL.ORG_ID
  • WSH_DELIVERY_DETAILSOE_ORDER_HEADERS_ALLforeign key · N:1
    ON WSH_DELIVERY_DETAILS.SOURCE_HEADER_ID = OE_ORDER_HEADERS_ALL.HEADER_ID AND WSH_DELIVERY_DETAILS.ORG_ID = OE_ORDER_HEADERS_ALL.ORG_ID

Browse more Order Managementtables →

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.