ABAP - Keyword Documentation →  ABAP - Reference →  Processing Internal Data →  Assignments →  Assigning Structure Components → 

CORRESPONDING - Component Operator

Syntax Forms


Base Form

1. ... { CORRESPONDING dtype|#( [DEEP]
                               [BASE ( base )]
                               struct|{itab [ duplicates]} ) }
    | { CORRESPONDING dtype|#( [BASE ( base )]
                               struct|{itab [ duplicates]}
                               mapping ) } ...


Lookup Table

2. ... CORRESPONDING type( itab FROM lookup_tab
                               USING [KEY key_name] s1 = t1 s2 = t2 ...
                               [mapping] ) ...


Effect

A constructor expression with the component operator CORRESPONDING creates a result of a data type specified using type.

The following can be specified for type:

The operator creates structures or internal tables with the specified data type. The components or columns of the result are filled using assignments of components of the parameters specified in the parentheses. The assignments are made using matching names or mapping relationships in a mapping rule.

Executable Examples

Assigning Components: Examples



Continue
CORRESPONDING - Base Form
CORRESPONDING - Lookup table
CORRESPONDING - mapping
CORRESPONDING - Duplicates