‎2010 Nov 01 5:15 PM
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
‎2010 Nov 01 5:40 PM
> please suggest the correct syantax for Replace First OCCurrence ..... in 4.6c.
You can get the correct syntax with F1.
Rob
‎2010 Nov 01 6:09 PM
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
‎2010 Nov 02 6:45 AM
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.