ABAP_DESCRIPTION This example works in the same way as the corresponding executable example> for LOOP AT ... GROUP BY>>, but uses the expression FOR GROUPS ... OF>> for a table reduction> with REDUCE>> instead of the group loop>. The group key> after GROUP BY> cannot be constructed in the same way in this case, since the system field sy-tabix> is not available during grouping in expressions. The addition • INTO> cannot be used either, since it sets a value for each group but not for each evaluated line. This is why a user-defined method, group>, is called here to count the lines. The result of the table reduction is a reference to an object of the class CL_DEMO_OUTPUT>> to which the results of the grouping are written. The group members are written to a local auxiliary table members> using a table comprehension> with VALUE>>. This table comprehension could also be used in the executable example> for LOOP AT ... GROUP BY> instead of the member loop>.