SAP Knowledge Base Article - Public

2402227 - Code List Restriction Does not Work on Data List fields for Control Fields

Symptom

You have applied Code List Restrictions to a screen where control field is configured. But changes are not taking into affect. 

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."

Environment

SAP Cloud For Customer

Reproducing the Issue

  1. Go to Administrator workcenter > Code List Restrictions.
  2. Create a new rule.
  3. Select a Control Field of type DataList, and a Field to Restrict > Save.
  4. Go, for instance, to Customers workcenter.
  5. View Accounts > Edit any.
  6. Go to Products tab.
  7. You have creatad a rule where column A restricts column B.
  8. The restriction is not applied.

Cause

When the Control Field is of type DataList, then code list restrictions will not be applied.
To cross-check this information, you can go to UI Designer and select the mentioned field in DataModel tab.

Under Properties, see if the type is DataList. Do the same for the Parent node (in this case, Item)

datalist.png

Note: For Field to Restrict fields, this is not applicable. Even though Field to Restrict - Parent node is binded to Data list, code list will be applied.

Resolution

This is the current system behavior for Control Fields of type Data List.

See Also

KBA 3494762 - Extension Fields Configured Via PDI Solutions Do Not Appear in The Drop Down For Code-List Restrictions
KBA 3504495 - PDI Field Does Not Appear As Option In Code List for Code To restrict
KBA 3041128 - PDI Add-on Field is not Available for Code List Restrictions

Keywords

Code List Restriction; PDI; PDI field; , KBA , AP-RC-BDS-LM , ByDesign Studio Lifecycle Management , LOD-LE-RC-CLR , Code List Restriction , How To

Product

SAP Hybris Cloud for Customer add-ins 1705 ; SAP Hybris Cloud for Customer add-ins 1708