Symptom
Getting the error "XXXX exposes non-customer CDS view. This is not allowed for OData scenario" when publish the custom CDS view
Environment
SAP S/4HANA Cloud Public Edition 1808
Reproducing the Issue
- Create a CDS view in the Custom CDS View app
- Select some association type fields
- Activate the OData API then publish the CDS view
Cause
For stability reasons it is not allowed to expose associations to SAP VDM views in the field list of a view you want to use as External API.
Resolution
- Go to the Field Selection Tab
- Unselect all the association type fields
- Publish the custom CDS view
See Also
2540696 - Custom CDS Views – Content Rules
Keywords
exposes, non-customer, CDS view, This is not allowed for OData scenario , KBA , BC-SRV-APS-GKE , Generic CDS Key User Editor , Problem
Product
SAP S/4HANA Cloud 1808