What does it do? The statement MOVE-CORRESPONDING is used to assign components with the same name in structured data objects to each other. There are two variants of the statements, which can call each other internally: Both operands are structures. Both operands are internal tables.
The variant for internal tables is not yet released and cannot be used yet.
No other combinations of operand types are possible. Field symbols typed with the generic type ANY or formal parameters can also be used as operands. An operand of this type must be either a structure or an internal table (planned) when the statement is executed and match the other operands; if not, an unhandleable exception is raised. struc1 and itab1 are functional operand positions.
Latest notes:Die Anweisung MOVE-CORRESPONDING verwirklicht ein dynamisches Mapping zwischen komplexen Datentypen, das auf Namensgleichheit beruht. Für alle Fälle, in denen das nicht ausreicht, kann ABAP Mapping Script (AMS) verwendet werden, um ein eigenes Mapping zu definieren.
Latest notes:If an internal table with a header line is specified for one of the operands, the header line is used as an operand in accordance with its data type, not the table body (planned).
Non-catchable Exceptions
Reason for error:
The operands are not both structures or internal tables.
Runtime error:
TCHK_MOVE_CORRESPONDING: The same runtime errors can occur as for MOVE and MOVE EXACT. The same runtime errors can occur as for INSERT itab.