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
compof the statementASSIGN COMPONENT comp OF STRUCTURE
- Operand
nof the statementDO n TIMES
- Operand
secof the statementWAIT UP TO sec SECONDS
- Operand
numof the statement
SHIFT ... BY num PLACES
- Operands
bitposandvalof the statementSET BIT bitpos ... TO val.
- Operand
bitposof the statementGET BIT bitpos ....
- Positions specified in the statements
FINDandREPLACE:
- Operands
offandlenof the statements
FIND ... IN SECTION ... OFREPLACE ... IN SECTION ... OF
- Operands
lin1,off1,lin2, andoff2of 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
offandlenof the statement
REPLACE SECTION OFFSET off LENGTH len OF ...
- The row number
idxspecified 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.