SAP MESH FOR



Get Example source ABAP code based on a different SAP table
  


• FOR ABAP_MESH_PATH

FOR ... IN mesh_path

ABAP_SYNTAX
... FOR wa$|<(><)> IN mesh_path $[let_exp$] ...

What does it do?
Evaluates all lines described by a mesh_path using a FOR expression of a constructor expression. The syntax and meaning are the same as for FOR expressions for lines of internal tables, however a mesh path is specified after FOR ... IN, instead of a directly specified internal table. Groupings and FOR expressions for groups, the addition • INTO, and conditions outside of the mesh path cannot be specified here. A FOR expression with a mesh path can be used like a FOR expression with an internal table for table comprehensions and table reductions.
When specifying the mesh paths, the same applies as to mesh paths in the statement LOOP AT. The FOR expression works in the same way as the corresponding LOOP loop on the last path node of the mesh path. In particular, additional conditions can be specified in the square brackets [ ... ] of a mesh association of the mesh path using the additions USING KEY and WHERE log_exp.



Latest notes:

In the constructor expression NEW, VALUE, or REDUCE , FOR expressions with mesh paths and FOR expressions with directly specified internal tables can occur together.
NON_V5_HINTS
ABAP_HINT_END

ABAP_EXAMPLE_ABEXA
FOR Expressions for Mesh Paths
ABAP_EXAMPLE_END