Showing results for 
Search instead for 
Did you mean: 

Running Customized Batch Jobs

Former Member
0 Kudos

We currently have batch jobs that are running hourly. Theste jobs processes IDOCs that are in the queue. Sometimes the job runs for more than an hour causing a concurrrent session to be running at the same time which cause issues.

I was wondering if there was a way to set up the job so it will postpone the job if there is a current job running already.

I know of other external applications like Autosys or Tidal that can do it but I was wondering if there is anything in SAP.

Thanks for the help in advance

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos


while schedule your job, on start condition define your job is running after job instead of defining periodic job. you need to define predacessor job name (job before your current job).

hope it help you,


Alfonsus Guritno

Former Member
0 Kudos

The reason why we need to do this is because we don't want the job running at the same time trying to process the same IDOCs which may cause inconsistencies. So we were wondering if there was an option some where that will:

-run a batch job hourly,

-if batch job is still running, hold the next batch job and run during the next available hour.

-and have this run periodically.

Another reason is we only have 8 background processes - "limited resources". if multiple instances of same job start every hour due to large number of IDOCs, other jobs will have to wait.

your replies are much appreciated.


Active Contributor
0 Kudos

I don't think there is such functionality but you can trigger jobs after events so you can guarantee they don't run in parallel but in serial. You can also change the job periodicity.

In the other hand what is the problem with 2 jobs running at the same time?..