Key Fields of a Rule

Use

From a technical point of view, rules have at least the following key fields:

  • Event

  • Expression

  • Action

In some applications it is necessary to add other key fields. In this way you can prevent rules that make no sense in a certain context from being executed.

In the insurance solution SAP Claims Management, for example, the insurance line of business (such as life insurance, health insurance, P&C insurance) is an additional key field. This means that an event in a claim related to P&C insurance calls up different rules from the same event in a claim related to health insurance.

Adding Own Key Fields

The BRF supports the possibility of setting any number of parameters for rules.

However, if you want to add your own parameters, you must consider the following:

  • You are no longer able to use the corresponding BRF standard table (TBRF210).

    You therefore have to define a corresponding table yourself in the application.

    The following applies for this table:

    • You must define the table in a package of your application.

    • The table contains at least the key fields of the standard table TBRF210 as well as the other key fields that you define yourself.

    • The table contains all attributes of table TBRF210.

      Practice has shown that a cross-application rule table contains all fields of TBRF210 plus other key fields (such as the insurance line of business).

  • In your application, create a class that implements interface IF_DETERMINE_ASSIGNMENT_BRF.

    This class contains method DETERMINE_ASSIGNMENT.

    The method has the following effect:

    • It reads the rules from your application-specific table

    • It converts the rules to the format of standard table TBRF210

      When you implement your DETERMINE_ASSIGNMENT class, we recommend that you orient yourself on the delivered classes CL_DET_ASSIGNMNT_RL_BRF and CL_DET_ASSIGNMNT_RS_BRF.

  • Implement a maintenance class for your rules.

  • Create a new rule type in the BRF.