SAP CL ABAP CORR ITAB ABEXA



Get Example source ABAP code based on a different SAP table
  



CL_ABAP_CORRESPONDING for Internal Tables
This example demonstrates the system class CL_ABAP_CORRESPONDING for internal tables.

ABAP_SOURCE_CODE
DEMO CL_DEMO_CRRSPNDNG_CLASS_TB

ABAP_DESCRIPTION
The components of the internal table itab1 are assigned to the internal table itab2 using the system class CL_ABAP_CORRESPONDING.
The mapping table is empty in the first assignment. The assignment is made as in MOVE-CORRESPONDING using identical names and the column col3 of the target table is not filled.
In the second assignment, a mapping table is passed that assigns all columns of the source table to a column in the target table regardless of their names.