SAP TRANSLATE FUNCTIONS



Get Example source ABAP code based on a different SAP table
  


• translate ABAP_FUNCTION

ABAP_STRINGFUNC - translate
• from translate function
• to translate function

ABAP_SYNTAX
... translate( val = text from = from to = to ) ...

What does it do?
This built-in function returns the character string from text where each character that occurs in from is replaced by the character that occurs in the same place in to as in from. If to is shorter than from, the surplus characters from from are removed from the character string. If from is an empty string, the content of text is returned unchanged.
from and to are character-like expression positions. If they have a fixed length, trailing blanks are ignored.
The return value has the type string.

ABAP_EXAMPLE_VX5
The return value of the following function call is Horray!.
ABEXA 01360
ABAP_EXAMPLE_END