T021M SAP (Sort Variants) Table details
Dictionary Type: Table
Description: Sort Variants
Description: Sort Variants
Table field list including key, data, relationships and ABAP select examples
T021M is a standard SAP Table which is used to store Sort Variants data and is available within R/3 SAP systems depending on the version and release level.
The T021M table consists of various fields, each holding specific information or linking keys about Sort Variants data available in SAP. These include PROGN (Program Name), ANWND (Application), SRVAR (Sort Variant), FELD1 (Field Name).. 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: C - Customising table, maintenance only by custDisplay/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Not classified
Text table = T021N
SAP T021M 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 |
MANDT | Client | MANDT | CLNT | 3 | MANDT | ||||
PROGN | Program Name | PROGN_021M | CHAR | 8 | PROGN_021M | ||||
ANWND | Application | ANWND_021M | CHAR | 5 | ANWND_021M | ||||
SRVAR | Sort Variant | SRVAR_021M | CHAR | 3 | SRVAR_021M | ||||
FELD1 | Field Name | FELDN_021M | CHAR | 30 | FDNAME | ||||
FELD2 | Field Name | FELDN_021M | CHAR | 30 | FDNAME | ||||
FELD3 | Field Name | FELDN_021M | CHAR | 30 | FDNAME | ||||
FELD4 | Field Name | FELDN_021M | CHAR | 30 | FDNAME | ||||
FELD5 | Field Name | FELDN_021M | CHAR | 30 | FDNAME | ||||
TNAM1 | Table Name | TABNAME | CHAR | 30 | DD02L | AS4TAB | DTB | ||
TNAM2 | Table Name | TABNAME | CHAR | 30 | DD02L | AS4TAB | DTB | ||
TNAM3 | Table Name | TABNAME | CHAR | 30 | DD02L | AS4TAB | DTB | ||
TNAM4 | Table Name | TABNAME | CHAR | 30 | DD02L | AS4TAB | DTB | ||
TNAM5 | Table Name | TABNAME | CHAR | 30 | DD02L | AS4TAB | DTB | ||
OFFS1 | Offset in Field | OFFSE | NUMC | 2 | NUM02 | ||||
OFFS2 | Offset in Field | OFFSE | NUMC | 2 | NUM02 | ||||
OFFS3 | Offset in Field | OFFSE | NUMC | 2 | NUM02 | ||||
OFFS4 | Offset in Field | OFFSE | NUMC | 2 | NUM02 | ||||
OFFS5 | Offset in Field | OFFSE | NUMC | 2 | NUM02 | ||||
LENG1 | Display Length | LENGT | NUMC | 2 | NUM02 | ||||
LENG2 | Display Length | LENGT | NUMC | 2 | NUM02 | ||||
LENG3 | Display Length | LENGT | NUMC | 2 | NUM02 | ||||
LENG4 | Display Length | LENGT | NUMC | 2 | NUM02 | ||||
LENG5 | Display Length | LENGT | NUMC | 2 | NUM02 | ||||
SABST | Indicator: Sort in descending order? | SABST_021M | CHAR | 1 | XFELD |
Key field | Non-key field |
How do I retrieve data from SAP table T021M using ABAP code
The following ABAP code Example will allow you to do a basic selection on T021M to SELECT all data from the tableDATA: WA_T021M TYPE T021M.
SELECT SINGLE *
FROM T021M
INTO CORRESPONDING FIELDS OF WA_T021M
WHERE...
How to access SAP table T021M
Within an ECC or HANA version of SAP you can also view further information about T021M 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