Get Example source ABAP code based on a different SAP table
ABAP_OS - Sort Conditions A sort condition is a list of attributes attr> that specifies the direction in which they are to be sorted. Only attributes with an elementary type can be specified. For each attribute, an order must be specified, either ascending or descending. This information is placed after the attribute. Only public attributes can be used.
ASCENDING> attr ASCENDING>
DESCENDING> attr DESCENDING>
Latest notes: The sort condition and its parameter list are analyzed when a query is executed and transformed into an internal representation. To bypass parsing each time the query is executed, the methods of the interface IF_OS_QUERY_EXPR_FACTORY> can be used to create reusable sort conditions in the internal representation. ABAP_HINT_END