Below is the FM i have used to create event ,
CALL FUNCTION 'SWE_EVENT_CREATE'
objtype = 'ZIMSEC_SPE'
objkey = LS_OBJKEY " Requition ID
event = 'ZSUBMIT'
EVENT_ID = IT_EVENT_ID
EVENT_CONTAINER = IT_CONT
OBJTYPE_NOT_FOUND = 1
OTHERS = 2.
IF sy-subrc <> 0.
IF IT_EVENT_ID IS NOT INITIAL.
The value in LS_OBJKEY is the unique ID ...request ID in my case ....
Problem: The Workitem is not getting removed from my SAP INBOX.
Kindly share ur comments .