Application Development 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: 

how do we debug jobs in background

former_member644292
Participant
0 Kudos

hi guys can any one clarify my doubt regrding debugging a job which is scheduled

in back ground..

thanks in advance..........

6 REPLIES 6

Former Member
0 Kudos

Hi,

Try this..

If the job is running..

Then go to SM50..

Select the process..

In the menu..Program/session -> program -> debugging..

Thanks,

Naren

Former Member
0 Kudos

Hi Srikanth,

Go to SM50, select the process which is running jour job and use the menu Program/Mode->Program->Debugging.

The other way:

SM37 transaction, then F8.

Select job and write transaction code JDBG, then press enter.

You might try it.

Regards

Tamá

former_member187255
Active Contributor
0 Kudos

1) Fix the break points.

2) Create job.

3) Go SM37

4) Select the job and write "jdbg" in command line.

2. 1) Use Transaction SM50. This would give you a view of all the background

processes running in the server.

2) Choose your background process from the list and got to

MENU "Program/Mode"->"Program"->"Debugging".

Former Member
0 Kudos

If this has a selection screen fields try debugging using selection-screen. Since in SM50 the program will be seen only if it runs for a very long time.

Regards,

paul.

Former Member
0 Kudos

Hello,

You can debug very easily if your program that you want to debug is a custom program. You can put an endless loop in the code somewhere.

WHILE SY-SUBRC = 0.

CHECK SY-SUBRC = 0.

ENDWHILE.

Now go to SM50, select the work process that is running the program. Click Program/Session->Program->Debugging, it will then open the debugger and you will be looping at your endless loop. Change the value of SY-SUBRC to get out of the loop and debug as normal.

or

1) Fix the break points.

2) Create job.

3) Go SM37

4) Select the job and write "jdbg" in command line.

Check:

<b>

Regards,

Beejal

**Reward if this helps

Former Member
0 Kudos

Hi,

Job is background execution of program with some variant

1. Go to sm37, give the details like you job name,dat,etc. and execute.

2. Select the checkbox and click on Step button at the top

3.Copy the program name and parameter.

4. Goto se 38, run the program with same variant as parameter.

Debug the program...

This is the way job works.