Skip to Content
avatar image
Former Member

bdc- error. se38.

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Oct 25, 2016 at 07:36 AM

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 25, 2016 at 06:06 AM

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

    Add comment
    10|10000 characters needed characters exceeded

    • 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 :)

  • Oct 25, 2016 at 07: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".

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 26, 2016 at 06: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..

    Add comment
    10|10000 characters needed characters exceeded