Skip to Content
avatar image
Former Member

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

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

}

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

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

    Hi Patty,

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

    Thanks.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 05, 2017 at 02:26 PM

    Hi,

    Did you get the solution ?

    Thanks

    Add comment
    10|10000 characters needed characters exceeded