Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Function Module for Job reschedule

former_member333737
Active Participant
0 Kudos

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.

5 REPLIES 5

Former Member
0 Kudos

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

Former Member
0 Kudos

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

raymond_giuseppi
Active Contributor
0 Kudos

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

0 Kudos

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

0 Kudos

Try [BP_START_DATE_EDITOR|http://www.sdn.sap.com/irj/scn/advancedsearch?query=bp_start_date_editor]

Regards,

Raymond