SAP Knowledge Base Article - Public

2684405 - Getting the error "XXXX exposes non-customer CDS view. This is not allowed for OData scenario" when publish the custom CDS view

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 1808

Reproducing the Issue

  1. Create a CDS view in the Custom CDS View app
  2. Select some association type fields
  3. 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

  1. Go to the Field Selection Tab
  2. Unselect all the association type fields
  3. 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