Skip to Content
0
Oct 22, 2013 at 02:23 PM

Issue raising event from Program

48 Views

Hello Gurus

I need to trigger a process chain based on an event. I have created the event in SM64 and added the event in the Process Chain. I am using FM 'BP_EVENT_RAISE' to raise the event.

The program is to simply to trigger the event.

CALL FUNCTION 'BP_EVENT_RAISE'

EXPORTING

EVENTID = 'ZEVENT'

* EVENTPARM =

* TARGET_INSTANCE = ' '

* TARGET_MODE = ' '

* EXCEPTIONS

* BAD_EVENTID = 1

* EVENTID_DOES_NOT_EXIST = 2

* EVENTID_MISSING = 3

* RAISE_FAILED = 4

* OTHERS = 5

.

IF SY-SUBRC EQ 0.

WRITE : 'Success'.

ENDIF.

I am not getting any error while executing but, the process chain is not triggering.

I have referred to materials which are available online. All the papers say , to use the FM and It will trigger the PC which is not happening.

Is there anything I am missing. Please advice.

Thank you for your time.

Prasanna G