Entering content frameThis graphic is explained in the accompanying text Example: Definition of a Simple Set of Rules Locate the document in its SAP Library structure

You want to define a set of rules that assigns the characteristic R phrases of the value assignment type Labeling with the R phrase R10 (Flammable) for substances with a flash point between 21 and 55°C. The value assignment type flash point is only to contain one data record, or in other words, assigned a single value.

Procedure

  1. Start the rule editor and create a new rule (see Using the Rule Editor).
  2. Under Description enter a description for the rule, for example, Derivation of R phrase from flash point .
  3. In the Condition field, enter the first part of the condition: 21 < .
  4. From the overview tree choose the characteristic Value from the value assignment type Flash point and assign it to the Condition (IF) field using drag & drop.
  5. 21 < FLASH_POINT_VAL is now in the Condition (IF) field.

  6. Add to the condition in the Condition field so that it reads 21 < FLASH_POINT_VAL, FLASH_POINT_VAL < 55 .
  7. From the overview tree choose the characteristic R phrases from the value assignment type Labeling and assign it to the Left Expr. field using drag & drop.
  8. The internal fact key LAB_R_PHRAS appears in the Left Expr. field and the system automatically adds the operator := to the ToDo field.

  9. From the overview tree choose the phrase Flammable under the characteristic R phrases from the value assignment type Labeling and assign it to the Right Expr. field using drag & drop.
  10. The internal phrase key "[#R10#]" appears in the Right Expr. field.

  11. Save the set of rules.

Result

See Using the Rule Editor.

The rule file (<name>.rul) has the following structure:

FACTS

 

LAB_R_PHRAS(OUT),

 

FLASH_POINT_VAL(IN),

;Rules

RULES

 

RULE NEWRULE1

   

DESCRIBE "Derivation of R phrase from flash point"

 

IF 21 < FLASH_POINT_VAL, FLASH_POINT_VAL < 55

 

THEN

 

LAB_R_PHRAS := "[#R10#]"

 

END

END

 

 

Leaving content frame