cancel
Showing results for 
Search instead for 
Did you mean: 

Background Job Scheduling

0 Kudos

Hi All,

We have a batch job scheduled (SM36) to run every 15 mins to run a report (which process orders & create subsequent docs based on that orders).

At certain times, the number of entries are very high & at such times, 15 mins is not enough to process the orders.

In those cases, the next scheduled background job starts after 15 mins & starts processing the same orders which are not processed yet, but which is also in the queue of the previous batch job .. hence it results in the duplication of subsequent orders.

So basically we need to put a condition in our scheduled batch job to start only when its previous instance is completed. how it can be achieved?

Thanks,

Deepan

Accepted Solutions (0)

Answers (4)

Answers (4)

jan-erik_lovlie2
Explorer
0 Kudos

Hello Deepan,

If you haven't already, you might consider an external job scheduler.

This site lists job schedulers that interface with SAP:

List of job scheduler software - Wikipedia, the free encyclopedia

I know of at least one that is capable of running a job every15 minutes and skipping if the previous run is still active.

Hopefully that helps you find a solution.

Regards,

former_member182307
Contributor
0 Kudos

Hello,

You can use these standard reports to do so :

RSBTONEJOB / RSBTONEJOB2



You can find a description of how these reports work in SAP note :


557610 - CUA: Lock problem with serial IDOC processing


HTH,

Best regards,

Steve.



Former Member
0 Kudos

Hello Deepan.

Create a variant is the best option. so that event gets triggered when ever any job to start.

On the other hand you can take the help from ABAP team to create a new variant to limit the no of entries can be selected from the table remaining entries will be picked in the next run. but it may end up with performance issues with the job or delay in loading the data.

Thanks Regards,

Avinash I

Mofizur
Contributor
0 Kudos