Skip to content

ABAP Keyword Documentation →  ABAP - Release-Specific Changes →  Changes in Release 7.40 →  Changes in Release 7.40, SP05 

Internal Tables in Release 7.40, SP05


1. MOVE-CORRESPONDING for internal tables


2. Table comprehensions

Other versions: 7.31 | 7.40 | 7.54

Modification 1

MOVE-CORRESPONDING for Internal Tables

From Release 7.40, SP05, the operands of the statement MOVE-CORRESPONDING can be internal tables, as well as structures. This has been enabled by a new variant of this statement, which assigns identically named components of internal tables row by row. The new addition EXPANDING NESTED TABLES enables tabular components of structures to be resolved. The addition KEEPING TARGET LINES adds rows to target tables instead of overwriting them.

Component by component assignments between internal tables are also possible using the new component operator CORRESPONDING.

Modification 2

Table Comprehensions

Table comprehensions are an enhancement of the instance operator NEW or the value operator VALUE and are used to create the content of internal tables. One or more FOR expressions can now be specified as subexpressions of the constructor expression. These FOR expressions evaluate existing internal tables whose content can be used to construct the result within the loops.