ZED_STRING_NORMALIZE — ABAP Function Module
Trim text and collapse repeated whitespace to one space.
ZED_STRING_NORMALIZE
Trim text and collapse repeated whitespace to one space.
| Name | Direction | Type | Description |
|---|---|---|---|
| INPUT (required) | EXPORTING | STRING | Source text (maximum 32,768 characters) |
| OUTPUT | IMPORTING | STRING | Normalized text |
DATA result TYPE string.
CALL FUNCTION 'ZED_STRING_NORMALIZE'
EXPORTING input = ' ABAP Playground '
IMPORTING output = result.
WRITE: / result.Example output:
ABAP PlaygroundZED_ denotes a local training helper. Whitespace is normalized without locale-specific text rules.
Exceptions: TEXT_TOO_LONG