Event Message Processing 
By processing event messages in SAP Event Management (SAP EM) you can:
Process the data contained in the event message in a standardized way
Monitor overdue event messages
Compare planned and actual event data to evaluate the event messages
Use the appropriate rule set to trigger follow-up activities in response to event messages
Retrieve current information on the business objects and processes that have been determined to be relevant to supply chain event management
You have set up Customizing for SAP EM. You have also defined the following, in particular:
Internal, and where appropriate, external event codes
To do so, in Customizing for SAP EM, choose Event Managemen t→ Event Handlers and Event Handler Data → Codes → Event Codes.
An appropriate rule set for the event handler with its respective rules and the conditions and activities for these individual rules
To do so, in Customizing for SAP EM, choose Event Management → Reactions to Event Messages → Define Rule Sets .
A suitable event handler should also be available for the event message in SAP EM.
If you want SAP EM to process event messages for inactive event handlers too, you can define criteria for forwarding event messages to inactive event handlers and for processing event messages by inactive event handlers.
For more information about processing event messages for inactive event handlers, see the Implementation Guide (IMG) for SAP EM under Event Management → Event Messages, Status Queries, and Web Interface → Define Criteria for Event Message Processing.
If you want to log changes to data relevant to event handlers, you have defined the relevant indicator with the corresponding level of detail. For more information, see the IMG for SAP EM under Event Management → Event Handlers and Event Handler Data → Event Handlers → Define Event Handler Types.
Either you or the system reports an event (for example, service provider delay or proof of delivery by the customer).
The event message is transferred to SAP EM using the application interface.
If errors occur during processing, SAP EM writes them into the event message processing error list .
SAP EM prepares the event message for further processing. After receiving the event message, SAP EM saves it in a database.
See also: Inbound Event Message Processing .
SAP EM checks if the syntax of the event message is valid and uses the mapping definitions to convert all coded data values such as the event codes and location codes into the internal code format.
SAP EM checks if the event message is an expected event. The following prerequisites must be fulfilled for this to be possible:
This event message must agree with the internal event code.
The location and partner specified in the event message must agree with those for the expected event in SAP EM.

This is only necessary if you have set the match indicator for location and partner entries in the expected event profile.
The check enables SAP EM to judge whether:
The event message that you are sending meets the rules defined.
The event takes places in the defined period of time and the event is reported in the defined period of time.
The event reaches the quality required.
For more information, see Evaluation in the Rule Set .
SAP EM uses the tracking ID to assign one or more corresponding event handlers to the event message.
SAP EM applies the rule set that belongs to the event handler and executes the corresponding activities. When SAP EM executes an activity in the rule set that changes control parameters, for example, SAP EM updates change documents as appropriate.
A background process runs in SAP EM that checks expected events. If partners are supposed to report expected events within a certain period of time and they do not do this, these events are overdue. If the background process discovers an overdue event, it calls the relevant rule set for the event handler and reacts in accordance with the rules defined in the rule set (see also Expected Event Monitor ).