Definition
You can use rules with the value determination
type to model a context-dependent value determination.. We recommend using a corresponding rule for dependencies with one or more different configuration attributes.
We recommend using the field Standard Value for Attribute
for standard values, which are values without dependencies..
The following table contains an overview of the characteristics of dynamic value determination using BRFplus:
Application usage |
CD = Dynamic value determination |
Reference object / cardinality |
Attribute / 1:n |
Versioned |
Yes |
Redefinition |
Yes |
Implementation class |
CL_CRM_ISU_BRF_APPL_USAGE_CD |
Inbound parameter |
Variable according to the context generated |
Return value |
A value for attribute evaluation |
Expression Type for Function: Decision Table
The following example only refers to the decision table
expression type. Generate an entry in the decision table for every admissible value to ensure that the BRF application returns the required result:
Column |
Description |
Possible Entries |
Data Element |
Comment |
---|---|---|---|---|
Condition |
||||
Such as attribute X |
Attribute used as the basis for defining the field value |
|||
Boolean expression |
Applies or does not apply |
|||
Result |
||||
ISURSLT |
Return field value |
Type-related to define the configuration parameter |
Note
At runtime, the system processes the decision table again if the value of a context attribute in the condition columns in the decision table has changed.
Example
The product offers two durations of six or twelve months and the option of a price guarantee.
If you choose the price guarantee, you can only choose a twelve month duration.
The system creates a new rule for the attribute Duration
. The Price Guarantee
attribute is used as a context-dependent input parameter here. The decision table contains the following values in the example shown here:
Condition - Price guarantee |
Result – Runtime |
---|---|
' ' (Option not selected) |
6 |
'X' (Option selected) |
12 |