cancel
Showing results for 
Search instead for 
Did you mean: 

Schedule Job

0 Kudos

Hi Guys,


There is a requirement to schedule an hourly job with a condition that it should only run when the former one gets completed.

I came across an event "SAP_END_OF_JOB" for the same but the OSS note "422212 - Information about SAP_END_OF_JOB event" states that "In Basis Releases as of 7.00, triggering the event SAP_END_OF_JOB was possible until the year 2007, approximately. Since then, the function BP_EVENT_RAISE returns the exception RAISE_FAILED in this case.

In Basis Releases lower than 7.00, it is still possible."



Any thoughts on this?


Regards,

Ankit

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ankit,

In SM36 where a job is defined, we have option to schedule a job with predecessor job as start condition.

Regards,

anjali.

0 Kudos

Thanks for the prompt response!

The same job needs to be run on an hourly basis with the condition that the prior one should be completed.

Any thought on this one?

Former Member
0 Kudos

I believe, if you keep the option 'Start Status-dependent' unchecked, the job will run only after the predecessor job is finished. Make sure then that your predecessor job is scheduled hourly. Please test this.

Former Member
0 Kudos

Hi Ankit,

I guess, 'After Job' condition will only work for the first run. We cannot have this condition on a periodic basis. Please test it.

The best way to deal with this to define a new step in the predecessor job.

Step 1: report that needs to run.

Step 2: report that need to run after completion of STEP 1 report. Simple, easy and guaranteed solution.

Regards

Prithviraj

Answers (0)