cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP CDS Annotation for Hierarchy Fiori Elements UI application - S4HANA OP System

muthuhana
Explorer

Hello Experts,

I am trying to create Hierarchy report using CDS annotation & Fiori Elements. I found this documentation where below annotation has been used to refer Hierarchy CDS view definition but seems only works for cloud.

https://help.sap.com/docs/abap-cloud/abap-rap/implementing-hierarchical-view

@OData.hierarchy.recursiveHierarchy:[{ entity.name: '/DMO/I_EmployeeHN_HR' }]

Is there any similar kind of annotation available to refer the Hierarchy CDS view in S4HANA OP system ? if not, is there any other way we can achieve this behavior ?

Thanks a lot.

View Entire Topic
TharinduW
Explorer

I can relate to what Muthu is saying. I am currently on S/4HANA on-premise 2023 version and am getting the following error on eclipse. I am quite confident that the underlying hierarchy implementation, consumption/interface views etc are following the correct annotations etc. I even tried implementing the CDS views/hierarchies/SD/SBs from Dominik Eira Elias's session on Hierarchy Support in RAP to the letter. 

Error during compilation. See next line for details.Error in entity 'XXXX(CDS)': Hierarchy for view XXXX is not supported

If it helps, these are the software component versions on my on-prem system 

SAP_BASIS 758
SAP_ABA 75I
SAP_GWFND 758
SAP_UI 758

Perhaps @Andre_Fischer or @dominik_ee could comment 🙂 

Regards,
Tharindu W

dominik_ee
Advisor
Advisor
Hi Tharindu, thanks for the hint. For everybody interested in the session here's the link: https://www.youtube.com/watch?v=DgodfEHV_W0