Symptom
When creating a Code List Restriction, a field which has been created does not appear as an option in code to restrict.
Environment
SAP Cloud For Customer
Reproducing the Issue
- Create a New Code List Restriction.
- Select the desired BO.
- See that custom field 123 is not showing up as code to restrict in the dropdown list, only the standard field XYZ is visible.
- It is possible to see that both fields contain the same datatype.
Cause
Code list works on datatype not fields. It requires different fields to have different datatype to show on the code list restriction to be selected, if multiple fields of the same datatype exist only one will be displayed.
However, even if one field of the datatype is selected, it will be applied to all fields as they have the same datatype.
Resolution
This is the expected system behavior.
Keywords
Code List, PDI, CLR, Code to Restrict, C4C, Datatype. , KBA , LOD-LE-RC-CLR , Code List Restriction , Problem
SAP Knowledge Base Article - Public