ABAP Keyword Documentation → ABAP − Reference → ABAP Syntax → ABAP Statements → Operands → Functions and Expressions in Operand Positions → Operand Positions for Functions and Expressions → Writing Positions for Functions and Expressions
Result Positions
Result positions are writing positions in which writable expressions can be specified. Writes are performed on the result of the expression. The following result positions are possible:
- Left side of an assignment with the assignment operator
=
- Operand
dobj
of the statementCLEAR
- Memory area
mem_area
of the statementASSIGN mem_area TO
- Structure
struc
of the statementASSIGN COMPONENT comp OF STRUCTURE struc
- Actual parameter in method calls for output parameters, input/output parameters, and return values
- The right side in the declaration of a local field symbol in a
LET
expression
Other versions:
7.31 | 7.40 | 7.54
Example
Uses a table expression itab[ sy-index ]
on the left side of a calculation assignment.
DATA itab TYPE TABLE OF i.
itab = VALUE #( ( 1 ) ( 2 ) ( 3 ) ).
DO 3 TIMES.
itab[ sy-index ] *= 10.
ENDDO.