MDTB table — MRP List Item Table (Cluster)
MDTB stores the individual MRP element lines that make up a classic MRP list, one row per requirement, receipt, or stock line generated at the moment MRP last ran for a material and plant. It is a frozen snapshot linked to header table MDKP, not a live view — it does not update itself when stock or orders change after the run.
MDTB holds the line-level detail of the classic MRP list, the static result set behind transactions like MD05 and MD06. This page covers what a row actually represents, how it differs from the live requirements/stock list, and the pitfalls of treating a frozen planning snapshot as current data.
Published 16 Sept 2026· 1,006 words
What it stores
One row in MDTB represents a single MRP element line within a stored MRP list: a planned order, purchase requisition, reservation, sales order, or stock quantity as it existed at the point the last MRP run processed that material and plant. The row carries the date, quantity, and sign (requirement versus receipt) of that element, exactly as calculated during the planning run. It is not recalculated on display. The list it belongs to is generated by MRP and then persisted; MDTB is the body of that persisted list, while the header identifying which material, plant, and run it belongs to sits in MDKP. Because it is a snapshot, a row can be materially wrong the moment stock moves, an order is confirmed, or a new sales order is entered after the run completed.
Key fields
Fields below are the ones consistently present in the cluster structure; exact technical names are listed with medium confidence given the cluster storage format and should be verified against the current structure definition before being hard-coded into a report.
- MANDT - client
- MATNR - material number of the planned material this list line belongs to
- WERKS - plant for which the MRP list was generated
- DAT00 - the availability or MRP date of this element line
- MNG01 - the quantity of the element (requirement or receipt) on this date
- PLUMI - sign indicating whether the line adds to or subtracts from available quantity
How it joins the data model
MDTB is keyed to its header by material and plant, and each element line logically points back to the source document that generated it, even though the cluster storage does not enforce that as a normal foreign key.
- MDTB-MATNR = MDKP-MATNR
- MDTB-WERKS = MDKP-WERKS
- MDTB (element type = planned order) corresponds to PLAF-PLNUM
- MDTB (element type = reservation) corresponds to RESB-RSNUM
- MDTB (element type = production order) corresponds to AFPO-AUFNR via AFKO
How to read it safely
MDTB is cluster-organized data, not a plain transparent table in every release, so a direct SELECT or a naive SE16 join across MATNR and WERKS can return nothing useful or fail outright depending on the storage form in the system being examined. Always restrict by MANDT, then by the exact MATNR and WERKS pair from MDKP, and treat the result as belonging to one specific MRP run, not to 'the material' in general. Never assume the rows are current; check the run date and time stamped on the MDKP header before drawing conclusions from any MDTB row.
How to prove it in the data
Symptom: a planner insists the MRP list (MD05) shows a shortage that current stock overview does not. Pull the MDKP header for the material and plant to get the run timestamp, then compare the MDTB element dates and quantities against a fresh MD04 pull for the same material and plant. If the MDKP timestamp predates a known goods receipt or order change, the mismatch is explained: MDTB is stale, not wrong.
ECC vs S/4HANA
The classic MRP list concept, with results persisted in header/item cluster tables such as MDKP and MDTB, predates S/4HANA's move toward MRP Live, which is built to recalculate planning results efficiently in the database rather than rely solely on a stored snapshot. Depending on how MRP is run and which planning transactions are still in use, the classic list storage may still be populated for backward compatibility, but the operational emphasis on S/4HANA systems has shifted toward live re-evaluation. Any release-specific claim about whether MDTB is still written in a given system should be confirmed against that system rather than assumed.
Common pitfalls
The recurring mistake with this table is treating a frozen result as if it were live data, and the consequences compound from there.
- Assuming MDTB reflects current stock and requirements: it reflects the state at the moment of the last MRP run only, and every subsequent goods movement, order change, or manual reservation makes it stale.
- Confusing MDTB with the logic behind MD04: MD04 builds its display dynamically from live tables such as RESB, AFPO, and PLAF in most configurations, it does not simply read MDTB, so the two can legitimately disagree without either being broken.
- Attempting a direct open SQL join against MDTB expecting normal transparent-table behaviour, and getting an empty or garbled result because of cluster storage constraints in the release being queried.
- Reading a shortage or excess in MDTB and escalating it as a current supply problem before checking the MDKP run timestamp, when the real issue is simply that MRP has not been re-run since a change.
- Deleting old MRP lists to save space without recognising that this removes the only recorded evidence of what the planning situation looked like at a past point in time, which matters when investigating a historical shortage.
Whose problem this is
The PP consultant or MRP controller who configured the planning run and interprets MRP lists owns questions about what an MDTB-based list shows. Basis gets involved only if the cluster storage itself cannot be read technically. Master data or supply chain planning owns the underlying material and stock data that made the run produce a given result.
Related SAP objects
Reviewed pages this object connects to in the ERPClimb knowledge graph.
Source: ERPClimb — https://erpclimb.com/sap-tables/mdtbERPClimb is an independent platform and is not affiliated with SAP SE. Reference pages are written and reviewed by SAP consultants for learning and troubleshooting.