10-24-2016 9:32 PM
Hi All,
I have to replace string of particular line of source code automatically. so I have recorded se38 using shdb. I use cntrl+O to go to that particular lin eand cntl+F to replace string. when i am processing recording its stop at edit mode and continuing after hiting cntl+O using key board. same with cntl+F. After that I tried click on Find icon. and bug is same. Is there any function module to repalce string of particular program at particular line. I have tried RS_EDTR_REPLACE2. i have not got it. please help me out. Thanx in advance.
With Regard's
Madhu
10-25-2016 7:06 AM
Please please please tell me why you would need to replace a line of code in a program .
10-25-2016 7:48 AM
There are tons of causes linked a bad programming practice.
I once had to replace all the "BDG" fix value in currency conversion, looking thru 5K reports/userexit/BAdI/FM, for example.
Or replacing a fix default (i.e. werks = "MYWK") with its corresponding memory id or parameter id.
Something I ereditated from 15 years of stratified developments and I had to fix.
So a massive replace could have a reason 🙂
10-25-2016 8:36 AM
Don't use BDC. Use READ REPORT, do your replacements, use INSERT REPORT.
10-25-2016 8:47 AM
If you need to do it once, you may find/replace text in several programs via SE80, by selecting them and use contextual menu "Replace".
10-26-2016 7:03 AM
Dear Madhu Babu Panasa,
Have you try this two function module?..
May be it will help you..
STRING_REPLACE
REPLACE_STRING
Regards,
Sivaraj Sadasivam..