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

Debugging LSMW

Former Member
0 Likes
1,734

Hi All,

How can we debug LSMW?

Thanks

Rajesh

1 ACCEPTED SOLUTION
Read only

former_member156446
Active Contributor
0 Likes
1,125

[Bebug LSMW|http://searchsap.techtarget.com/tip/1,289483,sid21_gci1192754,00.html]

6 REPLIES 6
Read only

former_member156446
Active Contributor
0 Likes
1,126

[Bebug LSMW|http://searchsap.techtarget.com/tip/1,289483,sid21_gci1192754,00.html]

Read only

former_member632729
Contributor
0 Likes
1,125

Hi Dude,

At Field Mapping/conversion, you have to write the code BREAK-POINT at the very first field. Then the program execution will break when it reaches break-point ...

Read only

Former Member
0 Likes
1,125

in the Step 5 ( Maintain Field Mapping and Conversion Rules) after field mapping , goto chnage mode and double click that filed, its opend text editor there you can put BREAK your user id. or BREAK POINT.

after that you can read the data and dispaly the read data, when you press the CONVERT DATA (step11) the break point will triggerd.

Read only

0 Likes
1,125

Hi,

Afeter finishing all the steps u will get system genrated program , use that program name in se38 and u can do the debugging.

let me know if u have any queries

~linganna

Read only

Former Member
0 Likes
1,125

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 CONVERSION PROGRAM.

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

Regards,

Madhu

Read only

dhirendra_pandit
Active Participant
0 Likes
1,125

Go To field mapping step and put the BREAK-POINT in between the code and execute the LSMW it automatically stop at the Break point and you can excute the LSMW by Pressing F5 on key board.

Regards

Dhirendra