Ansicht
Dokumentation
ABENMESH_SET_ASSOCIATION_ABEXA - MESH SET ASSOCIATION ABEXA
CPI1466 during Backup ABAP Short ReferenceThis documentation is copyright by SAP AG.
- Setting Mesh Associations for Mesh Paths
This example demonstrates how mesh associations are set for mesh paths.
Source Code
Description
This example shows how, in a mesh node mesh-node2 that is the target node of the mesh association _node2 of a mesh node mesh-node1 and is the start node of a mesh association _node3 with the mesh node mesh-node3, values can be set that match the existing values in mesh-node3. The statement SET ASSOCIATION is used in two variants here:
- In the first case, a mesh path with just one initial mesh association is used:
- SET ASSOCIATION mesh-node2\_node3[ line2> ] = mesh-node3[ 1 ]
- The statement SET ASSOCIATION sets the column col3 in the structure specified in the square brackets. Here, a field symbol is used that points to a line inserted previously in mesh-node2. The values to be set are taken from the follow-on node mesh-node3 using a table expression. The subsequent read performed on the same mesh path demonstrates that this path now describes the required data in mesh-node3.
- In the second case, a mesh path with a path extension is used:
- SET ASSOCIATION mesh-node1\_node2[ root ]\_node3[ ] = mesh-node3[ 2 ].
- The result of the mesh path up to the node mesh-node2 describes two existing lines. In these lines, the column col3 is again set to values from the follow-on node mesh-node3. Again, the subsequent read performed on the same mesh path demonstrates that this path describes the corresponding data in mesh-node3, with the duplicate line only being respected once.
Vendor Master (General Section) BAL Application Log Documentation
This documentation is copyright by SAP AG.
Length: 1979 Date: 20240420 Time: 030035 sap01-206 ( 40 ms )