Friday, May 26, 2006

[BW] RFC enabled Event raise

SM62 - Maintain event
SM64 - trigger event
SM61 - event trace
============================================
BW:

FUNCTION Z_BW_EVENT_RAISE.
*"----------------------------------------------------------------------
*"*"Interface local:
*" IMPORTING
*" VALUE(EVENTID) LIKE TBTCO-EVENTID
*"----------------------------------------------------------------------

call function 'BP_EVENT_RAISE'
exporting
eventid = eventid
exceptions
bad_eventid = 1
eventid_does_not_exist = 2
eventid_missing = 3
raise_failed = 4
others = 5.

ENDFUNCTION.

R3:

REPORT ZBW_EVENT_RAISE .

call function 'Z_BW_EVENT_RAISE'
destination 'BW1001'
exporting
eventid = 'SAP_BW_TRIGGER_HR'.