03-12-2012 9:42 PM
Hi All,
We are triggering batch job based on events.
But many time whenever event happening in SAP batch job is not triggering.
So we activated SM62 event history logs. And we find out whenever BTCEVTHISTORY-COUNTOFJOBS = 1 (Background Processing Events: Number of Selected Jobs=1) is happening then batch job is successfully starting.
But when BTCEVTHISTORY-COUNTOFJOBS = 0 (Background Processing Events: Number of Selected Jobs=0) is happening then batch job is not generating.
can some one help in giving clue why Batch job is not generating for some cases, i.e. where to look for the clue in system?
Regards
03-12-2012 9:51 PM
Well, this count is giving you the number of jobs that were triggered by the event, so it's no surprise that for a count of 0 no jobs have started.
For these count 0 cases you should check carefully if there are really released jobs (not just planned!) that are waiting for this event, also check the additional event parameters, if you are using these at all.
Thomas
03-12-2012 9:54 PM
Hi Rohan,
You need to define a Batch Job in SM36 and have the name of the event registered after clicking on the "After Event" option in Start condition.
Make sure you click on the option "Periodic Job" when you define the batch job in SM36.
Once you have this setting in place, your event in SM64 should show you "Number of jobs" = 1.
Let me know how it goes.
Harpreet