SAP CORRESPONDING VARIANTS S ABEXA



Get Example source ABAP code based on a different SAP table
  



Variants of MOVE-CORRESPONDING and the CORRESPONDINGOperator Using Deep Structures
This example demonstrates variants of statements with MOVE-CORRESPONDING and the CORRESPONDING operator using deep structures.

ABAP_SOURCE_CODE
DEMO CL_DEMO_CRRSPNDNG_VARIANTS_ST

ABAP_DESCRIPTION
Two structures, struc1 and struc2, are declared. Both contain an identically named nested structure and nested table as deep components. The nested structures struc_nested differ in terms of the components' data types. The number of components in the nested structures as well as in the two nested internal tables itab is different.
The example covers statements with MOVE-CORRESPONDING and the CORRESPONDING operator demonstrating the differences in the result when using the various additions. The source code contains explanations on those differences.