Rule Set 
A rule set consists of several rules that define how the event messages for a particular event handler are processed and evaluated. SAP Event Management (SAP EM) assigns the rule set that belongs to the event handler type when creating an event handler .
SAP EM processes event messages with the rule set that were set for an event handler.
You can use a rule in the rule set to call the expected events that you have defined.
You can use rule sets to specify that SAP EM is to process event messages in a different way. You can define a particular rule set for each event handler type, with each rule set triggering a different reaction from SAP EM to the same event message.
Example
For example, you want SAP EM to react differently to service provider delays, since your service providers have various levels of reliability. To do this, you have defined an event handler type for service provider A and one for service provider B. The rule set for event handler type A plans the shipment start and shipment end, reported by your service provider, and the proof of delivery, reported by the customer, as expected events. Your service provider B is more reliable. You specify only the shipment start and proof of delivery by the customer as expected events for event handler type B.
A rule set consists of a set of rules that SAP EM evaluates when processing event messages. The individual rule consists of a rule condition and a rule activity that SAP EM executes based on the result of this evaluation.
The following figure provides an overview of a rule set structure:
( )
If the evaluation of the rule condition returns “TRUE”, SAP EM calls the activity defined for the relevant condition.
The rule activity consists of one (single-task activity) or more (multitask activity) tasks that trigger EM activities (for example, sending an e-mail).
The single-task activity can be an event handler method, a function module, or a multitask activity.
Processing in the rule set then branches to the TRUE or FALSE rule, depending on the condition evaluation. If you have not defined a value for the condition evaluation, SAP EM executes the next rule.
You can call several rule conditions within a rule by grouping several rule conditions in a set, which you call in the rule condition of the rule.
The following figure provides a detailed overview of a rule set structure:
( )
You can call a BAPI within a function module, and thereby trigger activities in a remote system. For example, after the customer has completed the proof of delivery, you can have the system update the delivery document in your application system.