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
455

Hi all,

please suggest the correct syantax for Replace First OCCurrence ..... in 4.6c.

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

i am using fallowing syntax for alternative of REPLACE FIRST OCCURRENCE in 4.6c

Replace '<char>' with '<special character>' into <target areag>.

please suggest me which one is correct syntax.

these two syntaxes will having same functionality or not... kindly confirm this.

Thanks ,

Ravi

Moderator message: please use more descriptive subject lines from now on, you have been asked before.

Edited by: Thomas Zloch on Nov 1, 2010 6:31 PM

3 REPLIES 3
Read only

Former Member
0 Likes
422

> please suggest the correct syantax for Replace First OCCurrence ..... in 4.6c.

You can get the correct syntax with F1.

Rob

Read only

0 Likes
422

Hi,

This is not available in 4.6

You can either achieve this within loop or split it and achieve it

you can do something like this, this wil do REPLACE ALL OCC...:

WHILE sy-subrc EQ 0.

REPLACE ... " acc. to 4.6 Syntax ...

ENDWHILE.

Thanks,

S.Vikgnesh

Read only

Former Member
0 Likes
422

try all these

REPLACE 'AND' WITH 'AND datab LE' INTO s_where-low.

OR

REPLACE ALL OCCURRENCES OF 'ab' IN c4 WITH 'CCC'.

OR

split comment1 at '##' into str1 str2.

clear comment1.

concatenate str1 str2 into comment1 separated by SPACE.