MDHD SAP (Supplier Portal: Header Data Structure for Materials) Structure details
Description: Supplier Portal: Header Data Structure for Materials
Structure field list including key, data, relationships and ABAP select examples
MDHD is a standard SAP Structure so does not store data like a database table does. It can be used to define the fields of other actual tables or to process "Supplier Portal: Header Data Structure for Materials" Information within sap ABAP programs.
This is done by declaring abap internal tables, work areas or database tables based on this Structure. These can then be used to store and process the required data appropriately.
i.e. DATA: wa_MDHD TYPE MDHD.
The MDHD table consists of various fields, each holding specific information or linking keys about Supplier Portal: Header Data Structure for Materials data available in SAP. These include MATNR (Material Number), EXMAT (Material Number used by Vendor), WERKS (Plant), LIFNR (Vendor Account 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:Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Can be enhanced (character-type or numeric)
SAP MDHD structure 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 |
DISST | Low-Level Code | DISST | CHAR | 3 | DISST | ||||
MATNR | Material Number | MATNR | CHAR | 18 | Assigned to domain | MATN1 | MATNR | MAT | S_MAT1 |
EXMAT | Material Number used by Vendor | MD_EXMAT | CHAR | 35 | IDNEX | ||||
WERKS | Plant | WERKS_D | CHAR | 4 | Assigned to domain | WERKS | WRK | H_T001W_C | |
LIFNR | Vendor Account Number | ELIFN | CHAR | 10 | Assigned to domain | ALPHA | LIFNR | LIF | KRED_C |
BERID | MRP Area | BERID | CHAR | 10 | Assigned to domain | BERID | BERID | ||
TXWRK | Plant - short text | TXWRK_D | CHAR | 30 | CHAR30 | ||||
BERTX | MRP area text | BERTX | CHAR | 40 | BERTX | ||||
SGSRC | Single-source indicator | SGSRC | CHAR | 10 | CHAR10 | ||||
PLWRK | Planning Plant | PLWRK | CHAR | 4 | Assigned to domain | WERKS | WRK | ||
PLSCN | Planning Scenario of Long-Term Planning | PLSCN | NUMC | 3 | Assigned to domain | PLSCN | PLS | ||
MAKTX | Material Description (Short Text) | MAKTX | CHAR | 40 | TEXT40 | ||||
DISPO | MRP Controller (Materials Planner) | DISPO | CHAR | 3 | Assigned to domain | DISPO | DGR | HS_T024D | |
BDBKZ | Selection indicator for processed MRP lists | BDBKZ | CHAR | 1 | XFELD | ||||
MTART | Material Type | MTART | CHAR | 4 | Assigned to domain | MTART | MTA | ||
DISMM | MRP Type | DISMM | CHAR | 2 | Assigned to domain | DISMM | |||
MEINS | Base Unit of Measure | MEINS | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
BESKZ | Procurement Type | BESKZ | CHAR | 1 | BESKZ | MBS | |||
SOBES | Special procurement type | SOBES | CHAR | 1 | SOBES | ||||
ESOBS | Special procurement - external display | ESOBS | CHAR | 1 | Assigned to domain | ESOBS | |||
DTNUM | Number of material requirements planning table | DTNUM | NUMC | 10 | NUM10 | ||||
BERW1 | Stock Days' Supply Without Receipts | BERW1 | DEC | 4(1) | DECV3_1 | ||||
BERW2 | First Receipt Days' Supply | BERW2 | DEC | 4(1) | DECV3_1 | ||||
BERW4 | Second Receipt Days' Supply | BERW4 | DEC | 4(1) | DECV3_1 | ||||
DSDAT | MRP date | DSDAT | DATS | 8 | DATUM | ||||
KZPROMO | Indicator: Material in promotion | KZPROMO | CHAR | 1 | CHAR1 | ||||
MAKZG | Selection flag | SELKZ | CHAR | 1 | SELKZ | ||||
SUM01 | Plant stock / only plant segment | SUM01W | QUAN | 13(3) | MENG13 | ||||
BERX1 | Stock Days' Supply Without Receipts | BERW1 | DEC | 4(1) | DECV3_1 | ||||
BERX2 | First Receipt Days' Supply | BERW2 | DEC | 4(1) | DECV3_1 | ||||
BERX3 | Second Receipt Days' Supply | BERW4 | DEC | 4(1) | DECV3_1 | ||||
ALINE | Line index for internal table processing | XLINE | INT4 | 10 | XLINE | ||||
ABLKZ | Current stock/requirements list was created | ABLKZ | CHAR | 1 | XFELD | ||||
LAZKZ | Indicator: List was already accessed (displayed) | LAZKZ | CHAR | 1 | XFELD | ||||
KZSEASN | Indicator: Seasonal material | KZSEASN | CHAR | 1 | XFLAG | ||||
MAABC | ABC Indicator | MAABC | CHAR | 1 | Assigned to domain | MAABC | |||
EXPAND | Single-Character Indicator | CHAR1 | CHAR | 1 | CHAR1 | ||||
INFO | 3-Byte field | CHAR3 | CHAR | 3 | CHAR3 | ||||
DSNAM | Name of MRP controller | DSNAM | CHAR | 18 | TEXT18 | ||||
DSTEL | MRP controller's telephone number | DSTEL | CHAR | 12 | CHAR12 | ||||
DSMAL | E-Mail Address | AD_SMTPADR | CHAR | 241 | SXIDN | AD_SMTPADR |
Key field | Non-key field |
How do I retrieve data from SAP structure MDHD using ABAP code?
As MDHD is a database structure and not a table it does not store any data in the SAP data dictionary. The ABAP SELECT statement is therefore not appropriate and can not be performed on MDHD as there is no data to select.How to access SAP table MDHD
Within an ECC or HANA version of SAP you can also view further information about MDHD and the data within it using relevant transactions such asSE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).
Search for further information about these or an SAP related objects