SAP INSERT FUNCTIONS



Get Example source ABAP code based on a different SAP table
  


• insert ABAP_FUNCTION

ABAP_STRINGFUNC - insert

ABAP_SYNTAX
... insert( val = text sub = substring $[ off = off$] ) ...

What does it do?
This built-in function inserts the character string specified in substring into the string specified in text, either before the first character or at the optional offset specified off and returns the corresponding extended result. If substring is empty, the unchanged content of text is returned.
The return value has the type string.

ABAP_EXAMPLE_VX5
After the following iteration has been executed, the result is in result X X X X X.
ABEXA 01054
ABAP_EXAMPLE_END



Runtime Exceptions



Catchable Exceptions
CX_SY_RANGE_OUT_OF_BOUNDS
Reason for error:
Invalid offset specified in places.
Runtime error:
STRING_OFFSET_TOO_LARGE