Symptom
When trying to delete a Custom CDS View, error "Custom CDS View XXX is currently in use and therefore cannot be deleted" occurs.
Environment
SAP S/4HANA Cloud
Reproducing the Issue
- Go to Custom CDS Views app.
- Select the Custom CDS View which needs to be deleted.
- Click on "Delete" button.
- Error message is triggered.
Cause
The Custom CDS View has dependencies that need to be handled before deleting the view.
Resolution
Remove the dependencies of the Custom CDS View before deleting it.
See Also
KBA 2997519 - Not possible to delete elements inside a Custom CDS View
Keywords
custom CDS views, delete, remove, used, dependencies, dependent, items, views , KBA , BC-SRV-APS-GKE , Generic CDS Key User Editor , Problem
Product
SAP S/4HANA Cloud Public Edition all versions