SAP Knowledge Base Article - Public

3095949 - No option to delete elements from custom CDS view

Symptom

In Custom CDS Views app, when trying to delete an element the "delete" button is greyed out. 

Environment

  • SAP S/4HANA Cloud 

Reproducing the Issue

  1. Go to "Custom CDS View" app
  2. Open the CDS View to be edited
  3. Go to "Elements" tab
  4. Click on the checkbox of the element to be deleted
  5. Delete button is greyed out

Cause

The CDS View it's being used by a Custom Communication Scenario and it's not allowed to change the elements in a CDS View when it's in use by another object. 

Resolution

  1. In the Extensibility Inventory app search for the affected CDS view
  2. In the dependency tree look for any custom communication scenarios which are using the view
  3. In the Custom Communication Scenarios app remove the view from any scenarios which still use it
  4. Delete the fields from the CDS view
  5. (Optional) Re-add the view to the communication scenarios

Keywords

delete field element custom cds view grey gray disabled communication scenario dependency used by can't delete element unable to remove dimension  , KBA , BC-SRV-APS-GKE , Generic CDS Key User Editor , Problem

Product

SAP S/4HANA Cloud all versions