Get Example source ABAP code based on a different SAP table
ABAP_ITAB - Grouping with LOOP> and FOR> This example demonstrates aggregates using table reductions.
ABAP_SOURCE_CODE DEMO CL_DEMO_LOOP_GRP_BY_FOR
ABAP_DESCRIPTION This example works in the same way as the executable example> for aggregates. Here, expressions FOR ... IN GROUP >> are used instead of the member loop > to calculate aggregates using table reductions> and to determine the group members using a table comprehension>. A further executable example> demonstrates how the entire group loop can be implemented using expressions.