Get Example source ABAP code based on a different SAP table
ABAP_ITAB - Grouping with LOOP> and Sort This example demonstrates how groupings are used for sorts.
ABAP_SOURCE_CODE DEMO CL_DEMO_LOOP_GRP_BY_SORT
ABAP_DESCRIPTION In this example, the additions ASCENDING> and DESCENDING> of GROUP BY>> are used to sort a character-like table first while ignoring case and then sort within the groups to separate uppercase from lowercase. A further executable example> shows how the LOOP> statements can be replaced by a single expression.