Ansicht
Dokumentation

ABAPSORT_ITAB_SHORTREF - SORT ITAB SHORTREF

ABAPSORT_ITAB_SHORTREF - SORT ITAB SHORTREF

BAL Application Log Documentation   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

SORT itab

Reference



Syntax

SORT itab [STABLE]
          { { [ASCENDING|DESCENDING]
              [AS TEXT]
              [BY {comp1 [ASCENDING|DESCENDING] [AS TEXT]}
                  {comp2 [ASCENDING|DESCENDING] [AS TEXT]}
                  ... ] }
          | { [BY (otab)] } }.


Effect

Sorts an internal table itab by the primary table key or a specified sort key.

Additions

  • STABLE
    Ensures stable sorting by preserving the relative order of non-affected lines.
  • ASCENDING
    Sorts in ascending order.
  • DESCENDING
    Sorts in descending order.
  • BY comp1 ... comp2 ...
    Sorts by the specified components comp1, comp2, ... instead of by the primary table key.
  • BY (otab)
    Sorts by the order specified in the table otab of type ABAP_SORTORDER_TAB instead of by the primary table key.
  • BY expr
    Sorts by an internal table returned by an expression.
  • BY (otab)
    Sorts by the order specified in the table otab of type ABAP_SORTORDER_TAB instead of by the primary table key.
  • BY expr
    Sorts by an internal table returned by an expression.





CL_GUI_FRONTEND_SERVICES - Frontend Services   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 2435 Date: 20240328 Time: 183403     sap01-206 ( 49 ms )