Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

LSMW - debug

Former Member
0 Likes
1,177

Hi

How to debug in LSMW.

I know the process of writing break-point in the code.

Is there any other procedure to debug LSMW code?

2 REPLIES 2
Read only

Former Member
0 Likes
1,116

Prasanth,

There are 3 ways to debug in LSMW.

1) set /h in the transaction code before you execute the read/convert steps (very ugly)

2) go into the Extras -> User Menu and ensure that the 'Display Read Program' and 'Display Conversion Program' checkboxes are ticked. They should then appear in the Process Step list.

Select the process step you wish (Display read program or Display Conversion program', execute this action, and set a soft break-point by double clicking on the line item you wish or using the stop button.

The program will stop at your break-point.

3) Get the Read Program or conversion program name, copy and paste this into SE38, and set a hard 'Break-point' or 'Break <your username> (i.e Break Steve).

Please reward points for helpful solutions.

Cheers,

Steve

Read only

Former Member
0 Likes
1,116

hi

You can debug any LSMW object program in the usual way by putting a hard or soft breakpoint.

In your Field Mapping/conversion, you can code BREAK-POINT at the very first field. Then the program execution will break when it reaches there.

You can also put soft breakpoints in the generated code. To view your generated code, you need to bring it up in the initial screen of your object.

To do so, click on the User Menu button & check the Display Read Program & Display Conversion Program checkboxes. Hit ENTER. Now you will see 2 additional options on the initial screen of your Object. Double-clicking on the Display Read Program or Display Conversion Program will take you into the generated code. Place your soft breakpoint as you normally do.

Another option: go to the step DISPLAY READ PROGRAM or DISPLAY CONVERTION PROGRAM.

Now you will see the ABAP editor with the code. Place the breakpoint (soft break point using STOP button on application tool bar) whereever you desire.

please reward if useful

regards

ankit