Skip to content
M3 Reference

MPHEAD

Prefix: IAtransaction

The purchase order header — one row per order, carrying the supplier, order date, currency, receiving warehouse, and the lowest/highest line status pair mirroring the customer-order pattern

Module: PurchasingCompany-partitioned (CONO)
What the badges mean
Prefix: MM
Prefix: the table’s 2-character physical-column prefix (e.g. MM on MITMAS) — every field alias on the table carries it. Join by matching aliases across tables, not full column names (see the quirks guide).
master
Data class: what the table holds — master data, balances, transaction documents, code/reference tables, or history.
Shared across companies
The table carries no CONO — rows aren’t partitioned per company (see the quirks guide).
Division-level
The table carries DIVI — rows are scoped below company to a division, one layer more granular than CONO alone (see the quirks guide).
In field listings, K marks a primary-key field.

Header & line

MPHEAD is the header for its lines in MPLINE.

Fields

8 fields · 2 key

8 fields.

Table fields: key flag, field name, column alias, description, data type, length, and decode flags. 8 fields.
KeyFieldAliasDescriptionTypeLengthFlags
KeyIACONOCONOCompanynumeric
KeyIAPUNOPUNOPurchase order number — the key order lines join onalphanumeric
IAPUSLPUSLLowest line status on the orderalphanumeric
IAPUSTPUSTHighest line status on the orderalphanumeric
IASUNOSUNOSupplier the order is placed withalphanumeric
IAPUDTPUDTPurchase order datenumeric
IACUCDCUCDOrder currencyalphanumeric
IAWHLOWHLOReceiving warehouse for the orderalphanumeric

Field provenance: hand-curated.

Boilerplate SQL

Starting point for reading MPHEAD on 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

6 parameters not filled: <catalog>, <schema>, <company>, <PUNO>, <DATE_FROM>, <DATE_TO>

-- ============================================================
-- Table  : MPHEAD — The purchase order header — one row per order, carrying the supplier, order date, currency, receiving warehouse, and the lowest/highest line status pair mirroring the customer-order pattern
-- Purpose: Column-selected read of MPHEAD — auto-generated from field metadata
-- Grain  : One row per company (CONO) + IAPUNO
-- Notes  : Auto-generated skeleton for a prefixed physical M3 schema or a landing schema normalized to the prefixed names in this catalog. Raw Data Lake property names vary with the published object: map them through Data Catalog before running this SQL. Dates are numeric YYYYMMDD (0 = none, mapped to NULL); all curated status values are decoded inline. Audit columns (RGDT/RGTM/LMDT/CHNO/CHID) omitted — see the quirks guide.
-- ============================================================
SELECT
  ph.IACONO AS "Company",
  ph.IAPUNO AS "Purchase order number — the key order lines join on",
  ph.IAPUSL AS "Lowest line status on the order",  -- status: decode ph.IAPUSL against your configuration — see quirks guide #statuses
  ph.IAPUST AS "Highest line status on the order",  -- status: decode ph.IAPUST against your configuration — see quirks guide #statuses
  ph.IASUNO AS "Supplier the order is placed with",
  CASE WHEN ph.IAPUDT = 0 THEN NULL ELSE TO_DATE(CAST(CAST(ph.IAPUDT AS BIGINT) AS STRING), 'yyyyMMdd') END AS "Purchase order date",  -- YYYYMMDD, 0 → NULL
  ph.IACUCD AS "Order currency",
  ph.IAWHLO AS "Receiving warehouse for the order"
FROM <catalog>.<schema>.MPHEAD ph
WHERE
  ph.IACONO = <company>
  -- AND ph.IAPUNO = '<PUNO>'
  -- AND ph.IAPUDT >= <DATE_FROM>  -- yyyyMMdd numeric
  -- AND ph.IAPUDT <= <DATE_TO>  -- yyyyMMdd numeric
ORDER BY ph.IAPUNO;

Verified September 2026

Relationships

Diagram of 1-hop neighbors — join details below. CSYTAB decode edges are highlighted; they’re the joins newcomers most often get wrong.

Join details

  • MPHEADMPLINEheader line · 1:N
    -- Uses this catalog's prefixed M3 column names; map raw Data Lake properties through Data Catalog first. ON MPHEAD.IAPUNO = MPLINE.IBPUNO AND MPHEAD.IACONO = MPLINE.IBCONO
  • MPHEADCIDMASforeign key · N:1
    -- Uses this catalog's prefixed M3 column names; map raw Data Lake properties through Data Catalog first. ON MPHEAD.IASUNO = CIDMAS.IDSUNO AND MPHEAD.IACONO = CIDMAS.IDCONO

Programs That Use This Table

More Purchasing tables

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 Infor. Infor, Infor M3, and Infor CloudSuite are trademarks of Infor and/or its affiliates.