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

replacing

Former Member
0 Likes
429

Dear Friends,

An internal table with some fields is given. One of them is the

description field. It may contain sometimes characters as ##.

The goal is to replace each double ## (cross hatch) with

one linefeed CR_LF .

Please help on how to implementing !

DESCRIPTION CCIHE_ACDESCR CHAR 132

STATUS J_STATUS CHAR 5

REF_OBJECT CCIHE_IHREFOBJ CHAR 3

....

....

Regards

sas

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
399

HI,

try this ...

REPALCE ALL OCCURENCES OF '##' WITH CR_LF IN ITAB.

CHECK THE SYNTAX...

2 REPLIES 2
Read only

Former Member
0 Likes
400

HI,

try this ...

REPALCE ALL OCCURENCES OF '##' WITH CR_LF IN ITAB.

CHECK THE SYNTAX...

Read only

naveen_inuganti2
Active Contributor
0 Likes
399

Hi...

do like this....

> loop at itab.

> if itab-f1+0(2) = '##'.

> itab-f1 = <pass the value>.

> modify ITAB index sy-tabix transporting f1.

> endif.

> endloop.

Thanks,

Naveen.I