09-15-2010 11:30 AM
Hello Experts,
Is there a function module for job rescheduling as i need to create a automation program where i need to select all jobs from excel sheet and reschedule at different time.
Thanks and Regards,
Nikhil Kanegaonkar.
09-15-2010 11:43 AM
Hi,
As far as I know, there is no FM to reschedule the same job again in SAP. But what you can do is for automating the program to submit the job. Check the job status in TBTCO table, if that particular job is failed then schedule the job with same variant. but you can't schedule the same job again.
Regards,
Selva M
09-15-2010 2:34 PM
Hello Nikhil,
I don't understand what you need exactly, but you can start by reading the code of FORM repeat_job_definition in include LBTCHF14, which is the form used in order to repeat the scheduling of a job in SM37...
Samuel
09-15-2010 2:56 PM
You could use the following FM
- [BP_JOB_READ|http://www.sdn.sap.com/irj/scn/advancedsearch?query=bp_job_read] (read first from TBTCO to fill field JOBCOUNT)
- [BP_JOB_CREATE|http://www.sdn.sap.com/irj/scn/advancedsearch?query=bp_job_create] (change schedule parameters first)
- for recent versions [BP_JOB_COPY|http://www.sdn.sap.com/irj/scn/advancedsearch?query=bp_job_copy]
You should take a look at FM of the FG BTCH and SAP documentation like [Programming with the Background Processing System (BC-CCM-BTC)|http://help.sap.com/saphelp_nwpi71/helpdata/en/fa/096c53543b11d1898e0000e8322d00/frameset.htm]
Regards,
Raymond
09-15-2010 3:18 PM
Hi,
what I need to do is we usually reschedule jobs to a different time when we have a outage during end of the month,so we take up job manually and run them,i am creating a automated program where i pick up all the jobs from excel sheet, than we reschedule those jobs on a particular time and date.
For this i need a FM any idea on this.
Thanks and Regards,
Nikhil Kanegaonkar
09-15-2010 3:34 PM
Try [BP_START_DATE_EDITOR|http://www.sdn.sap.com/irj/scn/advancedsearch?query=bp_start_date_editor]
Regards,
Raymond