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: 

SAP Background Events SM64 - check related code

Former Member
0 Kudos

Dear Gurus,

I would like to troubleshoot an Event in SAP which can be viewed using SM64. We have an Event Triggered Job.

It should behave like this (Earlier it was working fine) - As soon as a file is received from External System (Application Server Folder), this job gets triggered.

Automatic Event is not being triggered now. If I execute / trigger it manually using SM64, the job is working. Otherwise, it is not.

Please help me in suggesting some relevant tcodes to troubleshoot this Background Event issue. I want to view the code inside this Custom created Event. Is it possible?

How does an Event gets triggered other than SM64 manual method?

Awaiting your valuable inputs. Thanks in advance!

Thanks & Regards,

Sowmya

5 REPLIES 5

raymond_giuseppi
Active Contributor

"Some program" called a FM like BP_EVENT_RAISE or a method like CL_BATCH_EVENT=>RAISE. The code may be triggered by external program using an interface like RFC or at server level.


0 Kudos

Thanks Raymond. But what is the tcode to view the relevant code of a Custom Event created. Will there be any code written inside this event? I'm able to see the Event name (Z*****EVENT) in SM64, but not able to find out the details of it.

AFAIK there is no such transaction, creation an event with SM64 doesn't create any program. So use some source scan on SAP but also on interface tool in server.

For old version, some server side report may use an API to trigger event on SAP like in following sample from an Unix script:

sapevt abap_event -t pf=/usr/sap/<SID>/SYS/profile/<SID>_DVEBMGS00_<SYSNAME> nr=00

For recent version, you should look for an ICF service or a RFC call.

If you recently upgraded, look for OSS notes available with keyword like "SAPEVT".

0 Kudos

Thank you so much Raymond. I will look for some Notes. We have some Unix Script which is calling this Event. I have attached the screenshot of it.

Hope this script would be having issue.

If I run the Event via SM64 manually, then the Event scheduled job is triggering. But not automatically.

Thanks & Regards,

Sowmya

kiran_k8
Active Contributor
0 Kudos

Sowmya,

Additional info which can be handy in the future.

You can

1.Search using EWK1 with the keyword FM BP_EVENT_RAISE or CL_BATCH_EVENT=>RAISE in all Z* programs

2.Check the table BPCEVTJOB to see which event is linked to which JOB.

As you know the EVENT name and JOB name, option 1 will get you the list of programs and then you can narrow down the right program by going through each of the programs.

K.Kiran.