Skip to Content
0

I write a cds abap hierachy view, but I got a problem

Nov 07, 2016 at 06:17 AM

66

avatar image
Former Member

When we are creating a CDS abap hierarchy view, I face a problem saying that: ‘Annotations of airpto use hierarchies but airpto has no hierarchies’ . The warning message indicate that : I lost one of the essential association in my hierarchy node, but I do add the association. Please help me ! And the detailed views are attached.

@AbapCatalog.sqlViewName:'zaircoairptq2'

@AccessControl.authorizationCheck:#NOT_REQUIRED

@EndUserText.label:'query of air'

@Analytics.query:true

@VDM.viewType:#CONSUMPTION

@OData.publish:true

@Hierarchy.parentChild.name:'Hierflt'

defineview Zaircontairptq2 asselectfrom Zairconctioncube2 {

@AnalyticsDetails.query:{displayHierarchy:#ON,

//hierarchyInitialLevel: 3 ,

hierarchyBinding:[{type:#ELEMENT,value:'airto'}]}

Zairconctioncube2.airpto,

@Semantics.quantity.unitOfMeasure:'distanceunit'

@DefaultAggregation:#SUM

Zairconctioncube2.distance,

@Semantics.unitOfMeasure:true

Zairconctioncube2.distanceunit,

/* Associations */

Zairconctioncube2._airto

}

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

avatar image
Former Member Jan 10, 2017 at 11:06 AM
0

Hi Patty,

did u get solution? Can you please share info about how to create Hierarchy in CDS views?

Thanks.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Oct 05, 2017 at 02:26 PM
0

Hi,

Did you get the solution ?

Thanks

Share
10 |10000 characters needed characters left characters exceeded