SAP MESH SET ASSOCIATION



Get Example source ABAP code based on a different SAP table
  


ID SET-ASSOCIATION
• SET ASSOCIATION mesh_path ABAP Statement
• = SET ASSOCIATION
• INITIAL SET ASSOCIATION
• LIKE SET ASSOCIATION

SET ASSOCIATION mesh_path
Short Reference

ABAP_SYNTAX
SET ASSOCIATION mesh_path ${ = wa $}
$| ${ LIKE wa $}
$| ${ INITIAL $}.

ABAP Addition
1 ... = wa
2 ... LIKE wa
3 ... INITIAL

What does it do?
Sets mesh associations for a mesh_path. The statement takes columns in the second last path node of the mesh path that are specified as scomp in the ON condition of the mesh association starting with this node and sets these columns to values that are determined by the additions on the right side. The content of the last path node is ignored.
If the mesh path only contains one initial mesh association, the second last node is the root node of the path whose content is neither read nor changed. Instead, the columns of the structure specified by the ON condition are set. The structure is specified as the source in the square brackets of the mesh association. The square brackets must not contain any additional conditions.
If the mesh path contains path extensions, it is evaluated down to the second last node. The columns specified using the ON condition are changed in the lines of the second last path node, which are described in the result. All mesh associations but the last one of the mesh path can contain additional conditions, which can be specified using USING KEY and WHERE log_exp. The square brackets [ ] for the mesh association of the last path extension must be empty.
The last mesh association of the mesh path is used only to determine the modifying components using their ON condition, therefore the last association cannot contain any additional conditions.



Latest notes:

Using the statement SET ASSOCIATION, mesh association-relevant components can be set in structures and mesh nodes, without needing to know the component names. These structures can be used, for example, to build mesh nodes.
Using the statement SET ASSOCIATION, change operations can be performed that provide additional options to those offered by the statements INSERT and MODIFY.
A mesh path that only contains an initial mesh association can also be used to modify mesh nodes by using a field symbol or data reference in source to reference a line in a mesh node.
NON_V5_HINTS
ABAP_HINT_END

ABAP Addition

What does it do?
Assigns columns of a work area wa. The work area wa must be a structure with the same line type as the last path node.
The content of the components of wa that are listed in the ON condition of the last mesh association of the mesh path as tcomp is assigned to the assigned components scomp of the structure source or to the assigned columns of the lines found in the second last path node.



Latest notes:

In terms of semantics, key values in an instance of an entry node of a mesh association are set as they are in an instance of a follow-on node.
NON_V5_HINTS
ABAP_HINT_END

ABAP Addition

What does it do?
Assigns columns of a work area wa. The work area wa must be a structure with the same line type as the second last path node.
The content of the components of wa is specified in the ON condition of the last mesh association of the mesh path as scomp. This content is assigned to the identically named components in the structure source or to the identically named columns of the lines found in the second last path node.



Latest notes:

In terms of semantics, key values in an instance of an entry node of a mesh association are set as they are in a different instance of the same node.
NON_V5_HINTS
ABAP_HINT_END

ABAP Addition

What does it do?
Assigns initial values
All components of source or all columns of the lines found in the second last path node that are specified in the ON condition of the last mesh association of the mesh path as scomp are assigned their type-dependent initial value.



Latest notes:

In terms of semantics, key values in an instance of an entry node of a mesh association are initialized.
NON_V5_HINTS
ABAP_HINT_END