ABAP Keyword Documentation → ABAP - Reference → ABAP Syntax → ABAP Statements → Operands → Functions and Expressions at Operand Positions
Functions and Expressions for Operand Positions
- Functions that can be executed in a read position are
- Predefined functions
... func( arg ) ...
- Functional methods
... meth( ) ...
... meth( a ) ...
... meth( p1 = a1 p2 = a2 ... ) ...
- Method chaining
Chained method call:
... ...->meth1( ... )->meth2( ... )->...->meth( ... ) ...
Chained attribute access:
... ...->meth1( ...)->meth2( ... )->...->attr ...
- Expressions that can be executed in a read position are calculation expressions, which means:
- Arithmetic expressions
... arith_exp ...
- Bit expressions
... bit_exp ...
- String expressions
... string_exp ...
Notes
- We combine functions with numerical return values and arithmetical expressions together in numeric expressions.
- We combine functions with character-like return value and string expressions as character-like expressions.
Example
Numerical expression as an index specified for an internal table.
DATA: itab TYPE STANDARD TABLE OF i,
wa LIKE LINE OF itab,
n TYPE i.
...
READ TABLE itab INDEX lines( itab ) - n
INTO wa.