Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

condense string function: how to remove gaps?

jrgkraus
Active Contributor
0 Likes
2,028

I am trying hard to use the condense string function to strip space from a string. This is my coding:

  cl_demo_output=>display( condense(
    val = 'a b'
    from = ' ' to = ``
    ) ).

But the output is

How can I get the good old condense ... no-gaps with this function?

1 ACCEPTED SOLUTION
Read only

DoanManhQuynh
Active Contributor
1,287

The only thing you need to change is from value, like this:

DATA(result) = condense( val = ` abc def ` from = ` ` to = `` ).

1 REPLY 1
Read only

DoanManhQuynh
Active Contributor
1,288

The only thing you need to change is from value, like this:

DATA(result) = condense( val = ` abc def ` from = ` ` to = `` ).