MAST table — Material to BOM Link Table
MAST is the link table that connects a material, plant, and BOM usage to a specific bill of material number and alternative in STKO/STPO. It does not store the BOM items themselves. One row means one material has one valid BOM assignment for a given plant, usage, and alternative; the actual components sit in STPO under the STLNR this row points to.
MAST resolves which bill of material applies to a given material, plant, and usage, pointing to the BOM header in STKO. It is the pivot table consultants query first when a production order, planned order, or costing run picks up the wrong BOM. This page covers its key fields, joins, and the most common wrong conclusions drawn from it.
Published 16 Sept 2026· 1,013 words
What it stores
MAST stores the assignment of a material to a bill of material. Each row says: for this material, in this plant, under this BOM usage, this alternative BOM number applies. The row itself carries no components and no quantities; it is purely a pointer from material master data into the BOM header table STKO, which then points down to the item table STPO. A single material can have multiple MAST rows if it is produced in several plants, or if it has several BOM usages (production, costing, engineering) or several alternatives within the same usage. BOM explosion logic in order creation, MRP, and costing all start by reading MAST to find the STLNR, then read STKO for header status and STPO for the item list.
Key fields
- MANDT - client
- MATNR - material number the BOM is assigned to
- WERKS - plant for which this BOM assignment is valid
- STLAN - BOM usage (1 production, 2 engineering/design, 3 universal, 4 plant maintenance, and others depending on configuration)
- STLAL - alternative BOM number within the usage
- STLNR - BOM number, the key into STKO and STPO
- AENAM / AEDAT - name and date of last change to this assignment
- LKENZ - deletion flag for the material-to-BOM link (distinct from deletion at BOM header or item level)
How it joins the data model
- MAST-STLNR = STKO-STLNR to reach the BOM header, status, and validity
- STKO-STLNR = STPO-STLNR to reach the actual component list and quantities
- STKO-STLNR = STAS-STLNR when selection conditions or alternative item groups are involved
- AFPO-STLNR (via order BOM link) traces back to MAST-STLNR when checking which material BOM an order was built from
- MAPL is the parallel link table for task lists (routings), joined on PLNTY/PLNNR rather than STLNR, and is read alongside MAST when order creation needs both BOM and routing
How to read it safely
MAST is client-dependent and keyed tightly, so selectivity is not usually the problem; getting the right combination of MATNR, WERKS, and STLAN is. Always restrict by plant before material alone, because the same material number can carry different alternative BOMs per plant with no relationship between them. Do not assume STLAN 1 (production) is the only usage in play; costing runs frequently read usage 1 or a costing-specific usage depending on configuration, and engineering changes often live under usage 2 until released. Check LKENZ before trusting a row — a deletion flag set here means the material-to-BOM link is inactive even though STKO and STPO underneath may still look perfectly valid.
How to prove it in the data
Symptom: a production order picked up an unexpected alternative BOM. Select MAST where MATNR equals the order's material, WERKS equals the order's plant, and STLAN equals the usage the order type uses (commonly 1). List all STLAL values returned with their STLNR. Then check STKO for each STLNR for validity dates and status, and compare against the order's basic start date — the order takes the alternative whose STKO validity period covers that date and whose selection method matches, not necessarily the lowest STLAL number.
ECC vs S/4HANA
MAST is unchanged as a transparent table in S/4HANA and continues to be written by standard BOM maintenance transactions. Fiori apps for BOM management read through the same underlying structure, and CDS-based reporting for BOM data typically layers views on top of MAST, STKO, and STPO rather than replacing them. No structural change to MAST itself is expected across S/4HANA releases; the table keeps its role as the material-to-BOM pointer.
Common pitfalls
- Assuming a missing MAST row means no BOM exists for the material — it may exist under a different STLAN (engineering vs production) or a different plant, and the process is simply reading the wrong usage
- Editing STLAL directly in MAST to force a different alternative — the alternative selection at order creation is driven by validity dates, selection ID, and lot size in STKO/STAS, not by manually rewriting the pointer, and doing so desynchronizes MAST from BOM header logic
- Ignoring LKENZ and concluding the BOM is active because STPO items look complete — the link itself can be flagged for deletion independently of the header and items
- Forgetting that STLAN separates usages completely — a valid, released production BOM under usage 1 says nothing about whether a costing usage BOM exists or is current
- Treating MAST as multi-plant aware — a BOM alternative valid in one plant has no bearing on the same material in another plant; each plant requires its own MAST row and its own alternative logic
- Assuming the row with the highest STLAL is the newest — alternative numbers are assigned by usage pattern and change history, not chronology, and an older alternative can carry a higher number than one created later
Whose problem this is
BOM assignment and alternative logic is owned by the PP or plant engineering master data team, usually the same group responsible for routing maintenance in task lists. Disputes over which alternative an order should have picked up get resolved by comparing MAST/STKO validity and selection settings against the order date, not by adjusting values in MAST directly.
Related SAP objects
Reviewed pages this object connects to in the ERPClimb knowledge graph.
Source: ERPClimb — https://erpclimb.com/sap-tables/mastERPClimb is an independent platform and is not affiliated with SAP SE. Reference pages are written and reviewed by SAP consultants for learning and troubleshooting.