Skip to Content
0
Former Member
Jul 22, 2008 at 05:45 AM

A question about keyword "REPLACE"

25 Views

I have a section of codes like below.I want the replace statement to make the test2 into "send from kevin".

But unfortunately I got "send from kevin".To many spaces, you see.

So how can I got the right replacement?

Thanks for your help

REPORT  ZBOB01.
DATA test1(10) TYPE C VALUE 'from'.
DATA test2(20) TYPE C VALUE 'send && kevin'.
REPLACE '&&' WITH test1 into test2.

WRITE test2.