2008 Nov 21 5:37 AM
Hi,
I want to set a background job to a program. the job should run daily at 4 AM.
if i set the job from tomarrow, it should take the tomarrow date i.e, 22/11/2008, then minus it by one day
i.e, 21/11/2008. then pass this value to the selection parameter of the program.
How to i set it???
regards,
Swetha
Hi,
I want to set a background job to a program. the job should run daily at 4 AM.
if i set the job from tomarrow, it should take the tomarrow date i.e, 22/11/2008, then minus it by one day
i.e, 21/11/2008. then pass this value to the selection parameter of the program.
How to i set it???
regards,
Swetha
2008 Nov 21 5:42 AM
Hi Shwetha,
To set the background job through ABAP programming instead of SM36 we can use the following procedure :
1. Call FM JOB_OPEN
2. Call FM JOB_SUBMIT / SUBMIT statement and pass the Job No. from the JOB_OPEN
3. Call FM JOB_CLOSE.
The link contains a sample program to implement it :
http://help.sap.com/saphelp_40b/helpdata/en/fa/096d40543b11d1898e0000e8322d00/content.htm
Thanks,
Nitesh Jain
2008 Nov 21 6:37 AM