Entering content frame

Procedure documentation Triggering Events from ABAP Programs Locate the document in its SAP Library structure

Use function module BP_EVENT_RAISE to trigger an event from an ABAP program.

Example

* Report processing before triggering event...
*
* Trigger event to start background jobs waiting for the event.
*
DATA: EVENTID LIKE TBTCJOB-EVENTID.
DATA: EVENTPARM LIKE TBTCJOB-EVENTPARM.

EVENTID = 'SP_TEST_EVENT'. " Event name must be defined
" with transaction SM62.

EVENTPARM = 'EVENT1'. " Optional: a job can be
" scheduled to wait for an
" EVENTID or combination of
" EVENTID and EVENTPARM.

CALL FUNCTION 'BP_EVENT_RAISE' " Event is triggered. Jobs
EXPORTING " waiting for event will be
EVENTID = EVENTID " started.
EVENTPARM = EVENTPARM
TARGET_INSTANCE = ‘ ‘ " Instance at which an event
" should be processed. Can
" generally be omitted.
EXCEPTIONS OTHERS = 1. " Exceptions include event not
" defined, no EVENTID
" exported, etc.

Leaving content frame