I have followed the steps for creating a BOR in SWO1, creating the workflow template in SWDD and linking the event and workflow in SWETYPV.
I have tested it manually in SWUE and SWEL shows that the event is triggered. However, when I try to trigger it in from a report, I am unable to do so. My codes are:
<i> DATA: l_objkey TYPE sweinstcou-objkey.
l_objkey = '100019000011942007'.
CALL FUNCTION 'SWE_EVENT_CREATE'
objtype = 'ZFIPP'
objkey = l_objkey
event = 'CREATED'
CREATOR = ' '
TAKE_WORKITEM_REQUESTER = ' '
START_WITH_DELAY = ' '
START_RECFB_SYNCHRON = ' '
NO_COMMIT_FOR_QUEUE = ' '
DEBUG_FLAG = ' '
NO_LOGGING = ' '
OBJTYPE_NOT_FOUND = 1
OTHERS = 2
Did I miss anything? I have another question. Is there a difference between using receiver function SWW_WI_CREATE_VIA_EVENT and SWW_WI_CREATE_VIA_EVENT_IBF?