Zed FrameOpen workbench

CL_SALV_SORTS — ABAP Class

Add and clear local sort specifications.

CL_SALV_SORTS

Add and clear local sort specifications.

ADD_SORT

Sort a column ascending or descending.

EXPORTING columnname TYPE STRING; sequence TYPE STRING
sorts->add_sort( columnname = 'CATEGORY' sequence = 'SORT_UP' ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

REMOVE_SORT

Remove one sort specification.

EXPORTING columnname TYPE STRING
sorts->remove_sort( columnname = 'CATEGORY' ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.

CLEAR

Remove all sort specifications.

No parameters
sorts->clear( ).

Uses an initialized local SALV object; see ZED_EXAMPLE_SALV for a complete runnable setup. This is not a remote SAP GUI connection.