Example: Creating a Criteria
Hierarchy
You want event history to log all events with event name MY_EVENT_1 and an event argument greater than 123, as well as all events with an event name starting with ABC and an event argument equal to 123.
This procedure tells you how to create the necessary criteria hierarchy. It contains two composite criteria. Each of the two criteria contains a pair of conditions: one for the event name and another for the event argument. The two criteria are related with an OR relationship.
A blank criteria profile exists.
1. In Event History (transaction SM62), choose the Criteria tab.
2. In the Criterion Profiles list, double-click the profile.
3. In the criteria hierarchy of the profile, choose the default AND node.
4. Choose OR.
5. Choose the OR node you inserted, and then choose Criterion.
The Event History: Profiles and Criteria screen opens.
6. Define conditions for the criterion:
a. In the Description field, enter Criterion 1.
b. In the EVENTID field, enter MY_EVENT_1.
The condition for the event name is defined.
c.
On the right-hand
side of the EVENTPARM field, choose
with the quick info text Multiple selection.
d.
On the Select the criteria for field EVENTPARM screen, choose
with the quick info text Maintain Selection Options.
e.
Choose greater than
(
), and then choose Continue.
f. Enter 123.
g.
Choose
with the quick info text Copy.
The condition for the event argument is defined.
h.
Choose
with the quick info text Create.
Criterion 1 is created.
7. In the criteria hierarchy of the profile, choose the OR node, and then choose Criterion.
8. The Event History: Profiles and Criteria screen opens.
9. Define conditions for the criterion:
a. In the Description field, enter Criterion 2.
b. In the EVENTID field, enter ABC*.
The condition for the event name is defined.
c. In the EVENTPARM field, enter 123.
The condition for the event argument is defined.
d.
Choose
with the quick info text Create.
Criterion 2 is created.
The criteria hierarchy is created and looks as follows:
AND OR Criterion 1 [EVENTID=MY_EVENT_1] [EVENTPARM>123] Criterion 2 [EVENTPARM=ABC*] [EVENTPARM=123] |