ABAP Keyword Documentation → ABAP - Reference → ABAP Syntax → ABAP Statements → Operands → Names for Individual Operands
Structure Component Selector
A component comp
of a structured data type or a structure struct
is accessed using the name
struct-comp
In this case, the character -
is the structure component selector. A structured
data type or a structure struct
must be specified as follows on the left of the structure component selector:
- Name of a structure or a structured type (which can itself be composite).
- Functional method call or method chaining with a structured result.
- Single or chained table expression that returns a structured table row.
The name comp
of the component must be to the right of the structure component selector.
Other versions:
7.31 | 7.40 | 7.54
Example
Declares a structure struc
with the structured data type spfli
from ABAP Dictionary and accesses its component carrid
.
DATA struc TYPE spfli.
...
... struc-carrid ...