Creating a RuleIn Customizing for For more information about creating logical rules, see the Implementation Guide (IMG) under
The
Rule Maintenance
screen appears. In the Control area on the left, expand the node for the required application area. You can then expand the node for your required callup point.
Choose .
The
Create Rule: New Rule
screen appears.
Enter the following data:
- Rule name
- Rule description
- You can also enter an authorization group to limit the number of users that can process this rule.
To accept these entries, press
Enter
.
If you want to create a rule by copying an already existing one, choose the corresponding callup point in Control and mark the rule you want to use as a reference. Wait until both screen areas of the system are ready for entry, and then choose . Enter data as described in Step 3 above.
The rule must have the same Boolean class as the rule you are creating.
You can change a rule statement using the Formula Builder. The Formula Builder provides an easy-to-use interface for entering logical statements. Call up the Formula Builder either by selecting the
Rule definition
node in Control or by double-clicking the
Rule contents
in the right-hand screen area.
A rule is limited to 33 lines.
Entering a Statement using the Formula Builder
Define the Boolean statement. If you switch to the expert mode in the Formula Builder, you enter the statement using the new syntax rules.
For further information, see Syntax Rules for Boolean Statements and Formula Builder .
You can also enter a user exit (type 1 or 3) in the Boolean statement. For further information about user exits, see User Exits in Validations/Substitutions/Rules .
Return to the previous screen with F3 and save the rule.
If you still store your rules in table T890 (interpreted rules), we recommend that you use report RGUGBR10 to convert interpreted rules into generated rules. For more information, see Using the Rule Manager Reports .
You can use the following additional functions in this screen:
Additional Processing Functions Create Rule: <Rule Name> Screen Screen
Choose |
Function |
|
Save the rule definition |
|
Display a list of valid fields that you can use for the rule. These fields are determined based on the Boolean class of the rule. |
|
Display a list of valid fields that can be changed within a substitution |
|
Display a list of rules that use the same Boolean class as the rule |
|
List sets that have been created in your system. For more information, see Displaying a Set Directory . |
|
Switch on the tracing function. While posting a document, the system calls the rule and shows you which data is used. This function allows you to diagnose possible errors in the rule definition. For further information, see Tracing a Validation/Substitution/Rule . |
|
Switch off the tracing function |
|
Display where the rule is currently used |
|
Jump back to call up point node |
You can now use the rule in:
A validation and/or substitution prerequisite or check
Another rule
Ledger selection
Rollups
Report Writer