SAP Knowledge Base Article - Public

3038787 - Fail to create Analytical Dimension with error message "Element xxx must have an association with master data view" - Custom CDS Views

Symptom

There is no contents under Master Data View option list of Elements Properties in Analytical Dimension created when using "Custom CDS Views" fiori application

Environment

 SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Create Analytical Dimension using "Custom CDS Views" application
  2. Choose a primary datasource
  3. Navigate to the Element Properties
  4. There is a warning "Element xxx must have an association with master data view" display under Master Data View option list of key elements, there is no content generated in the list

Cause

It can be that this datasource has no Master Data View and cannot be used as the Analytical Dimension or the Master Data View was not added to the elements tab.

Resolution

In Elements tab, click on "Add > Elements". Then add the datasource as a Master Data View by selecting the whole datasource.

If the datasource has no Master Data View, you'll need to choose another support datasource and we can check in advance using "View Browser" application.

See Also

2657021 - Creating Custom CDS Views for Analytical Scenarios

Keywords

Analytical Dimension, Custom CDS Views, Element, Association, Master Data View, must have an association to a Master Data View , KBA , BC-SRV-APS-GKE , Generic CDS Key User Editor , Problem

Product

SAP S/4HANA Cloud 2102