ABAP Keyword Documentation → ABAP − Reference → Processing Internal Data → Meshes → Meshes - Using Mesh Paths
FOR ... IN mesh_path
Other versions:
7.31 | 7.40 | 7.54
Syntax
... FOR wa|<fs> IN
mesh_path [let_exp] ...
Effect
Evaluates all rows 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 rows 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 INDEX 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.
Note
In the constructor expression NEW, VALUE, or
REDUCE, FOR expressions with mesh paths and FOR expressions with directly specified internal tables occur together.
Executable Example
FOR Expressions for Mesh Paths