Show TOC Start of Content Area

Function documentation Scheduler Job Start Conditions  Locate the document in its SAP Library structure

Use

A scheduler job starts to run every time certain start conditions are fulfilled. You use start conditions to schedule jobs and trigger automatic job execution.

Integration

You set start conditions to the instances of a job definition, or jobs, when you create a scheduler task for that job definition. The start conditions you set in the scheduler task apply to every job instance created from the job definition.

Features

You can schedule a job to run when a particular time comes (time-based scheduling), or when an event is raised (event-based scheduling).

Note

In this release, event-based job scheduling can be used only by external schedulers integrated with the Java Scheduler through the JXBP API.

The following time-based start conditions are possible:

·        Start once or periodically at a particular time (recurrent execution)

       Start once

The job runs once at the specified time.

 Note

This is a special case of recurrent execution, in which the job has a single iteration, as opposed to the several iterations in the recurrent periodical start condition.

¡        Start periodically

The job runs once at a particular date and time and then runs recurrently again a specified number of times at specified regular intervals. You can exclude execution times from the schedule of a recurrent job so that it does not run at those times.

The recurrent periodical job can run infinitely.

·        Start once or periodically on a day relative to the start/end of the month (cron execution)

With cron start conditions, you define the minute, the hour, the day of week and/ or month, and the year when you want the job to run.

       Start once

The job runs once at the specified time.

¡        Start periodically

The job runs at the specified intervals. You can set the job to run one or more times within a period of time that occurs at regular intervals. You can exclude execution times from the schedule of a cron job so that it does not run at those times.

Example

The table below provides examples of the various time-based start conditions which you can use to schedule jobs.

Start Condition

Example

Recurrent

 

·        Once

Run the job on December 24 at 6 PM.

·        Periodic

·        Run the job on Monday October 24 at 10 AM and repeat 10 times every 24 hours.

·        Run the job on Monday, October 24 at 8AM and repeat every 10 minutes until 6PM on the same day.

Cron

 

·        Once

Run the job on the first weekend in January in 2010.

·        Periodic

·        Run the job every weekday at 8:10 AM.

·        Run the job every weekday, every quarter of an hour between 8 AM and 6 PM in 2010.

 

 

End of Content Area