SAP Knowledge Base Article - Public

3357708 - Unable to delete key field for primary data source in custom CDS view - S/4HANA Cloud


When trying to delete a key field for the primary data source in a custom CDS view the "Delete" option is greyed out




Key fields of the primary data source must be included in the view


  • Elements of a custom CDS views can only be removed if they are not used.
  • Key fields are an exception, as they can usually not be removed at all due to stability reasons.
  • Optional the fields can be hidden in the consumption (this is an option in the element properties).
  • Hiding a field will make it invisible in the final consumption runtime (e.g. in an an analytical query or in an odata service).
  • Setting the hidden property will write the @Consumption.hidden annotation to the element.

See Also

Element Properties | SAP Help Portal


grayed inactive can't cannot unable to delete key field primary data source disabled , KBA , BC-SRV-APS-GKE , Generic CDS Key User Editor , Problem


SAP S/4HANA Cloud all versions