Skip to content
M3 Reference

ODHEAD

Prefix: UAtransaction

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

Module: DeliveriesCompany-partitioned (CONO)

Header & line

ODHEAD is the header for its lines in ODLINE.

Fields

10 fields · 4 key

KeyFieldAliasDescriptionTypeLengthFlags
KeyUACONOCONOCompanynumeric
KeyUAORNOORNOCustomer order numberalphanumeric
KeyUADLIXDLIXDelivery index the invoiced delivery corresponds tonumeric
KeyUATEPYTEPYPayment terms — part of the key, so one delivery can settle under more than one termalphanumeric
UAIVNOIVNOInvoice number the delivery was billed onnumeric
UAIVDTIVDTInvoice datenumeric
UACUNOCUNOCustomer the delivery was made toalphanumeric
UAPYNOPYNOPayer — the customer billed, when different from the receiveralphanumeric
UACUCDCUCDInvoice currencyalphanumeric
UAWHLOWHLOWarehouse the delivery shipped fromalphanumeric

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.

Query parameters
-- ============================================================
-- 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

  • ODHEADOOHEADforeign key · N:1
    ON ODHEAD.UAORNO = OOHEAD.OAORNO AND ODHEAD.UACONO = OOHEAD.OACONO
  • ODHEADOCUSMAforeign key · N:1
    ON ODHEAD.UACUNO = OCUSMA.OKCUNO AND ODHEAD.UACONO = OCUSMA.OKCONO
  • ODHEADMHDISHforeign key · N:1
    ON ODHEAD.UADLIX = MHDISH.OQDLIX AND ODHEAD.UACONO = MHDISH.OQCONO
  • ODHEADODLINEheader line · 1:N
    ON ODHEAD.UAORNO = ODLINE.UBORNO AND ODHEAD.UADLIX = ODLINE.UBDLIX AND ODHEAD.UATEPY = ODLINE.UBTEPY AND ODHEAD.UACONO = ODLINE.UBCONO

Programs That Use This Table

No program mappings populated for this table yet.

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

Work with the practice →

Not affiliated with or endorsed by Infor. Infor, Infor M3, and Infor CloudSuite are trademarks of Infor and/or its affiliates.