Skip to Content
0
Apr 14, 2010 at 05:28 PM

Batch job and Event trigger

2140 Views

I am using the standard SAP Event SAP_NEW_PROCESS_MESSAGE to trigger a batch job.

However, when 3 messages come in, 3 jobs are triggered with the other 2 being cancelled by SAP since only 1 should run to avoid the same message being processed by the same program and while this 1 job is running and additional messages come in, another set of batch job runs but is automatically cancelled by SAP.

How do i avoid having 3 jobs running at the same time given that I am using the event trigger to run the job?

In SM36, when you put the Start Condition, you can only put 1 condition and not 2 conditions(Event and no other job is running).

If someone can help me with setting it up.

if I need to create a program, how will it be set up and what table do i need to read?