Entering content frameFunction documentation Definition of Events for Object Types Locate the document in its SAP Library structure

Use

You define events for an object type, if a status change in an object of this type is to be published across the system. Potential event receivers can then react to this event.

You use an event in a workflow under the following circumstances:

The workflow or task is started when the event is triggered.

The task is terminated when the event is triggered.

For more information, see Version-Dependent Basic Data of a Workflow.

The event is triggered (event creator) or the workflow is continued when the event is triggered (wait for event).

Note

The event is not normally triggered in the implementation program, but instead by an event creation. You can use the function modules SWE_EVENT_CREATE or SAP_WAPI_CREATE_EVENT to trigger an event.

Integration

Events are published without the creating application knowing whether a receiver reacts to them. The workflow system creates type linkages or instance linkages for potential receivers in the SAP Business Workflow/WebFlow environment. These are evaluated by the event manager. For more information, see Using Events.

Every event has an event container that contains data about the context of its creation. The data is passed to the task or workflow using a binding. For more information, see Binding Definitions from Event Container.

Prerequisites

Before creating a new event, check whether the event is already defined in an interface. If so, include this interface in the definition of your object type.

Activities

To create an event, position the cursor on the name Events (blue background), and select This graphic is explained in the accompanying text.

Assign an event instance, a name and a short description. Keep in mind the rules for naming object type components.

Note

The workflow system does not differentiate between uppercase and lowercase for event instance IDs.

Set the indicator Triggering object does not exist if the object has been deleted.

The workflow system elements are in the event container as standard. If the event container is to contain other container elements, you must define parameters for this event. For more information, see Definition of Event Parameters.

Leaving content frame