T021M SAP (Sort Variants) Table details

Dictionary Type: Table
Description: Sort Variants




ABAP Code to SELECT data from T021M
Related tables to T021M
Access table T021M




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 cust
Display/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
MANDTClient MANDTCLNT3MANDT
PROGNProgram Name PROGN_021MCHAR8PROGN_021M
ANWNDApplication ANWND_021MCHAR5ANWND_021M
SRVARSort Variant SRVAR_021MCHAR3SRVAR_021M
FELD1Field Name FELDN_021MCHAR30FDNAME
FELD2Field Name FELDN_021MCHAR30FDNAME
FELD3Field Name FELDN_021MCHAR30FDNAME
FELD4Field Name FELDN_021MCHAR30FDNAME
FELD5Field Name FELDN_021MCHAR30FDNAME
TNAM1Table Name TABNAMECHAR30DD02LAS4TABDTB
TNAM2Table Name TABNAMECHAR30DD02LAS4TABDTB
TNAM3Table Name TABNAMECHAR30DD02LAS4TABDTB
TNAM4Table Name TABNAMECHAR30DD02LAS4TABDTB
TNAM5Table Name TABNAMECHAR30DD02LAS4TABDTB
OFFS1Offset in Field OFFSENUMC2NUM02
OFFS2Offset in Field OFFSENUMC2NUM02
OFFS3Offset in Field OFFSENUMC2NUM02
OFFS4Offset in Field OFFSENUMC2NUM02
OFFS5Offset in Field OFFSENUMC2NUM02
LENG1Display Length LENGTNUMC2NUM02
LENG2Display Length LENGTNUMC2NUM02
LENG3Display Length LENGTNUMC2NUM02
LENG4Display Length LENGTNUMC2NUM02
LENG5Display Length LENGTNUMC2NUM02
SABSTIndicator: Sort in descending order? SABST_021MCHAR1XFELD

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 table
DATA: 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 as

SE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!