SAP MESH MODIFY TABLE ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_MESH - Changing Single Lines in Mesh Paths
This example demonstrates how single lines are changed in mesh paths.

ABAP_SOURCE_CODE
DEMO CL_DEMO_MESH_MODIFY_TBLE_NMBRS

ABAP_DESCRIPTION
Starting from the filled mesh nodes mesh-node1 and mesh-node2 , single lines from mesh-node2 are changed:
Statement MODIFY TABLE for changing a line using the ON condition. MODIFY TABLE mesh-node1 _node2_1[ mesh-node1[ 1 ] ]
FROM VALUE line2( col2 = 111 col3 = 222 )
TRANSPORTING col2 col3. The ON condition of the mesh association _node2_1 covers the primary table key of the node node2 and is used to identify the line that needs to be modified.
Statement MODIFY TABLE for changing a line using the ON condition and with a key field from the work area. MODIFY TABLE mesh-node1 _node2_2[ mesh-node1[ 2 ] ]
FROM VALUE line2( col2 = 22 col3 = 333 )
USING KEY mkey TRANSPORTING col3. The ON condition of the mesh association _node2_2 does not cover the table key mkey and the missing information is taken from column col2 of the work area after FROM.