2014 Oct 15 10:53 AM
Hi All,
We written one program, which is working fine when we run manually. The same program is scheduled in background at 9.00am everyday. But It is not working during background schedule.
Program Logic:
Send email to the trainees who are all suppose to attend the training
Note:
There is no Error message is handled in the program.
Regards
Rajkumar Narasimman
2014 Oct 15 10:55 AM
Hi,
did you use functions, class ... use something in the sapgui ? OLE ... file ...
regards
Fred
2014 Oct 15 10:55 AM
Hi,
did you use functions, class ... use something in the sapgui ? OLE ... file ...
regards
Fred
2014 Oct 15 10:59 AM
Hi Frederic,
Only Two functions are used,
Even here also the error message is not handled.
Regards
Rajkumar Narasimman
2014 Oct 15 11:03 AM
check the email queue SOST if the emails are pending there ..
2014 Oct 15 12:17 PM
Did you put a COMMIT WORK AND WAIT after the call of the function ?
regards
Fred
2014 Oct 15 10:59 AM
what kind of user are you using for the background job ? Is it the same user who runs the program in foreground ..
Check in su01 if the background user email id is maintained...
Regards,
Tashi
2014 Oct 15 11:11 AM
2014 Oct 15 11:41 AM
Hi Sreekanth,
Thanks for your reply. When executing in background from SE38, it is working fine. Email is triggering in SOST. But the scheduling done in SM36, I am facing the problem, Email is not receiving in SOST.
Regards
Rajkumar Narasimman
2014 Oct 15 11:46 AM
Hi Sreekanth,
what it is showing in job log and the job is finished?
Thanks & Regards,
Polu
2014 Oct 15 11:48 AM
Hi ,
when you create the job in SM36, what if you set the job as "immediate execution". Does it work ?
when you set it as a periodic job, what is the status of the job which was suppose to be executed ?
I am assuming the start condition of the job wasnt proper, if the user is proper (same or similar user as the foreground user).
Please have a look closely at the date and time of the job (its sap system date and time).
Regards,
Tashi
2014 Oct 15 12:08 PM
Hi Sreekanth,
Please check the job log then definitely you will get some idea what you are missing. If the job is finished and no issues in job log then delete all the mails in SOST and run the program in Background.
Thanks & Regars,
Polu
2014 Oct 15 11:50 AM
Can you try with this addition..
CALL FUNCTION 'SO_DOCUMENT_SEND_API1' IN BACKGROUND TASK
2014 Oct 15 12:18 PM
Hi Raj,
Try to configure the background user..usually Basisbatch/<>remote user also assigned in su01d for batch user.Ensure the SCOT settings are covered.
Check in spo2 whether the spools are created.As it a batch job i am not sure it will appear in your outbox.
Regards,
Kannan