SAP FOR GROUP BY LVLS NST ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_ITAB - Grouping with FOR, Nesting
This example demonstrates nested group level processing using GROUP BY in a FOR expression.

ABAP_SOURCE_CODE
DEMO CL_DEMO_FOR_GRPS_BY_LVLS_NEST

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 table reductions with REDUCE instead of the group loops. In both cases, the group keys after GROUP BY are constructed in exactly the same way. Instead of the member loops, further table reductions and a table comprehension are used here.