2497127 - Rules Are Not Working for Extension Fields

SAP Knowledge Base Article - Public

2497127 - Rules Are Not Working for Extension Fields

Symptom

You try to create a rule for an extension field that depends of other field to be Mandatory/Visible/Read Only or not.

Reproducing the Issue

  1. Click on Adapt
  2. Select Edit Mater Layout
  3. Find the respective field
  4. Select Change Properties of the field
  5. Click on Rule

Cause

Once you are using a rule for set this field as Mandatory/Visible/Read Only or not, is not necessary check the box of Mandatory/Visible/Read Only option.

Resolution

You can use the condition below for example and uncheck the Mandatory/Visible/Read Only option for the field.

IF logical_expression, value_if_true, value_if_false)

For example:

IF(Root.CountryCode == 'US', false, true)

Keywords

KBA , SRD-CC , Cross Components , How To

Product

SAP Hybris Cloud for Customer all versions