Get Example source ABAP code based on a different SAP table
• char_off ABAP_FUNCTION
ABAP_STRINGFUNC > - char_off> This built-in> length function has a named character-like argument.
ABAP_SYNTAX ... char_off( val = text add = pos $[off = off$] ) ...>
What does it do? The function returns the offset of the character in text> that is pos> places away from the character in the offset specified in off>. The default value for off> is 0. text> is a character-like expression position>. pos> and off> are numeric expression positions> with the type i>. This function can be specified in general> and numeric expression positions>. The return value has the type i>. The value of pos> can be positive and negative and describes the places to the right or on the left accordingly. If pos> identifies a position outside of text>, the function returns the value -1. If off> is greater than the length of text>, an exception of the class CX_SY_RANGE_OUT_OF_BOUNDS> is raised.
Latest notes: The function char_off> was suitable for finding the correct offsets of characters in non-Unicode double-byte systems. NON_V5_HINTS ABAP_HINT_END
ABAP_EXAMPLE_VX5 The result of the following function call is 7. ABEXA 01070 ABAP_EXAMPLE_END