Creating a Rule

  1. In Customizing for Start of the navigation path Special Purpose Ledger Next navigation step , choose activity Next navigation step Logical Rules for Validation and Substitution. End of the navigation path For more information about creating logical rules, see the Implementation Guide (IMG) under Start of the navigation path Tools Next navigation step Maintain Validation/Substitution/Rules Next navigation step Logical Rules for Validation and Substitution Next navigation step . End of the navigation path

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.

  1. Choose Start of the navigation path Rule Next navigation step Create End of the navigation path .

  2. The Create Rule: New Rule screen appears.

  3. Enter the following data:

  4. - 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 Start of the navigation path Rule Next navigation step Copy End of the navigation path . Enter data as described in Step 3 above.

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

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

Choose

Function

Start of the navigation path Rule Next navigation step Save End of the navigation path

Save the rule definition

Start of the navigation path Extras Next navigation step Flds in Bool.statmnt End of the navigation path

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.

Start of the navigation path Extras Next navigation step Substitution flds... End of the navigation path

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

Start of the navigation path Extras Next navigation step Rule list End of the navigation path

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

Start of the navigation path Extras Next navigation step Set directory End of the navigation path

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

Start of the navigation path Extras Next navigation step Switch on trace End of the navigation path

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 .

Start of the navigation path Extras Next navigation step Switch off trace End of the navigation path

Switch off the tracing function

Start of the navigation path Extras Next navigation step Usage End of the navigation path

Display where the rule is currently used

Start of the navigation path Environment Next navigation step Maintain rules End of the navigation path

Jump back to call up point node

Result

You can now use the rule in:

  • A validation and/or substitution prerequisite or check

  • Another rule

  • Ledger selection

  • Rollups

  • Report Writer