ABAP: 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' 
1
2
3
4
5

Since CONDENSE is an old in-built function, the change will instantly be available in the variable.