MDTB SAP (MRP Table) Table details

Dictionary Type: Table
Description: MRP Table




ABAP Code to SELECT data from MDTB
Related tables to MDTB
Access table MDTB




Table field list including key, data, relationships and ABAP select examples

MDTB is a standard SAP Table which is used to store MRP Table data and is available within R/3 SAP systems depending on the version and release level.

The MDTB table consists of various fields, each holding specific information or linking keys about MRP Table data available in SAP. These include DTNUM (Number of material requirements planning table), DTPOS (Item number of MRP list), PLAKZ (Indicator for planning segment), PLANR (Planning segment number).. See below for full list along with technical details, documentation, text table, check tables, foreign key relationships, conversion routines, relevant tcodes and example ABAP select code etc. .

Delivery Class: A - Application table (master and transaction data)
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Can be enhanced (character-type or numeric)


SAP MDTB table fields - Full list of fields found in SAP data dictionary

Field Description Data Element Data Type length (Dec) Check table Conversion Routine Domain Name MemoryID SHLP
MANDTClient MANDTCLNT3Assigned to domainMANDT
DTNUMNumber of material requirements planning table DTNUMNUMC10NUM10
DTPOSItem number of MRP list DTPOSNUMC6NUM06
PLAKZIndicator for planning segment PLAKZCHAR1PLAKZ
PLANRPlanning segment number PLANRCHAR20PLANR
DAT00Receipt/Requirements date DAT00DATS8DATUM
SORT1Sort indicator 01 SORT1CHAR1SORT1
SORT2Sort indicator 02 SORT2CHAR2SORT2
DELKZMRP element DELKZCHAR2DELKZ
VSTATProcessing Status VSTAT_DCHAR1VSTAT
VRFKZAvailability indicator VRFKZCHAR1VRFKZ
PLUMIReceipt/issue indicator PLUMICHAR1CHAR1
MNG01Quantity received or quantity required MNG01QUAN13(3) MENGV13
MNG02Variable scrap quantity MNG02QUAN13(3) MENG13
MNG03Shortage Quantity MNG03QUAN13(3) MENG13
DAT01Delivery/order finish date DAT01DATS8DATUM
DAT02Start/release date DAT02DATS8DATUM
DAT03Opening date DAT03DATS8DATUM
PERKZPeriod Indicator PERKZCHAR1PERKZPKZ
PRPERForecast period PRPERNUMC6PRPER
WEBAZGoods Receipt Processing Time in Days WEBAZDEC3DEC3
FIX01Indicator: fixeing lot size in planned order FIX01CHAR1XFELD
FIX02Indicator: fixing explosion in planned order FIX02CHAR1XFELD
BAARTP.O./Order type BAARTCHAR4BAART
BESKZProcurement Type BESKZCHAR1BESKZMBS
SOBESSpecial procurement type SOBESCHAR1SOBES
UMSKZSpecial G/L Indicator UMSKZCHAR1T074UUMSKZ
PLARTPlanning type PLARTCHAR1Assigned to domainPLART
AUSSLException message key AUSSLCHAR2T458AAUSSL
WRK02Planning/production plant WRK02CHAR4T001WWERKS
LGORTStorage Location LGORT_DCHAR4Assigned to domainLGORTLAG
DELNRMRP element number DELNRCHAR10DELNR
DELPSMRP element item DELPSNUMC6DELPS
DELETSchedule Line Number MRP Element DELETNUMC4DELET
AUFVRSource number for order AUFVRCHAR10CHAR10
POSVRSource item number POSVRNUMC6NUM06
EINVRSource schedule line number EINVRNUMC4NUM04
UKZ01Indicator: MRP element can be brought forward UKZ01CHAR1XFELD
UMDATRescheduling date UMDATDATS8DATUM
DEL12MRP element number DEL12CHAR12DEL12
BAUGRMaterial number of higher-level assembly BAUGRCHAR18MARAMATN1MATNR
DELVRMRP element DELKZCHAR2DELKZ
VERSBVersion number for independent requirements VERSBCHAR2Assigned to domainVERSBVES
OLDSLKey of the second exception message OLDSLCHAR2T458AAUSSL
RDMNGExcess stock quantity RDMNGQUAN13(3) MENG13
PLAABMaterial requirements planning segment PLAABNUMC2PLAAB
TAG00Daily shift (sort indicator 0) TAG00NUMC2TAG00
ABEKZException indicator ABEKZCHAR1CHAR1
MDFSTProduction order status: internal ind. for MRP MDFSTCHAR1CHAR1
MDMNGMRP: quantity field (stock in transit, receipt qty, ...) MDMNGQUAN13(3) MENGV13
VERIDProduction Version VERIDCHAR4Assigned to domainVERIDVER
WRK01Planning Plant PLWRKCHAR4Assigned to domainWERKSWRK
SERNRBOM explosion number SERNRCHAR8Assigned to domainSERNR
REVLVRevision Level REVLVCHAR2NUMCVREVLVRVS
DBSKZDirect procurement indicator DBSKZCHAR1DBSKZ
EXTNLIndicator for External Procurement EXTNLCHAR1XFELD
ADINFField for Additional Information MD_ADINFCHAR4MD_ADINF
RESLOIssuing Storage Location for Stock Transport Order RESLOCHAR4Assigned to domainLGORT
PRIO_URGRequirement Urgency PRIO_URGNUMC2PURGPRIO_URG
PRIO_REQRequirement Priority PRIO_REQNUMC3PREQPRIO_REQ
.INCLU--AP 0
MPNMTMaterial Number MATNRCHAR18Assigned to domainMATN1MATNRMATS_MAT1

Key field Non-key field



How do I retrieve data from SAP table MDTB using ABAP code

The following ABAP code Example will allow you to do a basic selection on MDTB to SELECT all data from the table
DATA: WA_MDTB TYPE MDTB.

SELECT SINGLE *
FROM MDTB
INTO CORRESPONDING FIELDS OF WA_MDTB
WHERE...

How to access SAP table MDTB

Within an ECC or HANA version of SAP you can also view further information about MDTB and the data within it using relevant transactions such as

SE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!