SAP Function SWW_WI_COMP_EVENT_RECEIVE - Complete Work Item Using Event

Parameter Reference Type Length Default Optional Text
EVENT SWETYPECOU-EVENT C 32 Name of Event
EXCEPTIONS_ALLOWED SWEFLAGS-EXC_OK C 1 'X' X Indicator Showing Whether FM Can Raise Exceptions
OBJKEY SWEINSTCOU-OBJKEY C 70 Key of Triggering Object
OBJTYPE SWETYPECOU-OBJTYPE C 10 Type of Triggering Object
RECTYPE SWETYPECOU-RECTYPE C 14 Type of Receiving Object

Parameter Reference Type Length Text
REC_ID SWELOG-RECID C 90 Key of Receiving Object

Parameter Reference Length Optional Text
EVENT_CONTAINER SWCONT 297 Event Container

Exception Text
INVALID_TYPE Completion Via Event Not Allowed for this Type
TEMP_ERROR Temporary Error (Enqueue, ...)
UPDATE_FAILED Update of Work Item Failed

Functionality
This function module processes an incoming event, for which there is aninstance linkage with the receiver type WORKITEM. An instancelinkage of this type is created by the workflow system for work itemsthat are completed with a terminating event. A callback may be made tothe superordinate workflow.

Notes
If the work item has status WAITING, ERROR, COMMITTED
, COMPLETED or CANCELLED , there is no response and noexception is triggered. Processing occurs if the work item is inresubmissions.
INCLUDE WF_FB_EVENT_OBJECTKEY OBJECT DOKU ID TX
INCLUDE WF_FB_EVENT_OBJECT OBJECT DOKU ID TX

Description
This receiver function module can only be used for instance linkageswith the receiver type WORKITEM.
INCLUDE WF_FB_EVENT_EVENTCONTAINER OBJECT DOKU ID TX