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: 

background job

Former Member
0 Kudos

Hi all,

I have a program where in if i run in foreground, the values are correct and when i execute the same program with the same variant in background, teh values arenot correct....Is there any way to check the program in debugging mode while running in background??

or can we analyse in any other way?

Rgds

10 REPLIES 10

Former Member
0 Kudos

Look at this link. this describes how to debug programs running in batch mode.

http://www.sapdevelopment.co.uk/tips/debug/debug_backjob.htm

OR

go to SM50 select the job running in background mode.

go to program/mode -> program and select debugging.

cheers

A

0 Kudos

Hi,

The link which you have given is debugging a program foreground and inturns if there are any programs called in Backgroung...

My problem is different,the same program is acting differently in foregroud and in background.I want to analyse why values are not correct when run in background...

Please help!!

Rgds,

0 Kudos

Did u try following the next step via SM50.

you can put wait statemnets in your code if you are not able to catch the program in SM50.

OR debug via SM37.

A

0 Kudos

Hi,

Could you please tell me how to do using SM37...after entering JDBG i could not find any change like going into debugging mode.The same screen remains....

Please do teh needfull

Rgds,

0 Kudos

Select the JOB by ticking the Check Box in front of it, Enter JDBG in the Command Field and then press ENTER key.

0 Kudos

Hi Sharma,

i am doing in the same way...given the job name and checked the below check boxes

1)Scheduled

2)Released

3)Ready

4)Active

5)Finished

6)Cancel i mean i checking all

gave JDBG and pressed enter...nothing happening....

Tell me should press on Execute or simple Enter.....?I tried Executing tooo its not going into debugging mode...

please help

0 Kudos

:)..

Go to SM37, Select all the Check boxes and then press F8.

you will have a list displayed.

Check if the job of yours is in finished state. If yes then you follow the steps that I have mentioned earlier

i.e Select the finished JOB by ticking the Check Box in front of it, Enter JDBG in the Command Field and then press ENTER key.

<b>Reward Points if useful</b>

Message was edited by:

Saket Sharma

0 Kudos

Thank you very much.....

Former Member
0 Kudos

Hi,

To debug the program go to Menu option:

Program/Mode>Program>Debugging

Check the below threads.

Regards,

Maha

Former Member
0 Kudos

Hi ,

For already finished job,Select the job in SM37 and in the Command field write JDBG and press Enter.

Debugging will start and then you after few standard SAP FM calls you will come to your program.

For a background job already running you can go to SM0 and then SLECT THE JOB and from PROGRAM Select DEBUGGING.

Regards

<b>Reward points if useful</b>

Saket Sharma