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: 

Program that triggers a job event

former_member799700
Discoverer
0 Kudos
518

Hi,

i have a job that is triggered by an event in sm37.

I want to know which program/process that triggers this event.

Regards,

Carl

1 REPLY 1

Jeansy
Active Contributor
0 Kudos
384

Hi Carl,

these job-events are typically triggered by using the function module BP_EVENT_RAISE.

Here you can find some more details:
https://wiki.scn.sap.com/wiki/display/ABAP/Scheduling+background+job+by+triggering+an+event

CALL FUNCTION 'BP_EVENT_RAISE'
EXPORTING
eventid = 'Z_EVENT'
EXCEPTIONS
BAD_EVENTID = 1
EVENTID_DOES_NOT_EXIST = 2
EVENTID_MISSING = 3
RAISE_FAILED = 4
OTHERS = 5.

Maybe you can find the calling routine for your specific event via the where-used-list of this function module?

If this related to a Z-event, the ABAP-Source-Scan could also help to find the name of the event somewhere in the ABAP-coding. For this you could use the report RS_ABAP_SOURCE_SCAN via SE38.

Kind regards
Jens