ABAP Keyword Documentation → ABAP − Reference → Processing Internal Data → Meshes → Meshes - Using Mesh Paths
Mesh Path Expressions
Other versions:
7.31 | 7.40 | 7.54
Syntax
... mesh_path ...
Effect
Specifies a mesh path mesh_path
as a standalone mesh path expression at an operand position. The result of a mesh path expression is a row from the last path node of the mesh path. This row is described by the
result of the mesh path and has the corresponding row type.
In the square brackets [ ... ] of each mesh association, an additional condition can be specified via col1 = ... col2 = .... If a path node contains multiple rows that fit the description, the first row found is read.
A mesh path expression is a special type of table expression and can be used in the same way as a table expression:
- Possible operand positions are all reading and writing positions listed for table expressions. In a writing position, key fields of primary or secondary table keys of the last path node must not be overwritten.
- A chaining with the structure component selector (
-
) can be used to access a component of the row that was read.
If the follow-on node does not contain any rows that meet the condition in the square brackets [ ...
], the response is the same as in regular table expressions. In other words, the exception
CX_SY_ITAB_LINE_NOT_FOUND is raised, unless used in the statement
ASSIGN
, in the predicate function
line_exists
, or in the table function line_index
.
Note
Since the rows of a mesh node cannot have tabular components, a mesh path expression cannot have any chainings to other table expressions.