Skip to Content
0
Former Member
Apr 10, 2008 at 01:03 PM

Replace double space by single space

1224 Views

Hi all,

Can anybody please tell me how we can replace double space by single space.

For example

Here double space between D and X -> 'ABCD XY GHU'

Should be like this -> 'ABCD XY GHU'

I have tried

WHILE l_value CA ` `.

REPLACE ` ` WITH space INTO l_value.

ENDWHILE.

and

WHILE l_value CA ' '.

REPLACE ' ' WITH space INTO l_value. "SGA 2A015857

ENDWHILE.

But its not working and giving dump.

Please try to help me out.

Thanks & Regards

Swati