SAP NEWS-740 SP08-ITAB



Get Example source ABAP code based on a different SAP table
  



Internal Tables in ABAP Release 7.40, SP08
ITOC

ABAP_MODIFICATION_NN 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.

ABAP_MODIFICATION_NN Expressions for Internal Tables

The following new aspects of expressions apply in particular to the processing of internal tables:
Custom iteration expressions in constructor expressions using NEW and VALUE for creating internal tables.
Table reductions with the new reduction operator REDUCE.
Table filtering with the new filter operator FILTER.
LINES OF for specifying lines in the constructor operators NEW and VALUE .
Default value OPTIONAL or DEFAULT for table expressions.