Symptom
When trying to delete a key field of the primary data source in a custom CDS view, the "Delete" button is greyed out.
Environment
SAP S/4HANA Cloud
Cause
Key fields of the primary data source must be included in the view.
Resolution
- 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
Keywords
greyed, inactive, delete key field primary data source, disabled , KBA , BC-SRV-APS-GKE , Generic CDS Key User Editor , Problem
Product
SAP S/4HANA Cloud Public Edition all versions