07-30-2010 7:15 AM
Hi Friends,
i am facing the problem with the funciton module, I have executed my custom program in background (SM37) but the program job was compled with in few minutes.
i have debugged the background job in jdbg and find out the problem in Function module BP_JOB_CHECKSTATE .
After execution of the function module BP_JOB_CHECKSTATE , The function module raises the Exception 5 " *no authorization for checking the job "*
Could you please tell me why the function module raise the exception 5( no authorization for checking the job).
Could you please help it's a very important for me becuase we are getting the dump in production system .
Thanks.
Charn
07-30-2010 7:30 AM
Hi,
This exception occurs because of the authorization issue.
system will check the authorization when the job creator name and sy-uname is different. in this case system user must have the authorization to object S_BTCH_ADM ID : BTCADMIN and field = Y. then only system allow the check the background job
check the username and the job creator name is same or not if not then find the authorization needs to be provided to object S_BTCH_ADM ID : BTCADMIN and field = Y to the user name. If user name is same as job creator name then i guess it willl allow you to check the job with this authorization object