Get Example source ABAP code based on a different SAP table
• off ABAP_FUNCTION_PARA • len ABAP_FUNCTION_PARA
ABAP_STRINGFUNC > - off, len>
ABAP_SYNTAX ... ( ... off = off len = len ... ) ...>
What does it do? off> is used to pass an offset> and len> is used to pass a length. In functions where both off> and len> can be passed, they determine the subarea in which a string is to be processed. off> and len> are numeric expression positions> with the type i>. The default value of off> is generally 0 and the default value of len> is generally the length of the string minus a predefined offset or an offset passed using off>. Only if a negative argument is passed for the occurrence occ>> simultaneously for functions where this is possible, is the default value of off> the length of the string and the default value of len> the value of the associated offset. If the value of off> or len> is negative, an offset defined using off> is outside the string, or a subarea defined using off> and len> is not completely contained in the string, an exception of the class CX_SY_RANGE_OUT_OF_BOUNDS> is raised.
ABAP_EXAMPLE_VX5 The result of the following function calls is 17 and 12. ABEXA 01299 ABAP_EXAMPLE_END