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
... ( ... off = off len = len ... ) ...
off is used to pass an
to pass a length. In functions in which
len can be passed simultaneously, they determine the subarea in which a character string is to be processed.
len are numerical expression positions.
The default value of
off is generally 0 and the default value of
is generally the length of the character string minus a predefined offset or an offset specified using
off. If, in functions for which this is supported, a negative argument is
also passed for
the default value of
off is the length of the character string, and the default value of
len is the value of the corresponding offset.
len has a negative value, an offset
off is not within the character string, or a subarea defined
len is not completely contained in the character string, an exception of class CX_SY_RANGE_OUT_OF_BOUNDS is triggered.