Skip to Content
author's profile photo Former Member
Former Member

LSMW DEBUG

Hi All,

How to Debug LSMW?

How to test the data at runtime?

Thanks

Rajendra

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 06, 2004 at 07:29 PM

    Perhaps you have already figured this out, but place a BREAK-POINT statement in the portion of code you wish to debug and you will jump into the debugger when you run the CONVERSION portion of the script.

    You might want to set a counter so that you only hit the statement once; otherwise, you'll get stopped for each record you hit.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 07, 2004 at 07:20 PM

    Rajendra,

    LSMW generates ABAP in the background. So you can debug it in the same way you debug any other ABAP. You can debug at READ as well as CONVERSION time. Both are different programs.

    Do this :

    Lets say you want to debug at the time the data is READ into <i>LSMW</i>. Select the radio button for Read data & hit execute. On the next screen, go to System => Status. This will give you the name of the generated ABAP. Double click on the program name to enter editor in display mode. Put a breakpoint (soft or hard) whereever you wish. Go back one screen & resume execution of the program. The process will stop at the point you set the breakpoint.

    Its the same at time of CONVERSION.

    Let me know how it went.

    Regards,

    Homiar.

    Add comment
    10|10000 characters needed characters exceeded