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
- Go to Administrator workcenter > Code List Restrictions.
- Create a new rule.
- Select a Control Field of type DataList, and a Field to Restrict > Save.
- Go, for instance, to Customers workcenter.
- View Accounts > Edit any.
- Go to Products tab.
- You have creatad a rule where column A restricts column B.
- 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)
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