Copy fields with matching names
Copy fields with matching names from one data type to another with corresponding #( ).
target_structure = CORRESPONDING #( source_structure ).Old style:
MOVE-CORRESPONDING source_structure TO target_structure.Caution: The two statements differ in behavior. The
CORRESPONDING( )statement is a constructor statement, meaning all fields in thetarget_structureare initialized before the correspondingsource_structurevalues are copied to thetarget_sructureTheMOVE-CORRESPONDINGstatement in contrast leaves the content of the not matching fields in thetarget_structureuntouched.