Ansicht
Dokumentation
ABENCONSTRUCTOR_EXPR_CORRESPONDING - CONSTRUCTOR EXPR CORRESPONDING
ROGBILLS - Synchronize billing plans BAL Application Log DocumentationThis documentation is copyright by SAP AG.
CORRESPONDING, Component Operator
1. ... ${ CORRESPONDING ${dtype$|#$}( $[EXACT$] $[DEEP$]
struct$|${itab $[duplicates$]$} ) $}
$| ${ CORRESPONDING ${dtype$|#$}( $[DEEP$]
$[$[APPENDING$] BASE ( base )$]
struct$|${itab $[duplicates$]$} ) $}
$| ${ CORRESPONDING ${dtype$|#$}( $[$[APPENDING$] BASE ( base )$]
struct$|${itab $[duplicates$]$}
mapping ) $} ...
Lookup Table
2. ... CORRESPONDING type( itab FROM lookup_tab
USING $[KEY key_name$] s1 = t1 s2 = t2 ...
$[mapping$] ) ...
RAP-Specific Variants for Type Mapping
3. ... ${ CORRESPONDING ${dtype$|#$}( in_d_type MAPPING FROM ENTITY ) $}
$| ${ CORRESPONDING ${dtype$|#$}( ntype MAPPING TO ENTITY ) $}
$| ${ CORRESPONDING ${dtype$|#$}( in_d_type USING CONTROL ) $}
$| ${ CORRESPONDING ${dtype$|#$}( in_d_type MAPPING FROM ENTITY USING CONTROL ) $}
$| ${ CORRESPONDING ${dtype$|#$}( ntype CHANGING CONTROL ) $} ...
Effect
A constructor expression with the component operator CORRESPONDING creates a result of a data type specified using type.
- In the basic component, the components of a structured or tabular results are constructed from the components of a structured or tabular parameter struc or itab.
- In the variant with lookup table, the components of an internal table itab and a lookup table lookup_tab are combined to form a tabular result.
- The RAP-specific variants are used for creating structures or internal tables with type mapping in ABAP in the context of RAP. RAP requires BDEF derived types for the communication of RAP BO providers and RAP BO consumers. When including non-BDEF-derived types (ntype), the variants are responsible for matching them to the input (in_d_type) and output BDEF derived types.
The following can be specified for type:
- A structured type or a table type.
- The operand type must be a structure type or a table type. When a constructor expression is assigned to a field symbol or a formal parameter with a generic table type, the operand type can only be determined at runtime.
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 identical names or mapping relationships in a mapping rule.
Assigning Components: Examples
PERFORM Short Reference rdisp/max_wprun_time - Maximum work process run time
This documentation is copyright by SAP AG.
Length: 5989 Date: 20240424 Time: 235816 sap01-206 ( 54 ms )