MDVA SAP (Availability structure for several items) Structure details
Description: Availability structure for several items
Structure field list including key, data, relationships and ABAP select examples
MDVA 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 "Availability structure for several items" 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_MDVA TYPE MDVA.
The MDVA table consists of various fields, each holding specific information or linking keys about Availability structure for several items data available in SAP. These include WERKS (Plant), LGORT (Storage Location), CHARG (Batch Number), KDAUF (Sales Order 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 MDVA 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 |
MATNR | Material Number | MATNR | CHAR | 18 | Assigned to domain | MATN1 | MATNR | MAT | S_MAT1 |
WERKS | Plant | WERKS_D | CHAR | 4 | Assigned to domain | WERKS | WRK | H_T001W_C | |
LGORT | Storage Location | LGORT_D | CHAR | 4 | Assigned to domain | LGORT | LAG | ||
CHARG | Batch Number | CHARG_D | CHAR | 10 | Assigned to domain | CHARG | CHA | ||
KDAUF | Sales Order Number | KDAUF | CHAR | 10 | Assigned to domain | ALPHA | VBELN | AUN | |
KDPOS | Item Number in Sales Order | KDPOS | NUMC | 6 | NUM06 | KPO | |||
PSPEL | WBS Element | PS_POSNR | NUMC | 8 | Assigned to domain | ABPSP | PS_POSNR | ||
KUNNR | Customer Numbers | KUNNR | CHAR | 10 | Assigned to domain | ALPHA | KUNNR | KUN | C_KUNNR |
MTVFP | Checking Group for Availability Check | MTVFP | CHAR | 2 | Assigned to domain | MTVFP | |||
PRREG | Checking Rule for Availability Check | PRREG | CHAR | 2 | Assigned to domain | PRREG | PRR | ||
DELKZ | MRP element | DELKZ | CHAR | 2 | DELKZ | ||||
DELNR | MRP element number | DELNR | CHAR | 10 | DELNR | ||||
DELPS | MRP element item | DELPS | NUMC | 6 | DELPS | ||||
DELET | Schedule Line Number MRP Element | DELET | NUMC | 4 | DELET | ||||
BAART | P.O./Order type | BAART | CHAR | 4 | BAART | ||||
BDART | Requirement type | BDART | CHAR | 2 | BDART | BDA | |||
PLART | Planning type | PLART | CHAR | 1 | Assigned to domain | PLART | |||
VBTYP | SD document category | VBTYP | CHAR | 1 | VBTYP | ||||
VERKZ | Single-Character Indicator | CHAR1 | CHAR | 1 | CHAR1 | ||||
SOBKZ | Special Stock Indicator | SOBKZ | CHAR | 1 | Assigned to domain | SOBKZ | |||
SIMKZ | Single-Character Indicator | CHAR1 | CHAR | 1 | CHAR1 | ||||
KORKZ | Single-Character Indicator | CHAR1 | CHAR | 1 | CHAR1 | ||||
AUFNR | Order Number | AUFNR | CHAR | 12 | Assigned to domain | ALPHA | AUFNR | ANR | |
POSNR | Item number of the SD document | POSNR | NUMC | 6 | Assigned to domain | POSNR | |||
BDTER | Requirement Date for the Component | BDTER | DATS | 8 | DATUM | ||||
BDMNG | Requirement Quantity | BDMNG | QUAN | 13(3) | MENG13 | ||||
VMENG | Committed Quantity | MNG06 | QUAN | 13(3) | MENGV13 | ||||
ATPMG | ATP quantity | MNG04 | QUAN | 13(3) | MENGV13 | ||||
FMENG | Quantity is Fixed | FMENG | CHAR | 1 | XFELD | ||||
DAT01 | Committed Date | DAT05 | DATS | 8 | DATUM | ||||
ERRKZ | Single-Character Indicator | CHAR1 | CHAR | 1 | CHAR1 | ||||
SELKZ | Single-Character Indicator | CHAR1 | CHAR | 1 | CHAR1 | ||||
XFEHL | Missing Part | XFEHL | CHAR | 1 | XFELD | ||||
XLINE | Line index for internal table processing | XLINE | INT4 | 10 | XLINE | ||||
MAKTX | Material Description (Short Text) | MAKTX | CHAR | 40 | TEXT40 | ||||
REVLV | Revision Level | REVLV | CHAR | 2 | NUMCV | REVLV | RVS | ||
MENGE | Requirement quantity of the component | CO_MENGE | QUAN | 13(3) | MENGV13 | ||||
DVMENG | Confirmed quantity/allocated quantity | PP_VMENG | QUAN | 13(3) | MENGV13 | ||||
DATPMG | ATP quantity/available quantity | PP_ATPMG | QUAN | 13(3) | MENGV13 | ||||
AUSME | Unit of issue | AUSME | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
UMREN | Denominator for conversion to base units of measure | UMREN | DEC | 5 | UMBSN | ||||
UMREZ | Numerator for Conversion to Base Units of Measure | UMREZ | DEC | 5 | UMBSZ | ||||
SHOWX | Checkbox | XFELD | CHAR | 1 | XFELD | ||||
COUNTER | Numc3, internal use | NUMC3 | NUMC | 3 | NUMC3 | ||||
ALPST | Alternative item: strategy | CS_ALPST | CHAR | 1 | CS_ALPST | ||||
ALPGR | Alternative item: group | CS_ALPGR | CHAR | 2 | CHAR2 | ||||
ALPRF | Alternative item: ranking order | CS_ALPRF | NUMC | 2 | NUM2 | ||||
KFPOS | Indicator: 'configurable item' | KFPOS | CHAR | 1 | XFLAG | ||||
STLTY | BOM category | STLTY | CHAR | 1 | STLTY | ||||
STLNR | Bill of material | STNUM | CHAR | 8 | NUMCV | STNUM | STLNR | ||
STLKN | BOM item node number | STLKN | NUMC | 8 | KNTNR | ||||
STPOZ | Internal counter | CIM_COUNT | NUMC | 8 | CIM_COUNT | ||||
ACENQ | Material block in availability check with transfer of qties | ACENQ | CHAR | 1 | XFELD | ||||
XWAOK | Goods Movement for Reservation Allowed | XWAOK | CHAR | 1 | XFELD | ||||
RGBKZ | Single-Character Indicator | CHAR1 | CHAR | 1 | CHAR1 | ||||
ENMNG | Quantity Withdrawn | ENMNG | QUAN | 13(3) | MENG13 | ||||
TRTYP | Transaction type | TRTYP | CHAR | 1 | TRTYP | ||||
LIFNR | Account Number of Vendor or Creditor | LIFNR | CHAR | 10 | Assigned to domain | ALPHA | LIFNR | LIF | KRED_C |
POSNR_PP | BOM item number | APOSN | CHAR | 4 | NUMCV | SPOSN | |||
VORNR_PP | Operation/Activity Number | VORNR | CHAR | 4 | NUMCV | VORNR | VGN | ||
VPZUO | Allocation Indicator | VPZUO | CHAR | 1 | ZUVKZ | ||||
ATPM1 | ATP Server: ATP quantity | ATPMNG | QUAN | 15(3) | MENGV15 | ||||
DATPM1 | ATP quantity/available quantity | PP_ATPM1 | QUAN | 15(3) | MENGV15 | ||||
ALPLP | Alternative Items with Level and Path | ALPLP | CHAR | 1 | ALPLP | ||||
AUFWG | Order path | AUFWG | NUMC | 2 | AUFWG | ||||
AUFST | Order level | AUFST | NUMC | 2 | AUFST |
Key field | Non-key field |
How do I retrieve data from SAP structure MDVA using ABAP code?
As MDVA 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 MDVA as there is no data to select.How to access SAP table MDVA
Within an ECC or HANA version of SAP you can also view further information about MDVA 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