Get Example source ABAP code based on a different SAP table
Internal Tables in ABAP Release 7.40, SP05 ITOC
ABAP_MODIFICATION_NN 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>>.
ABAP_MODIFICATION_NN 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.