Skip to Content
0
Former Member
Nov 08, 2006 at 06:21 PM

Replace # with space

24 Views

Hi All

Here is my query

when i am execute this prg

REPORT ZTEST4.

DATA STR(100) TYPE c VALUE <b>'1#02.11.2006#02.11.2006#1061#AUD##7#SA#Legacy data transfer1#Reference1'.</b>DATA: SPL TYPE C VALUE '#'.

REPLACE ALL OCCURRENCES OF SPL IN STR WITH ' '.

IF SY-SUBRC = 0.

WRITE:/ STR.

ENDIF.

I am getting the following output

<b>OutPut:102.11.200602.11.20061061AUD7SALegacy data transfer1Reference1</b>

Here i want to display this output with space in place of # symbols.

how to do this

Rgds

Raghav T