Show TOC

 Rules for Utilities Products

 

Use

Rules can be used in the utilities product to dynamically model commercial requirements. Some examples of there usage are:

  • Checks

  • Derive values

  • Expand hierarchical products

Rules are technically epresented using BRFplus functions. For more information about using BRFplus, see the SAP Library for SAP NetWeaver Platform on SAP Help Portal at http://help.sap.com/nw731Information published on SAP site. In the SAP Library, choose Start of the navigation path Application Help Next navigation step Function-Oriented View Next navigation step Application Server Next navigation step Application Server ABAP Next navigation step Other Services Next navigation step Services for Application Developers Next navigation step Business Rule Framework plus (BRFplus) End of the navigation path.

Technical Characteristics

When a new rule is created, the system generates a BRFplus function in the respective compatible application.

In the standard system, a top expression that returns a result is expected for the function.

The following table explains the possible attributes:

Attribute

Description

Function Name

Technical name of the function

This cannot be modified and is defined as follows:

UT+Application usage_ Attribute name_Creation date

Example of possible entries for attribute ATTR1:

UTCV_ATTR1_01012013

Function Description

Description of the function

Default value is

Application usage + Product + Attribute

Top Expression

This defines whether a top expression is created.

Selection Options:

  • Without top expression

  • Decision table with context

  • Case (only for value determination)

  • Decision table with value copy

Application Name

Name of the application in which the new function is generated. For more information, see General Procedure for Using BRFplus.

Indicator Reusable

This indicates whether a function can be used for all products or for a specfic product only. The default value here is Reusable. A function without this indicator can only be used in a product and is also copied if this product is copied. Reusable functions are only referenced in the new product.

Note Note

During replication of utilities contracts, the system does not evaluate and execute any rules or functions during the download from the SAP ERP System to the SAP CRM System.

End of the note.

Working with Rules

  • Assign

    You can assign rules when you create a new product. If you want to use rules, you must assign these using the search function. Note that rules with the Reusable indicator can be used for all products.

  • Delete

    You use the Delete icon in the assignment group to delete the assignment of a rule to a product. If the actual rule is to be deleted, you can only do this from the BRFplus workbench.

    Note Note

    Before deleting rules, consider whether you can reuse them.

    End of the note.
  • Redefine

    Redefinition is supported for some rule types in conjunction with modeling components, such as the product module or reference product. This means that one of the rules inherited by a module can be replaced with a new local rule.

  • Activate and Save

    You cannot use a rule before you have saved and activated it.

  • Regenerate

    If you require additional context parameters following the initial generation of a new function, you can add these using the function Enhance Context. An example of this is a situation where an additional attribute is subsequently added to a product, and the current function is to respond to the value of this attribute.