Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SM62 event log activation BTCEVTHISTORY-COUNTOFJOBS = 0

Former Member
0 Kudos

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

2 REPLIES 2

ThomasZloch
Active Contributor
0 Kudos

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

0 Kudos

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