11-22-2007 3:46 PM
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
11-22-2007 3:48 PM
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
11-22-2007 3:52 PM
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,
11-22-2007 3:59 PM
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
11-22-2007 4:24 PM
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,
11-22-2007 4:30 PM
Select the JOB by ticking the Check Box in front of it, Enter JDBG in the Command Field and then press ENTER key.
11-22-2007 4:38 PM
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
11-22-2007 4:44 PM
:)..
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
11-23-2007 8:46 AM
11-22-2007 3:58 PM
11-22-2007 4:00 PM
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