Skip to Content
0
Jan 09, 2008 at 09:26 AM

Replace Function

25 Views

Hi all !!

How do i remove hex 0d0a characters (carrier return+line feed)from a string ?

I want to replace it with a space (hex 32).

I've tried :

DATA crlf(2) TYPE x VALUE '0D0A'.

DATA sp(1) TYPE x VALUE '32'.

REPLACE ALL OCCURRENCES OF crlf IN wa-aetxt WITH sp IN BYTE MODE.

But it doesn't works...

Thanks for support.

Regards,

David