03-09-2022 7:38 AM
Hi all,
has anyone an example on how to use a CDS hierarchy defined with "define hierarchy" as a analytical CDS dimension? I only found examples without using CDS hierarchy but only with analytical hierarchy annotations.
Thanks,
Wolfgang
05-16-2022 5:17 PM
Yes it is planned that this will be part of the next on premise shipment as well.
I got the information that when using „define hierarchy“ in analytics there are some known restrictions:
Kind regards,
Andre
05-05-2022 7:54 PM
05-16-2022 10:16 AM
Hi Wolfgang,
unfortunately this is not possible yet.
In 2205 it is possible to create CDS hierarchies in ABAP language version 5, it is however not possible to use the same in analytical queries.
This is currently planned for 2208.
Kind regards,
Andre
05-16-2022 10:56 AM
Hi andre.fischer,
thanks, ok, will wait for 2208 then...
Is there also a timeline for S/4HANA onpremise available? CDS hierarchy is available since 753 (temporal hierarchy was added in 754), but when could one use these in analytical queries onpremise?
Regards,
Wolfgang
05-16-2022 5:17 PM
Yes it is planned that this will be part of the next on premise shipment as well.
I got the information that when using „define hierarchy“ in analytics there are some known restrictions:
Kind regards,
Andre
11-16-2023 5:59 PM
DEFINE HIERARCHY can be consumed in ABAP, but for SAP Analytics you have to create using the annotations defining 3 pieces - one base entity of type dimension another that reads from the node (HRRP_NODE) of the type #HIERARCHY and the 3rd one reads from HRRP_DIRECTORY. Just check how the hierarchies for Profit Center or Cost Center are implemented it's very simple.
The base will declare the NODE as hierarchy association and the node refer back to base as a foreign key association and the node will also have an association to the CDS that reads from the HRRP_DIRECTORY. I created a custom one recently and did a lot of Googling but I don't know how to share directly here with less effort as typing takes too much time.
11-17-2023 8:22 AM
Thanks for your answer, but I do not get it. I was asking about using ABAP DEFINE HIERARCHY as an analytical (hierarchical) dimension. I can't really match your answer to this question.
11-17-2023 8:55 AM
As the guy from SAP mentioned DEFINE HIERRACHY won't work for Analytical CDS. So I shared the solution assuming that your need is to create an analytical CDS hierarchy. If it's a Yes and No match the answer is NO. DEFINE Hierarchy do not support CDS based analytics.