Skip to Content
avatar image
Former Member

Background Job Scheduling

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Oct 30, 2015 at 11:38 AM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 30, 2015 at 12:24 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 30, 2015 at 01:45 PM

    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.



    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 13, 2015 at 07:33 PM

    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,

    Add comment
    10|10000 characters needed characters exceeded