cancel
Showing results for 
Search instead for 
Did you mean: 

LSMW DEBUG

Former Member
0 Kudos

Hi All,

How to Debug LSMW?

How to test the data at runtime?

Thanks

Rajendra

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.