Symptom
Error will be seen while saving a custom CDS View: "Define one key field as representative key field"
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Create a new custom CDS view
- Define this to be Analytics (Dimension)
- At this point you will see the error: "Define one key field as representative key field"
Cause
For an analytic dimension CDS view, one representative key field must be defined
Resolution
- Pick one of the fileds, of field type "Field" and change it to be field type "Representative Key"
- There is a known issue where the field type automatically returns to type "Field", which is under investigation
See Also
Keywords
Automatic Automatically Dimension Analytics Analytical , KBA , no representative key , BC-SRV-APS-GKE , Generic CDS Key User Editor , Problem
Product
SAP S/4HANA Cloud 1802