SAP Knowledge Base Article - Public

2724148 - Mandatory and Visibility properties for extension fields

Symptom

You have set a rule for Mandatory property for an extension field. Result is true.

Now you want to set a rule for Visibility property, but the property is disabled.

Reproducing the Issue

  1. Go to any WC.
  2. In adaptation mode, go to any extension field.
  3. Set a mandatory rule for the field. The result should be true.
  4. End adaptation mode.
  5. Enter adaptation mode again.
  6. Check for field properties and the Visible checkbox will be disabled.
  7. Remove the rule for Mandatory property.
  8. End adaptation mode.
  9. Enter adaptation mode again.
  10. Check for field properties and the Visible checkbox will be enabled.

Cause

Mandatory and Visibility are mutually exclusive. Ideally we wont allow setting rules for both as one rule can say visibility false
and another rule can say mandatory is true. 
 
Due to this we disable rule option for visibility whenever the rule is assigned to mandatory and its returning true. 
But if you do the visibility rule first and then mandatory, it is possible to have rules in both.
 
Important: The rules should not end up in a deadlock scenario where mandatory is true and visibility is false.

Resolution

If you do the visibility rule first and then mandatory, it is possible to have rules in both.
 
Important: The rules should not end up in a deadlock scenario where mandatory is true and visibility is false.

Keywords

mandatory, visibility, field properties, extension fields, adaptation, field settings , KBA , BC-DWB-REP-EXT , Extensibility , Problem

Product

SAP Cloud for Customer add-ins 1808 ; SAP Cloud for Customer add-ins 1811 ; SAP Cloud for Customer add-ins 1902