Get Example source ABAP code based on a different SAP table
ABAP_MESH - Changing Multiple Lines in Mesh Paths This example demonstrates how multiple lines are changed in mesh paths.
ABAP_SOURCE_CODE DEMO CL_DEMO_MESH_MODIFY_NMBRS
ABAP_DESCRIPTION Starting from the filled mesh nodes mesh-node1> and mesh-node2 >, multiple lines from mesh-node2> are changed:
Statement MODIFY> for deleting multiple lines using the ON> condition. MODIFY mesh-node1 _node2[ mesh-node1[ 1 ] ] FROM VALUE line2( col3 = 111 ) TRANSPORTING col3.> All lines of the node mesh-node2> identified starting with the first line of the node mesh-node1> using the initial mesh association _node2> are changed in the third column.
Statement DELETE> for deleting multiple lines using the ON> condition with an additional WHERE> condition. MODIFY mesh-node1 _node2[ mesh-node1[ 2 ] WHERE col3 > 23 ] FROM VALUE line2( col3 = 222 ) TRANSPORTING col3.> All lines of the node mesh-node2> identified starting with the second line of the node mesh-node1> using the initial mesh association _node2> and that meet the additional WHERE> condition are changed in the third column.