Maintaining the Assignment Between Status Change and Event 
The event that you want to create is defined as a component of an object type.
The key fields of this object type must be compatible (= domain same) with the key fields of the status object type whose status change is to cause the creation of an event. The relevant information is located in the system table TBO00, which is maintained and supplied by SAP.
This function is not available in a decoupled SAP system.
Make the following settings to create an event if a status change occurs:
Choose .
In the next dialog box, decide whether you want to implement the event creation by connecting to a system status (system settings) or a user status (customer settings). The basic procedure described below is not affected by this decision.
The screen View: Change "Event for...Status": Overview appears. If you are not in change mode, select .
Choose New Entries.
Enter a status object type in the field StatusOT.
Only for event creation using application status (customer setting): Enter the status schema for the application status in the Schema field.
In the field BusinessOT, enter the object type whose status change is to be indicated by the event created. Use the F4 input help.
Enter the ID of the event to be created in the field Event. The event must be defined for the specified object type. The name is taken automatically from the object type definition.
Note
The event entered is created upon each status change for this status object type.
If the event is not to be initiated for every status change but only for activation or deactivation of certain statuses, the view must be maintained for this status event.
In the view "Status restrictions", you can define the statuses of the status object type, which must be set for the event to be triggered. If you select the field Inactive, the event is triggered when the relevant status is reset.
Note
If you accessed maintenance of the assignment between status change and event via customer settings, you can enter either a system status or a user status (for the status profile in the first view) in each input line for the status restrictions.
You can also specify several status restrictions. In this way, you get an "AND" operation for the various restrictions.
You can get "OR" operations by defining several events for a status object type.
If you have catered for the creation of an event in the manner described above, you can use this event as a triggering event of a workflow or a task in the normal way.
In addition to other elements, the event container of the created event contains:
The reference to the changed object in the element _Evt_Object.
The reference to the user logged-on in the element _Evt_Creator.