SAP COND_SORT Condition: Sorting Structure Table data and field list

COND_SORT 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 "Condition: Sorting Structure" 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_COND_SORT TYPE COND_SORT.

The COND_SORT table consists of various fields, each holding specific information or linking keys about Condition: Sorting Structure data available in SAP. These include KVEWE (Usage of the condition table), KOTABNR (Condition table), KAPPL (Application), KSCHL (Condition 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. .

COND_SORT structure Technical Details:

Delivery Class:
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Not classified


SAP COND_SORT structure fields - Full list of fields found in SAP data dictionary

Looking for S/4HANA specific information? Click here to explore the details, fields and extensibility available for this table in the SAP S/4HANA version of the COND_SORT table. Also check whether the table still exists or has been transformed into a CDS view as part of the HANA simplifications.
Field Description Data Element Data Type length (Dec) Check table Conversion Routine Domain Name MemoryID SHLP
KVEWEUsage of the condition table KVEWECHAR1T681VKVEWEKVW
KOTABNRCondition table KOTABNRNUMC3T681KOTABNRKON
KAPPLApplication KAPPLCHAR2T681AKAPPLKAP
KSCHLCondition Type KSCHLCHAR4T685KSCHLVKS
VAKEYVariable key 100 bytes VAKEYCHAR100VAKEY
DATBIValidity end date of the condition record KODATBIDATS8DATUM
DATABValidity start date of the condition record KODATABDATS8DATUM
KNUMHCondition record number KNUMHCHAR10KNUMB
KNUMAAgreement (various conditions grouped together) KNUMACHAR10KONAALPHAKNUMAVMBO
VADATVariable Data Part VADAT_KOCHAR100CHAR100
FELD1Text, 40 Characters Long TEXT40CHAR40TEXT40
FELD2Text, 40 Characters Long TEXT40CHAR40TEXT40
FELD3Text, 40 Characters Long TEXT40CHAR40TEXT40
FELD4Text, 40 Characters Long TEXT40CHAR40TEXT40
FELD5Text, 40 Characters Long TEXT40CHAR40TEXT40
I_TABIXRow Index of Internal Tables SYTABIXINT410SYST_LONG

Key field Non-key field



How do I retrieve data from SAP structure COND_SORT using ABAP code?

As COND_SORT 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 COND_SORT as there is no data to select.

How to access SAP table COND_SORT

Within an ECC or HANA version of SAP you can also view further information about COND_SORT and the data within it using relevant transactions such as

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