Skip to Content
0

SAP Background Events SM64 - check related code

Jun 15, 2017 at 09:40 AM

91

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Raymond Giuseppi
Jun 15, 2017 at 11:23 AM
1

"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.


Show 3 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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.

0

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".

1
Former Member

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

run-sapevt.png (12.0 kB)
0
Kiran K Jun 16, 2017 at 10:35 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded