SMSTE SAP (Lock Table MSTE) Structure details
Description: Lock Table MSTE
Structure field list including key, data, relationships and ABAP select examples
SMSTE 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 "Lock Table MSTE" 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_SMSTE TYPE SMSTE.
The SMSTE table consists of various fields, each holding specific information or linking keys about Lock Table MSTE data available in SAP. These include WERKS (Plant), CHARG (Batch Number), SOBKZ (Special Stock Indicator), VBELN (Sales and Distribution Document 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 SMSTE 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 | |
CHARG | Batch Number | CHARG_D | CHAR | 10 | Assigned to domain | CHARG | CHA | ||
SOBKZ | Special Stock Indicator | SOBKZ | CHAR | 1 | Assigned to domain | SOBKZ | |||
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 | |||
BWTAR | Valuation Type | BWTAR_D | CHAR | 10 | Assigned to domain | BWTAR | BWT | ||
RMSTE | Return Code MSTE | RMSTE | CHAR | 1 | XFELD | ||||
XDBUP | Database update | XDBUP | CHAR | 1 | XFELD | ||||
LFGJA | Fiscal Year of Current Period | LFGJA | NUMC | 4 | GJAHR | GJAHR | |||
LFMON | Current period (posting period) | LFMON | NUMC | 2 | MONAT | ||||
EWESB | Valuated Goods Receipt Blocked Stock | BWESB | QUAN | 13(3) | MENG13V | ||||
EWESB_OLD | Valuated Goods Receipt Blocked Stock | BWESB | QUAN | 13(3) | MENG13V | ||||
VMESB | Valuated Goods Receipt Blocked Stock, Previous Period | VMWSB | QUAN | 13(3) | MENG13V | ||||
VMESB_OLD | Valuated Goods Receipt Blocked Stock, Previous Period | VMWSB | QUAN | 13(3) | MENG13V | ||||
RMSTEH | Data content X or blank | XWERT | CHAR | 1 | XFELD | ||||
TELFM | Current period (posting period) | LFMON | NUMC | 2 | MONAT | ||||
TEGJA | Fiscal Year of Current Period | LFGJA | NUMC | 4 | GJAHR | GJAHR | |||
TERUE | MxxxH rec. already exists for per. before last of Mxxx per. | SBRUE | CHAR | 1 | XFELD |
Key field | Non-key field |
How do I retrieve data from SAP structure SMSTE using ABAP code?
As SMSTE 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 SMSTE as there is no data to select.How to access SAP table SMSTE
Within an ECC or HANA version of SAP you can also view further information about SMSTE 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