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, SP05 →
Internal Tables in ABAP Release 7.40, SP05
MOVE-CORRESPONDING for Internal Tables
From ABAP 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 line by line. The new addition EXPANDING NESTED TABLES enables tabular components of structures to be resolved. The addition KEEPING TARGET LINES adds lines to target tables instead of overwriting them.
Component by component assignments between internal tables are also possible using the new component operator CORRESPONDING.
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.