SAP MESH DELETE TABLE ABEXA



Get Example source ABAP code based on a different SAP table
  



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

ABAP_SOURCE_CODE
DEMO CL_DEMO_MESH_DLT_TABLE_NMBRS

ABAP_DESCRIPTION
Starting from the prefilled mesh nodes mesh-node1 and mesh-node2 , single lines from mesh-node2 are deleted:
Statement DELETE TABLE for deleting a line using the ON condition. DELETE TABLE mesh-node1 _node2[ mesh-node1[ 1 ] ]. The line of node mesh-node2, identified starting with the first line of node mesh-node1 using the initial mesh association _node2, is deleted. The ON condition covers the primary key used here, which means that no additional key fields need to be specified.
Statement DELETE TABLE for deleting a line using the ON condition and with an explicitly specified key field. DELETE TABLE mesh-node1 _node2[ mesh-node1[ 2 ] ]
WITH TABLE KEY mkey COMPONENTS col3 = 23. The line of node mesh-node2, identified starting with the second line of node mesh-node1 using the initial mesh association _node2, is deleted. The ON condition does not cover the secondary key mkey, which means that the missing key field must be specified using the addition WITH TABLE KEY.
Statement DELETE TABLE for deleting a line using the ON condition and with a key field from the work area. DELETE TABLE mesh-node1 _node2[ mesh-node1[ 3 ] ]
FROM VALUE line2( col3 = 33 ) USING KEY mkey. The line of node mesh-node2, identified starting with the third line of node mesh-node1 using the initial mesh association _node2, is deleted. The ON condition does not cover the secondary key mkey, which means that the missing key field must be specified using the addition FROM wa.