Remove spaces from string
You can easily remove the spaces from a string with CONDENSE
.
DATA(lv_var) = | test |.
CONDENSE lv_var NO-GAPS.
"result: 'test'
Since CONDENSE
is an old in-built function, the change will instantly be available in the variable.