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

debuug in background

I have made some chnages in user exist for VL06I and I am creating a TO in background.

I want to debugg the program but it does not stop at breakpoint.

Please suggest.

Thnaks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 19, 2008 at 01:47 PM

    goto any SAP mode.

    type /h in your ok-code field and press enter.

    once in debugger, goto menu and click Debugging -> System debugging and then Debugging -> background debugging.

    now you switched on Background debugging and System debugging. NOW it definiteley should stop at your braekpoint.

    Add a comment
    10|10000 characters needed characters exceeded

    • The 'dirty' way would be to create an endless loop in your user exit. Create TO and go to SM50. Now select the process you want to debug and via the menu (don't know the exact menu name) you can debug the process.

      Endless loop.

      DATA: lv_exit type c.

      DO.

      IF lv_exit IS NOT INITIAL.

      EXIT.

      ENDIF.

      ENDDO.

      While debugging, set lv_exit to 'X' and you will exit the loop and can debug your coding.

      DO NOT FORGET TO DELETE THE ENDLESS LOOP AFTER TESTING!!!!!

      You can also put this loop inside a condition with your user name, or the name from background user if applicable in this case.

  • Posted on May 19, 2008 at 03:46 PM

    is there any background job which you schedule for creating TO?

    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.