Creating a Rule 

  1. In Customizing for Special Purpose Ledger, choose Tools ® Maintain Validation/Substitution/Rules ® Maintain Logical Rules. For more information about creating logical rules, see the Implementation Guide (IMG) under Logical Rules for Validation and Substitution.
  2. 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.

  3. Choose Rule ® Create.
  4. The Create Rule: New Rule screen appears.

  5. Enter the following data:
  6. - 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, then choose Rule ® Copy. Enter data as described in Step 3 above.

    The rule must have the same Boolean class as the rule you are creating.

  7. 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

    1. Define the Boolean statement. If you switch to the expert mode in the Formula Builder, you enter the statement using the new syntax rules.
    2. 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.

    3. Return to the previous screen with F3 and save the rule.
    4.  

      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.

    5. You can use the following additional functions in this screen:

Additional Processing Functions Create Rule: <Rule Name> Screen

Choose

Function

Rule ® Save

Save the rule definition

Extras ® Flds in Bool.statmnt

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.

Extras ® Substitution flds...

Display a list of valid fields that can be changed within a substitution

Extras ® Rule list

Display a list of rules that use the same Boolean class as the rule

Extras ® Set directory

List sets that have been created in your system. For more information, see Displaying a Set Directory.

Extras ® Switch on trace

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.

Extras ® Switch off trace

Switch off the tracing function

Extras ® Usage

Display where the rule is currently used

Environment ® Maintain rules

Jump back to call up point node

 

Result

You can now use the rule in: