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

Replace

Former Member
0 Likes
504

Hi all,

please tell me the syantax for Replace First OCCurrence ..... in 4.6c.

it is in ECC 6.0 and it is not existing in 4.6c.. please tell me the alternative for this.. or if it is exisisting.. tell me the syntax for this in 4.6c

Thank & Regards,

Ravi k patnana.

Moderator message: tell me, tell me, tell me...please study 4.6C ABAP online documentation and find out yourself, use meaningful subject lines when posting.

Edited by: Thomas Zloch on Nov 1, 2010 1:25 PM

1 REPLY 1
Read only

Former Member
0 Likes
458

Hello,

Please check the below code.

DATA FIELD(10).

MOVE 'ABCB' TO FIELD.

REPLACE 'B' WITH 'string' INTO FIELD.

returns:

FIELD = 'AstringCB', SY-SUBRC = 0

Thanks.

Ramya.