ODHEAD
Prefix: UAtransactionThe invoiced-delivery header — one row per delivered and invoiced customer order delivery, carrying the invoice number and date, payer, and currency; the payment term is part of its key, so one delivery can settle under more than one term
Header & line
ODHEAD is the header for its lines in ODLINE.
Fields
10 fields · 4 key
| Key | Field | Alias | Description | Type | Length | Flags |
|---|---|---|---|---|---|---|
| Key | UACONO | CONO | Company | numeric | ||
| Key | UAORNO | ORNO | Customer order number | alphanumeric | ||
| Key | UADLIX | DLIX | Delivery index the invoiced delivery corresponds to | numeric | ||
| Key | UATEPY | TEPY | Payment terms — part of the key, so one delivery can settle under more than one term | alphanumeric | ||
| UAIVNO | IVNO | Invoice number the delivery was billed on | numeric | |||
| UAIVDT | IVDT | Invoice date | numeric | |||
| UACUNO | CUNO | Customer the delivery was made to | alphanumeric | |||
| UAPYNO | PYNO | Payer — the customer billed, when different from the receiver | alphanumeric | |||
| UACUCD | CUCD | Invoice currency | alphanumeric | |||
| UAWHLO | WHLO | Warehouse the delivery shipped from | alphanumeric |
Field provenance: hand-curated.
Boilerplate SQL
Starting point for reading ODHEADon Databricks — numeric YYYYMMDD dates are wrapped to NULL, verified status ladders are decoded, and the CONO anchor is in place. Set your Unity Catalog location, company, and filter values below; they’re substituted into the SQL and the copy button.
-- ============================================================
-- Table : ODHEAD — The invoiced-delivery header — one row per delivered and invoiced customer order delivery, carrying the invoice number and date, payer, and currency; the payment term is part of its key, so one delivery can settle under more than one term
-- Purpose: Column-selected read of ODHEAD — auto-generated from field metadata
-- Grain : One row per company (CONO) + UAORNO + UADLIX + UATEPY
-- Notes : Auto-generated skeleton for Infor Data Lake-landed M3 data. Dates are numeric YYYYMMDD (0 = none, mapped to NULL); status ladders decoded inline where verified. Audit columns (RGDT/RGTM/LMDT/CHNO/CHID) omitted — see the quirks guide.
-- ============================================================
SELECT
o.UACONO AS "Company",
o.UAORNO AS "Customer order number",
o.UADLIX AS "Delivery index the invoiced delivery corresponds to",
o.UATEPY AS "Payment terms — part of the key, so one delivery can settle under more than one term",
o.UAIVNO AS "Invoice number the delivery was billed on",
CASE WHEN o.UAIVDT = 0 THEN NULL ELSE TO_DATE(CAST(CAST(o.UAIVDT AS BIGINT) AS STRING), 'yyyyMMdd') END AS "Invoice date", -- YYYYMMDD, 0 → NULL
o.UACUNO AS "Customer the delivery was made to",
o.UAPYNO AS "Payer — the customer billed, when different from the receiver",
o.UACUCD AS "Invoice currency",
o.UAWHLO AS "Warehouse the delivery shipped from"
FROM <catalog>.<schema>.ODHEAD o
WHERE
o.UACONO = <company>
-- AND o.UAORNO = '<ORNO>'
-- AND o.UAIVDT >= <DATE_FROM> -- yyyyMMdd numeric
-- AND o.UAIVDT <= <DATE_TO> -- yyyyMMdd numeric
ORDER BY o.UAORNO;6 parameters not filled: <catalog>, <schema>, <company>, <ORNO>, <DATE_FROM>, <DATE_TO>
Relationships
1-hop neighbors — click a table to navigate there. CSYTAB decode edges are highlighted; they’re the joins newcomers most often get wrong.
Join details
ON ODHEAD.UAORNO = OOHEAD.OAORNO AND ODHEAD.UACONO = OOHEAD.OACONOON ODHEAD.UACUNO = OCUSMA.OKCUNO AND ODHEAD.UACONO = OCUSMA.OKCONOON ODHEAD.UADLIX = MHDISH.OQDLIX AND ODHEAD.UACONO = MHDISH.OQCONOON ODHEAD.UAORNO = ODLINE.UBORNO AND ODHEAD.UADLIX = ODLINE.UBDLIX AND ODHEAD.UATEPY = ODLINE.UBTEPY AND ODHEAD.UACONO = ODLINE.UBCONO