ABAP Keyword Documentation → ABAP - Reference → Processing Internal Data → Character String and Byte String Processing → Expressions and Functions for String Processing → String Functions → Common Parameters of Character String Functions
off, len - Offset and Length
Other versions: 7.31 | 7.40 | 7.54
... ( ... off = off len = len ... ) ...
off is used to pass an
is used to pass a length. In functions where both
len can be passed, they determine the substring in which a string is to be edited.
numeric expression positions with the type
The default value of
off is generally 0 and the default value of
is generally the length of the string minus a specified offset or an offset passed using
Only in functions where a negative argument is passed for the occurrence
occ (where possible) is the default value of
the length of the string and the default value of
len the value of the associated offset.
If the value of
len is negative, an offset
off is outside the string, or a substring defined using
len is not fully contained in the string, an exception of the class CX_SY_RANGE_OUT_OF_BOUNDS is raised.