Skip to Content
author's profile photo Former Member
Former Member

LSMW

Why it not possible to debbuge LSMW ?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 11:52 AM

    hi,

    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.

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

    reward if useful.

    hemanth kumar . h

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 12:10 PM

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

    In LSMW, in the section where you implement the conversion (and you'll have to bear with me because I'm not on an SAP system at the moment), I think under the settings option (I'll check when I manage to get online.....) there is a 'View' option. By selecting all views in this option you gain access to the entire conversion program from global symbols to your own user written code which can include quite sophisticated reporting.

    You also gain access to the various events in LSMW such as the end of record event and so forth which enables you to modify the code there too.

    As for debugging LSMW, the conversion program is an ABAP report and therefore all the ABAP debugging tools are available.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 01, 2007 at 06:02 AM

    Hi,

    1)Hardcode BREAK-POINT <USERNAME> in the CODE option of the LSMW.

    2) use transaction LSMW.

    Check this thread.

    https://www.sdn.sap.com/irj/sdn/collaboration

    https://www.sdn.sap.com/irj/sdn/collaboration

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.