Fonction SAP SWE_EVENT_CREATE - Generate an event (public)

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CREATOR SWHACTOR u 14 SPACE X Event creator
DEBUG_FLAG SWEFLAGS-DEBUGFLAG C 1 SPACE X Flag for debugging in receiver FM
EVENT SWETYPECOU-EVENT C 32 Name of Event
IDENT SWEDUMEVID-EVTID N 20 X ID of event (only if previously in queue)
NO_COMMIT_FOR_QUEUE SWEFLAGS-COMMITFLAG C 1 SPACE X Entry in event queue without explicit COMMIT
NO_LOGGING SWEFLAGS-LOGFLAG C 1 SPACE X Flag for no logging
OBJKEY SWEINSTCOU-OBJKEY C 70 ID (key) of triggering object
OBJTYPE SWETYPECOU-OBJTYPE C 10 Type of triggering object
START_RECFB_SYNCHRON SWEFLAGS-SYNCFLAG C 1 SPACE X Flag for synchronous call to receiver FM
START_WITH_DELAY SWEFLAGS-DELAYFLAG C 1 SPACE X Flag for delayed start of aRFC
TAKE_WORKITEM_REQUESTER SWEFLAGS-WIREQFLAG C 1 SPACE X Flag for using last WI as requester

Paramètre Reférence Type Long. Description
EVENT_ID SWEDUMEVID-EVTID N 20 ID of triggered event
RECEIVER_COUNT SWEDUMEVID-EVTID N 20 ID of an event instance

Paramètre Reférence Long. Facultatif Description
EVENT_CONTAINER SWCONT 297 X Data container of event

Exception Description
OBJTYPE_NOT_FOUND Triggering object type not found

Functionality
This function module triggers an event for a business object. The eventmust defined in the corresponding object type.

Notes
The triggering of an event documents a change to the status of anobject. The change to the status should be executed on the databasebefore the corresponding event is triggered.
If an event is triggered before the database change, then the eventreceivers that are registered there are also started. However, if anevent receiver uses start conditions (for example, in the form of acheck function module) that access the object attributes, then this canlead to incorrect results since outdated or obsolete values need to beaccessed.

547893FAQ Workflow, definition