SAP Knowledge Base Article - Public

2551503 - Error While Creating CDS View

Symptom

  • Field <Field ID 1> must be included in the selection list together with field <Field ID 2>
  • Example: Field _Mkt_Contact must be included in the selection list together with field I_MKT_INTERACTION.INTERACTIONCONTACT

Environment

SAP S/4HANA Cloud

Reproducing the Issue

  1. This error may appear when creating a new custom CDS view in the Custom CDS Views app
  2. The error will happen when selecting the fields for the data source

Cause

Some fields are dependent on other fields

Resolution

  • Add the second field listed in the error message as well before finishing with the creation wizard
  • For the example listed, I_MKT_INTERACTION.INTERACTIONCONTACT must be added to the field selection as well

Keywords

KBA , BC-SRV-APS-GKE , Generic CDS Key User Editor , Problem

Product

SAP S/4HANA Cloud 1708