cancel
Showing results for 
Search instead for 
Did you mean: 

CDS View Restrict Hierarchy with Certain Default Nodes

former_member217691
Participant
0 Kudos

Hello Friends,

I am trying to restrict My CDS view with certain nodes say for only profit and loss.

I am getting complete hierarchy in Fiori but unable to restrict it with certain nodes.

As you can see in screenshot, I am getting complete Hierarchy. Balance sheet, Profit & Loss, etc. I just want it to be restricted for Profit and Loss (Z010/03000000) Unable to find any annotation for the same.

Can some one guide me how to do that.

Regards,

Sunil

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hello,

Try using annotation @Consumption.filter.defaultHierarchyNode, example 9 from

https://help.sap.com/viewer/cc0c305d2fab47bd808adcad3ca7ee9d/7.5.10/en-US/d60c0bf6798a481fb7412bc899...

Sample below is relater to Internal Order custom CDS view, which Hierarchy Node is taken from table

hrrp_node:

hrrp_node.hryid - InternalOrderHierarchy,

substring( hrrp_node.hrynode, 8, 35 ) - HierarchyNode