cancel
Showing results for 
Search instead for 
Did you mean: 

Scheduling periodic job

Former Member
0 Kudos

Hello,

Not sure if this is the right location for this question, but we will start here.

We are trying to schedule a job that we want to run every 20 minutes from the hours of 05:00 AM until 11:00 PM. We don't want the job to run between 11:00 PM and 5:00 PM.

We are using the standard SM36 and SM37 for our batch job scheduling, but cannot figure out how to accomplish this.

Has anyone had any luck with this type of job scheduling? I would think this would be possible, but maybe it isn't in SM36.

Thanks in advance for your responses.

Dale

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Dale,

This is not possible. You can give a start time and frequency of execution but there can only be one final end time. There is no way to restrict it to a time period everyday.

The only way I see you can achieve this is by letting it run the whole day. Or use a third party job scheduler like Redwood.

What is the purpose for this job?

Regards,

Shitij

Answers (1)

Answers (1)

sunny_pahuja2
Active Contributor
0 Kudos

Hi,

I have not tried this. But I think you can achieve this with the help of operation modes in SM36.

You can define 2 operation modes, one from 5 AM to 11 PM and other from 11 PM to 5 AM, so you can schedule job for first operation mode as a result when operation mode will change this job will not execute.

Thanks

Sunny

Former Member
0 Kudos

Hi,

SM36/SM37 is only a basic scheduler, it is difficult or impossible to schedule jobs with complex start conditions

You can create a lot of daily jobs with a start time every 20 minutes. (it's a mess to maintain...)

or

You can do it programmatically with a specific abap program as first step.

or

Or you could buy and use CPS, the external scheduler form Redwood/SAP. It is very powerful but very complex and not easy to master....It is also expensive...

Regards,

Olivier