02-25-2013 6:44 PM
Hi Experts,
I have normal Zreport, it is working fine in the foreground. Now our requirement is User want schedule the same program in Back ground. So I have created the same program with other name and I have commented the Display section and scheduled in the back ground. If I run it in Back ground it is showing Status as CANCELLED in SM37. What is the problem with this report?
Thanks
kittu
02-25-2013 7:17 PM
HI,
Check the joblog in SM37, It will give you the details about what causing the issue, most probably dump.
Thanks
02-25-2013 7:20 PM
Hi Sukumar,
I cheecked the Job Log also but It is saying there is no Job Log there....
Thanks
02-25-2013 7:23 PM
02-25-2013 7:28 PM
Hi Vikram..
I checked the ST22 also for dumps it is saying None of the selected for short dumps
Thanks
02-25-2013 7:31 PM
I personally have not come across a situation where there is no job logs or dumps. Either of these 2 places would give you the reason. It can also be because of authorization for running in background. The other possible thing to do here is to debug the job that was cancelled. Use the option JDBG to debug the program from SM37.
02-26-2013 6:59 AM
Job CANCELLED and no job log, so maybe someone/something "destroyed" the job, ask him or look to system log via SM21.
Regards,
Raymond
02-25-2013 7:26 PM
HI,
When you said you commented out the display section,
You don't have to comment out unless you have GUI functions like GUI_UPLOAD or GUI_DOWNLOAD
the display part will go to spool.
Thanks
02-25-2013 7:32 PM
Hi Sukumar,
Actually I am not much aware of Back ground jobs, After your suggestion I scheduled a normal Zreport which is giving out put in foreground has been scheduled in the background. But it is also giving the same Status..Any problem with Basis settings??
02-25-2013 7:39 PM
Hi,
Do the following
Go to se38 enter your zreport
In the menu program->execute->background
create variant if you have selection screen other execute immediately and go to sm37 and check
02-25-2013 7:51 PM
02-25-2013 7:34 PM
Hi Kittu,
I couldn't identify why the background job status is showing CANCELLED.
But I would like to ask you, if you are following the steps bellow:-
If its what you are following ,then the status should be successful.
Regards,
Bishwajit.
02-25-2013 7:50 PM
Hi Bishwajit..
I followed the same steps... No job log and no Dump.. exist
Thanks
02-25-2013 7:53 PM
Hi
can we schedule in back ground a Normal Zreport which running in the foreground ? can ypu send any sample report for back ground scheduling??
02-25-2013 7:57 PM
Hi Kittu,
If its possible to give screen shots of the code and the process you are following....then we may sort out your problem.
Regards,
Bishwajit
02-25-2013 8:05 PM
02-25-2013 8:09 PM
02-25-2013 8:00 PM
I am guessing this should be a problem with Authorization. did you check su53 for any failed auths?
02-25-2013 8:15 PM
HI..
There is no Authorization values over there.
Actually there is
user name XXXX Authorization object .........( Blank)
system XXX clientXXXX
date XXXX timeXXXX
instance XXX profile parameter auth/new buffering ...4..
02-25-2013 8:22 PM
If this is happening in the development system, write a small test program with just one write statement it and schedule the same in background. If even this fails then its obvious else as Das suggested share the code snippet for us to analyze.
02-25-2013 8:53 PM
Hi kittu,
I think , in your case the background job may get cancelled due to either of the following causes:-
So, check your code and try to resolve it.
Regards,
Bishwajit.
02-25-2013 8:57 PM
Hi..
Same program in the fore ground which is giving the result...So may be with authorization problem??
Thanks
02-25-2013 9:01 PM
Please close this discussion now...if you have got your answer..
regards,
Bishwajit
02-25-2013 9:04 PM
still I didn't get.. If I run it in the fore ground I am getting the result but the same program in the background not working
02-26-2013 2:38 AM
02-27-2013 9:04 AM
Hi Kittu,
After going through everyone's reply as i understand it is better to check the code.
Could you please paste your entire code for the analysis.
thanks.
Regards,
Vignesh Yeram