AS ABAP Release 758, ©Copyright 2024 SAP SE. All rights reserved.
ABAP - Keyword Documentation → ABAP - ABAP Release News → News for ABAP Release 7.40 and its SPs → News for ABAP Release 7.40, SP08 →
Internal Tables in ABAP Release 7.40, SP08
Groupings
A new variant LOOP AT itab ... GROUP BY of the statement LOOP AT itab enables the lines in an internal table to be grouped and then the groups evaluated in a group loop. The new statement LOOP AT GROUP for member groups is used to access the lines in a group.
The new variants FOR GROUPS ... OF and FOR ... IN GROUP in an iteration expression for table iterations using FOR can be used to perform the same groupings (and evaluate them) in table comprehensions and table reductions as well.
The new options for grouping internal tables exist alongside the existing
group level processing functions and can replace them in many cases.
Expressions for Internal Tables
The following new aspects of expressions apply in particular to the processing of internal tables: