Application Development 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: 

Replace

Former Member
0 Kudos
76

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

Former Member
0 Kudos
30

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.