on 08-04-2004 11:56 PM
Hi All,
How to Debug LSMW?
How to test the data at runtime?
Thanks
Rajendra
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.