Unit 4: Creating Events Flexibly
Use
You want a relationship between the Object Status Change (here: releasing a production order) and create a Follow-on Action (here: starting a workflow).
Before you define the workflow, you must make sure that an event is created if the status REL is set for the status object type ORH.
However, you must first ensure that an event is really created when the status REL is set for the object type ORH, that is, when the status change has taken effect on the object.
Prerequisites
You have defined the released1 event as an enhancement of the object type Z ini_2005. This object type was, in turn, created as a sub-type of the SAP object type BUS2005, as it is otherwise not possible to make changes to object types delivered by SAP.
This is the precondition for generating this event and using it as a triggering event.
Procedure
Event Creation During Status Change
The event released1 should be generated if the status REL is set.
-
Choose .
The Event creation status management dialog box appears.
-
Choose Customer Settings.
The View "Display Events for Status/User Status": Initial Screen is displayed.
-
Choose
to switch to change mode. -
Choose New Entries.
-
Enter the following data:
-
StatusOT: ORH
-
BusinessOT: Z ini _2005
-
Event: released1
-
-
Choose
. -
Select your entry and double-click on Status Restrictions to go to the associated view.
-
Choose New Entries.
-
Enter I0002 in the System Status field.
-
Choose
and exit status management.
Test the Event Creation
Test whether the events are created successfully.
-
Check whether the event trace is activated. Choose and switch on the event trace.
-
Create a production order and release it. The procedure for this is described in Unit 1: Testing Existing Application Functions.
-
Choose .
The screen Display Event Trace is displayed.
-
Restrict the selection by entering values in the Creation Date and Creation Time fields so that the event you created appears in the display.
The list contains the object type you created with the created event. No receiver is entered here.

