Application Development and Automation 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: 
Read only

Program to Schedule a Job .

Former Member
0 Likes
416

Hi guys ,

Im trying to limit an automatically repeated job to a particular time window... for example make a job to run every half hour between 00:00:00 and 12:00:00 am make a pause for one hour and then start again, I saw this documentation :

http://help.sap.com/saphelp_nw04/helpdata/en/c4/3a7fa1505211d189550000e829fbbd/frameset.htm

However it doesnt look like a easy task , or maybe it is , for that reason i want to ask you for advices to achive this task ,

thank you guys.

1 ACCEPTED SOLUTION
Read only

brad_bohn
Active Contributor
0 Likes
342

There are several ways you could attack it, depending on how you intend to indicate the paused or sleep period. I might create a system event and an event driven job for that event. Then, schedule a simple program that executes every half hour or so and does a few things: checks to make sure there's not an active instance of the job to be triggered, checks the current time against the 'pause' interval, then raises the system event to trigger the necessary job or just ends with no action (if in the pause interval).

Hi guys ,

Im trying to limit an automatically repeated job to a particular time window... for example make a job to run every half hour between 00:00:00 and 12:00:00 am make a pause for one hour and then start again, I saw this documentation :

http://help.sap.com/saphelp_nw04/helpdata/en/c4/3a7fa1505211d189550000e829fbbd/frameset.htm

However it doesnt look like a easy task , or maybe it is , for that reason i want to ask you for advices to achive this task ,

thank you guys.

1 REPLY 1
Read only

brad_bohn
Active Contributor
0 Likes
343

There are several ways you could attack it, depending on how you intend to indicate the paused or sleep period. I might create a system event and an event driven job for that event. Then, schedule a simple program that executes every half hour or so and does a few things: checks to make sure there's not an active instance of the job to be triggered, checks the current time against the 'pause' interval, then raises the system event to trigger the necessary job or just ends with no action (if in the pause interval).