Zed FrameOpen workbench

Text cleanup

Normalize whitespace and replace a literal word with a local helper module.

Text cleanup

Normalize whitespace and replace a literal word with a local helper module.

  • P_TEXT: STRING; default: ABAP Playground . Text to normalize.
REPORT ZED_EXAMPLE_TEXT.
PARAMETERS p_text TYPE string DEFAULT '  ABAP   Playground  '.
DATA normalized TYPE string.
DATA result TYPE string.
START-OF-SELECTION.
CALL FUNCTION 'ZED_STRING_NORMALIZE'
  EXPORTING input = p_text
  IMPORTING output = normalized.
CALL FUNCTION 'ZED_STRING_REPLACE'
  EXPORTING input = normalized
            substring = 'Playground'
            replacement = 'Workbench'
  IMPORTING output = result.
WRITE: / result.
Open example programs in the workbench