Rule Set
Definition
Grouping of rules that belong together from a business point of view, and that are distributed over several events.
Use
You can use rule sets to map simple units of a similar subject matter, enabling you to manage rules more easily. For example, you can jointly activate or deactivate the rules of a rule set.
SAP provides rule set type 1RULESET in the standard delivery. This is in the application class SYSTEM.
Structure
Rule Set Type
The BRF has the following rule set types:
-
Normal rule set
Such a rule set contains rules that are processed in the application at runtime. The rules are visible to the BRF.
Use this type in most cases.
-
Rule pool
Such a rule set contains rules that are relevant for a certain BOR object type. These rules are not visible to the BRF at runtime. The application decides how it uses these rules.
-
Enhanced rule pool
Such a rule set behaves like a 'rule pool'. In addition, the following details are considered:
-
Gate expression
-
Switch for whether the rule set is switched on or off
-
Switching On/Off Rule Sets
For more information, see Switching On/Off Rule Sets.
Gate Expression
You can define a gate expression for a rule set. If the rule set is active, you can use the gate expression to control whether the rule set should be applied. You can define another gate expression for the individual rules in a rule set.
Rules of a Rule Set
A rule set comprises several rules that belong together from a business point of view. For more information, see Creating Rules for a Rule Set.
Adding Own Key Fields
In addition to those key fields specified by SAP, you can add your own. The procedure is much the same as with rules. For more information, see Key Fields of a Rule, section 'Adding Own Key Fields'.
Example
The following describes a possible rule set for invoice verification:
A rule set 'Check Invoice' comprises all rules that are relevant for invoice verification, in other words:
-
Rules that refer to the invoice header (event 'Check Invoice Header' in the context 'Invoice Header')
-
Rules that refer to an invoice item (event 'Check Invoice Item' in the context 'Invoice Item')
In a rule set you can manage all rules for invoice verification.