ABAP Keyword Documentation → ABAP − Reference → ABAP Syntax → ABAP Statements → Operands → Functions and Expressions in Operand Positions → Operand Positions for Functions and Expressions → Reading Positions for Functions and Expressions
Numeric Expression Positions
Numeric expression positions are reading positions in which numeric data objects, constructor expressions, arithmetic expressions, table expressions, and built-in functions, or functional method calls and method chainings whose return value has a numeric data type, can be specified. The following numeric expression positions exist:
- Arguments of functions
- Numeric arguments of string functions
- Numeric arguments of extremum functions
- Counters and positions:
- Operand
comp
of the statementASSIGN COMPONENT comp OF STRUCTURE
- Operand
n
of the statementDO n TIMES
- Operand
sec
of the statementWAIT UP TO sec SECONDS
- Operand
num
of the statement
SHIFT ... BY num PLACES
- Operands
bitpos
andval
of the statementSET BIT bitpos ... TO val
.
- Operand
bitpos
of the statementGET BIT bitpos ...
.
- Positions specified in the statements
FIND
andREPLACE
:
- Operands
off
andlen
of the statements
FIND ... IN SECTION ... OF
REPLACE ... IN SECTION ... OF
- Operands
lin1
,off1
,lin2
, andoff2
of the statements
FIND ... IN TABLE ... FROM lin1 OFFSET off1 TO lin2 OFFSET off2 ...
REPLACE ... IN TABLE ... FROM lin1 OFFSET off1 TO lin2 OFFSET off2 ...
- Operands
off
andlen
of the statement
REPLACE SECTION OFFSET off LENGTH len OF ...
- The row number
idx
specified with respect to a table index when accessing an internal table in the following:
Other versions: 7.31 | 7.40 | 7.54
Example
Specifies a built-in function lines( itab )
for specifying the loop passes of a DO
loop.
DATA itab TYPE TABLE OF i WITH EMPTY KEY.
...
DO lines( itab ) TIMES.
...
ENDDO.