5 Sending SAP Events Using ABAP Programs
Writing an RFC Module
The following is sample code that makes use of the
Z_EVENT_DISPATCH.
Listing 5-1 Sample Code With User-Defined RFC
FUNCTION Z_01_EVENT_DISPATCH.
CALL FUNCTION 'Z_EVENT_DISPATCH'
DESTINATION 'BEADEST'
EXPORTING
EVENT = EVENT
RECTYPE = RECTYPE
OBJTYPE = OBJTYPE
OBJKEY = OBJKEY
TABLES
EVENT_CONTAINER = EVENT_CONTAINER.
ENDFUNCTION.