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