SAP SORT - Reference ABAP Statements

Get Example source ABAP code based on a different SAP table
  


Standard SAP Help for SORT_EXTRACT

SORT

ABAP Reference
ABAP Code Snippet


ABAP Syntax SORT [ASCENDING|DESCENDING]

[AS TEXT]
[STABLE]
[BY {field1 [ASCENDING|DESCENDING] [AS TEXT]}
{field2 [ASCENDING|DESCENDING] [AS TEXT]}
...].
ABAP Code Snippet

What does it do? Obsolete: Sorts the extract dataset after the field group header.

ABAP Addition ASCENDING
Sorts in ascending order.
DESCENDING
Sorts in descending order.
AS TEXT
Sorts text-like components in accordance with the locale of the current text environment.
STABLE
Ensures stable sorting by retaining the relative order of non-affected lines.
BY field1 ... field2 ...
Sorts by specified fields field1, field2, ... instead of by field group header.

Return to menu