Register Login

How to create and/or trigger events?

Updated May 18, 2018

BP_RAISE_EVENT

There are only 3 ways you can trigger an event

1) Run transaction SM64

2) Call the function BP_RAISE_EVENT from within a program.

3) Run the program "sapevt" at OS level

You can Create an Event in the SM62 but you need to raise this event in a program using the function BP_RAISE_EVENT.

The following example may help:

  • eventid = 'ZYPAYEVNT'.(name of the event)
  • eventparm = 'SUCCESS'.(identification of the event)
FORM RAISE_EVNT.

CALL FUNCTION 'BP_EVENT_RAISE'
EXPORTING
EVENTID = EVENTID
EVENTPARM = EVENTPARM
TARGET_INSTANCE = ' '
EXCEPTIONS
BAD_EVENTID = 1.

ENDFORM. " RAISE_EVNT

Once an event is created, you can schedule background jobs to wait for the event to be triggered. Syntax and arguments passed to the sapevt program can be found in the SAP documentation.


Comments

  • 29 Dec 2012 5:10 pm Guest
    Hello , i am new to SAP systems with Java Language.
    I need help for starting a workflow in sap using java language specially how to pass the TASK parameter like WS97xxxxx…
  • 13 Oct 2017 11:37 am Guest

    can we reuse this event several times ?


×