Debug LSMW

LSMW makes conversion process a breeze. At the same time, some complex conversions will give headache in LSMW if you are not getting the required result and you are not able to figure / debug it out.


There is one nice trick for this.
Actually when you create a LSMW program, internally a report/program will be created.


In order to display that auto generated code, click on User Menu in LSMW start screen and select "Display Conversion Program " and click OK.
Enable Display Conversion Program
Enable Display Conversion Program

Now there will be a display conversion program option in the LSMW main screen. Just select that option and execute and you will be able to see the auto generated code for that project.
LSMW Report
LSMW Report

Now you can do debug of this just like a normal report/ program. You can add breakpoints, watch points etc and see the flow of conversion in order to find where you are going wrong.