SAP MESH FOR ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_MESH - FOR Expressions for Mesh Paths
This example demonstrates table comprehensions and table reductions for mesh paths.

ABAP_SOURCE_CODE
DEMO CL_DEMO_MESH_FOR_FLIGHTS

ABAP_DESCRIPTION
This example uses the same mesh paths as the executable example for LOOP AT and thus produces the same result sets. Unlike LOOP AT , the lines in the result set are produced in a results table using table comprehensions and not as individual lines.
For the first mesh path, a table reduction is also performed using the reduction operator REDUCE. This totals the distances, with the conversion from kilometers to miles using a SWITCH expression.