SAP STRING UTIL



Get Example source ABAP code based on a different SAP table
  


VERSION 5 IN
• CL_ABAP_STRING_UTILITIES ABAP_CLASS

Class for Trailing Blanks
The class CL_ABAP_STRING_UTILITIES contains methods for processing text strings .
C2STR_PRESERVING_BLANKS assigns text fields while preserving the trailing blanks.
DEL_TRAILING_BLANKS deletes the trailing blanks from strings.



Latest notes:

Tasks like this can now also be performed using statements and built-in functions.
NON_V5_HINTS
ABAP_HINT_END

ABAP_EXAMPLE_VX5
The program compares the method C2STR_PRESERVING_BLANKS with the built-in function shift_right. The implementation of the method now consists of nothing more than this function.
ABEXA 01320
ABAP_EXAMPLE_END