MLKEY SAP (Material ledger data display: Selection fields) Structure details
Description: Material ledger data display: Selection fields
Structure field list including key, data, relationships and ABAP select examples
MLKEY 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 "Material ledger data display: Selection fields" 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_MLKEY TYPE MLKEY.
The MLKEY table consists of various fields, each holding specific information or linking keys about Material ledger data display: Selection fields data available in SAP. These include BWKEY (Valuation Area), BUKRS (Company Code), WERKS (Plant), BWTAR (Valuation Type).. 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)
SAP MLKEY 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 |
BWKEY | Valuation Area | BWKEY | CHAR | 4 | Assigned to domain | BWKEY | BWK | ||
BUKRS | Company Code | BUKRS | CHAR | 4 | Assigned to domain | BUKRS | BUK | C_T001 | |
WERKS | Plant | WERKS_D | CHAR | 4 | Assigned to domain | WERKS | WRK | H_T001W_C | |
BWTAR | Valuation Type | BWTAR_D | CHAR | 10 | Assigned to domain | BWTAR | BWT | ||
VBELN | Sales and Distribution Document Number | VBELN | CHAR | 10 | Assigned to domain | ALPHA | VBELN | AUN | |
POSNR | Item number of the SD document | POSNR | NUMC | 6 | Assigned to domain | POSNR | |||
PSPNR | Work Breakdown Structure Element (WBS Element) | PS_PSP_PNR | NUMC | 8 | Assigned to domain | KONPR | PS_POSNR | ||
BDATJ | Posting Date YYYY | BDATJ | NUMC | 4 | GJAHR | GJAHR | BDTJ | ||
POPER | Posting period | POPER | NUMC | 3 | POPER | POPR | |||
BUKRS_ML_ACTIVE | Company Code | BUKRS | CHAR | 4 | Assigned to domain | BUKRS | BUK | C_T001 | |
BUKRS_ML_ACTIVE_NOT_PRODUCTIVE | Company Code | BUKRS | CHAR | 4 | Assigned to domain | BUKRS | BUK | C_T001 | |
BUKRS_ML_PRODUCTIVE | Company Code | BUKRS | CHAR | 4 | Assigned to domain | BUKRS | BUK | C_T001 | |
WERKS_ML_ACTIVE | Plant | WERKS_D | CHAR | 4 | Assigned to domain | WERKS | WRK | H_T001W_C | |
WERKS_ML_ACTIVE_NOT_PRODUCTIVE | Plant | WERKS_D | CHAR | 4 | Assigned to domain | WERKS | WRK | H_T001W_C | |
WERKS_ML_PRODUCTIVE | Plant | WERKS_D | CHAR | 4 | Assigned to domain | WERKS | WRK | H_T001W_C | |
STATUS | Material ledger period status | CK_MLSTAT | NUMC | 2 | CK_MLSTAT | ||||
CURTP | Currency Type and Valuation View | CURTP | CHAR | 2 | CURTP | ||||
WAERS | Currency Key | WAERS | CUKY | 5 | Assigned to domain | WAERS | FWS | ||
LIFNR | Account Number of Vendor or Creditor | LIFNR | CHAR | 10 | Assigned to domain | ALPHA | LIFNR | LIF | KRED_C |
BUKRS_CCS_ACTIVE | Company Code | BUKRS | CHAR | 4 | Assigned to domain | BUKRS | BUK | C_T001 | |
WERKS_CCS_ACTIVE | Plant | WERKS_D | CHAR | 4 | Assigned to domain | WERKS | WRK | H_T001W_C | |
CKM3_VIEW | Display Material Price Analysis: View Selection | CKML_CKM3_VIEW | CHAR | 2 | CKML_CKM3_VIEW | ||||
SOBKZ | Special Stock Indicator | SOBKZ | CHAR | 1 | Assigned to domain | SOBKZ | |||
.INCLU--AP | 0 | ||||||||
KALNR | Cost Estimate Number for Cost Est. w/o Qty Structure | CK_KALNR | NUMC | 12 | Assigned to domain | CK_KALNR | KNR | ||
RUN_ID | Number of Costing Runs for Material Ledger | CKML_RUN_ID | NUMC | 12 | Assigned to domain | CKML_RUN_ID | |||
IS_AGGR | Checkbox | XFELD | CHAR | 1 | XFELD | ||||
UNTPER | Value Structure Type | CK_UNTPER | NUMC | 3 | CK_UNTPER | ||||
XVNB | Revaluation of Consumption Completed | CKML_XVNB | CHAR | 1 | CKML_STATUS_FLAG | ||||
XWIP | WIP Price Determination Completed | CKML_XWIP | CHAR | 1 | CKML_STATUS_FLAG | ||||
XOBJWIP | WIP Calculated in Cost Object Controlling | CKML_XOBJWIP | CHAR | 1 | CKML_STATUS_FLAG | ||||
XCKMM | ML- Price Determination Control was Changed: (CKMM) | CKML_XCKMM | CHAR | 1 | XFELD | ||||
XCLEAN | ALL ML-Relevant Postings for the Period Were Reversed | CKML_XCLEAN | CHAR | 1 | XFELD |
Key field | Non-key field |
How do I retrieve data from SAP structure MLKEY using ABAP code?
As MLKEY 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 MLKEY as there is no data to select.How to access SAP table MLKEY
Within an ECC or HANA version of SAP you can also view further information about MLKEY 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