SAP Function SAP_WAPI_CREATE_EVENT - Workflow interfaces: Create event

Parameter Reference Type Length Default Optional Text
COMMIT_WORK SWR_STRUCT-COMMITFLAG C 1 'X' X Do not trigger "Commit Work" at end
EVENT SWR_STRUCT-EVENT C 32 Event
EVENT_LANGUAGE SYST-LANGU C 1 SY-LANGU X Event language
IFS_XML_CONTAINER XSTRING y 0 X Event Container as XML Data Stream
LANGUAGE SYLANGU C 1 SY-LANGU X SAP System, Current Language
OBJECT_KEY SWR_STRUCT-OBJECT_KEY C 70 Business Object Repository object key
OBJECT_TYPE SWR_STRUCT-OBJECT_TYP C 10 Business Object Repository object type
USER SYUNAME C 12 SY-UNAME X ABAP System, User Logon Name

Parameter Reference Type Length Text
EVENT_ID SWR_STRUCT-EVENT_ID N 20 Event ID
RETURN_CODE SYST-SUBRC I 4 Return code (0 - 3, 999)

Parameter Reference Length Optional Text
INPUT_CONTAINER SWR_CONT 287 X Input container (name-value pairs)
MESSAGE_LINES SWR_MESSAG 274 X Message Lines
MESSAGE_STRUCT SWR_MSTRUC 224 X Message Structure

Functionality
An event is generated for a business object.
The object is identified using parameters OBJECT_TYPE andOBJECT_KEY .

Description
This export parameter specifies how many linkages exist for the eventtriggered.

Value range
0,,No receivers are entered for the event triggered
Numeric value n,,n receivers are entered for the event triggered
INCLUDE WF_FB_RETURN_CODE OBJECT DOKU ID TX

Value range
0,,Call successful. An event was created if a COMMIT WORK took place.You can ensure that a COMMIT WORK is triggered by assigning X to theparameter COMMIT_WORK.
1,,OBJECT_TYPE or EVENT parameters have invalid values
2,,The values assigned to the event parameters (table parametersCONTAINER) are incorrect
3,,The event creation failed
999,,An unknown error occurred

Description
You use this import parameter to control whether a COMMIT WORKis triggered at the end of the function module, making the event appearimmediately.

Value range
SPACE,,Do not trigger COMMIT WORK
X,,Trigger COMMIT WORK

Default
'X'

Description
The event to be created is entered in this import parameter.

Description
The event is triggered in this language. This language can be evaluatedby event receivers. A workflow started by the event can be run in thislanguage this way.

Value range
The possible logon languages.

Default
SY-LANGU

Description
The object key of the object for which an event is to be created ispassed in this import parameter.

Description
The object type of the object for which an event is to be created ispassed in this import parameter.

Description
This table contains the event parameter of the event.
INCLUDE WF_FB_CONTAINER OBJECT DOKU ID TX
INCLUDE WF_FB_MESSAGE_LINES OBJECT DOKU ID TX
INCLUDE WF_FB_MESSAGE_STRUCTURE OBJECT DOKU ID TX