Wednesday, October 05, 2005

[BW] Start data transfer into BW from OLTP -- 135637

SWELS --> switch event log
SWEL --> show event log
SM62 --> define event
FM BP_EVENT_RAISE --> raise event
raise event from os level --> sapevt


========================================================================
BW:
You can use the function module SWE_EVENT_CREATE to raise the event. This function module is RFC enabled.
OR create ur own FM
FUNCTION Z_BW_EVENT_RAISE. ( must be RFC enable )
*"----------------------------------------------------------------------
*"*"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'.

0 Comments:

Post a Comment

<< Home