SAP Knowledge Base Article - Public

2628104 - Error Saving Custom CDS View

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

  1. Create a new custom CDS view
  2. Define this to be Analytics (Dimension)
  3. 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

Keys and Representative Key Fields

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