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

Background to Debug mode

Hi,

I am running a program in Background job. But it was giving dump.

Could any one let me know how can i do debug in

background mode.

Thanks

Gopi.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • Best Answer
    Posted on Nov 29, 2005 at 01:33 PM

    hi,

    1)insert an endless loop, with a condition that can be manipulate, into your code

    2)start report in backgr.

    3)go to sm50 and debug your program

    4)manipulate your condition from 1) that report continues

    Andreas

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 29, 2005 at 01:31 PM

    Hi Addepalli,

    From dump analysis you can debug where dump has

    triggered. Goto St22 transaction and check.

    I think immediatly only we can check it.

    best way is goto SM50 and locate your job and then in

    the menu Program/Mode -> Program -> Debugging.

    Hope this will help you.

    Thanks&Regards,

    Siri.

    Message was edited by: Srilatha T

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 29, 2005 at 01:35 PM

    Hi,

    In transaction SM50, you can choose the background process running this program and cleck the menu item Program/Mode --> Program --> Debugging...

    If it is a Z-Program write an endless loop(at the start of the program) with an exit condition(which does not exit normally)...so that the background process will be stuck in this loop...Then choose debugging as mentioned...then change the exit condition correctly in debugging so that you are out of the endless loop...This is for making sure that the by the time you get to SM50 the execution is not over....

    Thanks & Regards,

    Renjith.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 29, 2005 at 01:40 PM

    Hi,

    According to my knowledge, if you put a hard break point in an ABAP program and execute it in BAck ground mode, it doesn't stop there.

    It means that Break point doesn't work for background execution program.

    Its better you run the same by putting a Break point in online mode.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 29, 2005 at 01:46 PM

    Hi In SM50 select your Program and Go to Program Debugging.

    regards

    vijay

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 01, 2005 at 03:59 AM

    a variation on some of the other answers, from transaction SM37 you can go directly to debug via job->capture active job. Again you will need it to run for some time to be able to capture it so you'll probably need to put an infinite loop in. Use of Job Capture is sometimes restricted at certain sites so you may not be able to use it.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 01, 2005 at 04:38 AM

    In SM37: Select the job, type JDBG in the OK-code and press enter. This can be used for both completed jobs and jobs to be processed (just make sure you have enough time to debug before the job actually starts). Breakpoints set in the job flow works.

    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.