on 10-30-2015 10:41 AM
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
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,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I believe you need have an event created for this.
Below links can give you soem idea..
https://scn.sap.com/thread/3303252
http://wiki.scn.sap.com/wiki/display/ABAP/Scheduling+background+job+by+triggering+an+event
Thanks,
Mofizur
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.