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: 

bdc- error. se38.

0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

Please please please tell me why you would need to replace a line of code in a program .

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 🙂

matt
Active Contributor

Don't use BDC. Use READ REPORT, do your replacements, use INSERT REPORT.

Sandra_Rossi
Active Contributor
0 Kudos

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".

Former Member
0 Kudos

Dear Madhu Babu Panasa,

Have you try this two function module?..

May be it will help you..

STRING_REPLACE

REPLACE_STRING

Regards,

Sivaraj Sadasivam..