Material Document Segment (S/4HANA universal material-movement table) — the S/4HANA replacement for the classic ECC pairing of MKPF (material document header) and MSEG (material document item). MATDOC supersedes MKPF/MSEG outright: a customer running classic ECC mirrors MKPF/MSEG, while a customer on S/4HANA mirrors MATDOC — the model must read both to cover the MM inventory-movement lane across a customer's install base, the exact same duality FAGLFLEXA vs ACDOCA covers on the FI side (a customer running classic ECC mirrors FAGLFLEXA; a customer on S/4HANA mirrors ACDOCA). Structurally MATDOC is not keyed by MBLNR/MJAHR/ZEILE the way MSEG is — those remain present only as non-key legacy-compatibility reference fields — instead each row is keyed by a split GUID (KEY1 through KEY6) plus MANDT, RECORD_TYPE, and HEADER_COUNTER, reflecting MATDOC's role as a wide semantic-flattened table that carries stock-characteristic dimensions (material, plant, storage location, batch, special-stock indicators) directly on each movement row rather than requiring a join back to master data. SAP's real table carries 300+ fields including CWM parallel-unit-of-measure fields, EWM warehouse-document linkage, retail/fashion segmentation, and joint-venture accounting extensions; this definition is scoped to the split-GUID key, the legacy MBLNR/MJAHR/ZEILE compatibility fields, and the core business fields a downstream MM/FI crosswalk consumes (material, plant, storage location, batch, movement type, quantities, amounts, dates, and the account-assignment fields — cost center, order, WBS, asset, G/L account — that hand off to ACDOCA) — no fewer than 25 fields, per the wide-table rule.
Hover a canonical name to see the legacy SAP field name
| Canonical name | Concept | Description | Data element | Type | Check table |
|---|---|---|---|---|---|
| CLI key | cliens | Client | MANDT | CLNT 3 | T000 |
| KEY1 key | Split GUID, Part 1 | | RAW 4 | — | |
| KEY2 key | Split GUID, Part 2 | | RAW 4 | — | |
| KEY3 key | Split GUID, Part 3 | | RAW 5 | — | |
| KEY4 key | Split GUID, Part 4 | | RAW 1 | — | |
| KEY5 key | Split GUID, Part 5 | | RAW 1 | — | |
| KEY6 key | Split GUID, Part 6 | | RAW 1 | — | |
| TBL_GEN key | tabula genus | Record Type | NSDM_RECORD_TYPE | CHAR 60 | — |
| MAT_DOC_NMR key | materia documentum numerator | Material Document Counter | NSDM_HEADER_COUNTER | RAW 4 | — |
| NUM_MAT_DOC | numerus materia documentum | Number of Material Document (legacy-compatibility reference field, non-key) | MBLNR | CHAR 20 | — |
| MAT_DOC_ANN | materia documentum annus | Material Document Year (legacy-compatibility reference field, non-key) | MJAHR | NUMC 8 | — |
| POS_MAT_DOC | positio materia documentum | Item in Material Document (legacy-compatibility reference field, non-key) | MBLPO | NUMC 8 | — |
| MAT_NUM | materia numerus | Material Number | MATNR | CHAR 80 | — |
| OFC | officina | Plant | WERKS_D | CHAR 8 | — |
| LOC | locus repositionis | Storage Location | LGORT_D | CHAR 8 | T001L |
| GRX_NUM | grex numerus | Batch Number | CHARG_D | CHAR 20 | — |
| AES_GEN | aestimatio genus | Valuation Type | BWTAR_D | CHAR 20 | — |
| MTM_GEN | motus genus | Movement Type (Inventory Management) | BWART | CHAR 6 | T156 |
| SOC | codex societatis | Company Code | BUKRS | CHAR 8 | T001 |
| QNT | quantitas | Quantity | MENGE_D | DEC 7 | — |
| MEN | mensura | Base Unit of Measure | MEINS | CHAR 6 | T006 |
| SUM_MON | summa moneta | Amount in Local Currency | DMBTR_CS | DEC 7 | — |
| CVM | clavis monetae | Currency Key | WAERS | CHAR 10 | TCURC |
| DIN_DOC | dies inscriptionis documentum | Posting Date in the Document | BUDAT | DATS 16 | — |
| DDC_DOC | dies documenti documentum | Document Date in Document | BLDAT | DATS 16 | — |
| DIE_DOC | dies documentum | Day On Which Accounting Document Was Entered | CPUDT | DATS 16 | — |
| ANF | annus fiscalis | Fiscal Year | GJAHR | NUMC 8 | — |
| RFR_NDO | referentia numerus documenti | Reference Document Number | XBLNR1 | CHAR 32 | — |
| MEM_NUM | mandatum emptionis numerus | Purchase order number | BSTNR | CHAR 20 | EKKO |
| POS_NUM_DEM | positio numerus documentum emptionis | Item Number of Purchasing Document | EBELP | NUMC 10 | EKPO |
| VEN_RAT_NUM | venditor ratio numerus | Supplier's Account Number | ELIFN | CHAR 20 | LFA1 |
| RAT_NUM_EMP | ratio numerus emptor | Account number of customer | EKUNN | CHAR 20 | KNA1 |
| MND_NUM | mandatum numerus | Order Number | AUFNR | CHAR 24 | AUFK |
| PTM_NUM | patrimonium numerus | Main Asset Number | ANLN1 | CHAR 24 | ANLH |
| PTM | patrimonium | Asset Subnumber | ANLN2 | CHAR 8 | ANLA |
| CSM | centrum sumptus | Cost Center | KOSTL | CHAR 20 | CSKS |
| AMD | area moderationis | Controlling Area | KOKRS | CHAR 8 | TKA01 |
| OPS_ELM_EOP | opus elementum elementum operis | Work Breakdown Structure Element (WBS Element) | PS_PSP_PNR | CHAR 16 | PRPS |
| CLU | centrum lucri | Profit Center | PRCTR | CHAR 20 | — |
| RAT_NUM | ratio numerus | G/L Account Number | SAKNR | CHAR 20 | SKA1 |
| SMP_OBI | sumptus obiectum | Cost Object | KSTRG | CHAR 24 | — |
| NUM_RAT_ASG | numerus ratio assignatio | Sequential Number of Account Assignment | DZEKKN | NUMC 4 | — |
| DBT_CRD_IDX | debitum creditum index | Debit/Credit Indicator | SHKZG | CHAR 2 | — |
| CPA_GEN | copia genus | Stock Type | MB_INSMK | CHAR 2 | — |
| CPA_IDX | copia index | Special Stock Indicator | SOBKZ | CHAR 2 | — |
| CSA_MTM | causa motus | Reason for Movement | MB_GRBEW | NUMC 8 | T157D |
| TRB_VDT_COD | tributum venditio codex | Tax on sales/purchases code | MWSKZ | CHAR 4 | T007A |
| TRB | tributum | Tax Jurisdiction | TXJCD | CHAR 30 | — |
| NUM_DOC_CND | numerus documentum condicio | Number of the Document Condition | KNUMV | CHAR 20 | — |
| POS_CRE | positio creatus | Item automatically created | MB_XAUTO | CHAR 2 | — |
| NHR_HOR | numerus horrei horreum | Warehouse Number / Warehouse Complex | LGNUM | CHAR 6 | T300 |
Foreign keys
| Field | Check table | Check field |
|---|---|---|
MANDT | T000 | MANDT |
LGORT | T001L | LGORT |
BWART | T156 | BWART |
BUKRS | T001 | BUKRS |
MEINS | T006 | MSEHI |
WAERS | TCURC | WAERS |
EBELN | EKKO | EBELN |
EBELP | EKPO | EBELP |
LIFNR | LFA1 | LIFNR |
KUNNR | KNA1 | KUNNR |
AUFNR | AUFK | AUFNR |
ANLN1 | ANLH | ANLN1 |
ANLN2 | ANLA | ANLN2 |
KOSTL | CSKS | KOSTL |
KOKRS | TKA01 | KOKRS |
PS_PSP_PNR | PRPS | PSPNR |
SAKTO | SKA1 | SAKNR |
GRUND | T157D | GRUND |
MWSKZ | T007A | MWSKZ |
LGNUM | T300 | LGNUM |