
A rule is a logical statement that you can use in a prerequisite statement, check, or another rule.
A rule permits complex logic to be summarized and can be reused. Technically, a rule is nothing more than a prerequisite or the check of a validation.
If a boolean statement is used often, or if it contains complex logic, you can create a rule for it. For example, a validation that contains an extensive prerequisite that is also used in a substitution, as in the rule RULE1 AND BKPF-BLART <> ‘G/L Account Posting’.
Here, the name of the rule is RULE1. When the system processes this statement, it first processes RULE1, and then checks whether the document type is not ‘G/L Account Posting’. The name of a rule can be a maximum of 11 characters long.
Rule in a Matrix Validation

You can also use rules within a statement that uses mathematical processing.
For example: RULE1 AND BKPF-BLART <> ’SB’.
In this example, the rule is named RULE1. When the system processes this statement, it first processes RULE1 and then checks whether the document type is not SB. The rule name can be a maximum of 11 characters long.

