Skip to Content
0
Jun 22, 2020 at 01:45 PM

Using hierarchies in BEx query designer based on ABAP CDS query

207 Views

Hi,

I have a requirement in embedded analytics to create a BEx query on ABAP CDS view. I am unable to use the hierarchies

I have created a View and write the associations.

after annotating the filed prctr with

@ObjectModel.foreignKey.association: '_ProfitCenter' for master and writing the hierarchy annotation.

@AnalyticsDetails.query.displayHierarchy: #ON
@Consumption.filter: { selectionType: #HIERARCHY_NODE, multipleSelections: true, mandatory: false }
@AnalyticsDetails.query.hierarchyInitialLevel: 2
prctr

I am unable to create a BEx query on the view as is giving error like infoobject hierarchy prctr is not supported