Skip to Content
0
Mar 19, 2019 at 05:59 PM

Custom Exit Varible for Query Question (getting a parent node)

213 Views

Hello experts,

I am writing regarding a question on how to select a parent node from a hierarchy using a Customer Exit Variable.

I am doing a query in SAP BPC Embedded to see the information in AOF. I have implemented a BAdi Class acording this link:

https://blogs.sap.com/2014/04/16/how-to-implement-new-badi-rsroavariablesexitbadi-73-for-reporting-a-step-by-step-guide/

I have created a Customer Exit variable on the infoobject DTASRC (wich is in my model) as is shown in the image:

This variable has the next code in function module:

The issue is the next:

When my variable takes the value of "INPUT", everything is ok, but when it takes the Value: "TOT_ORIGEN", it is meant to select a hierarchy node and bring the grouped information of the node, instead it brings just the node without children and since the querey is input ready I can plan on that node, wich it shouldn´t let me, am I right?

Any ideas how can I bring the node together with the children information?

Thanks in advance por the posts.

Best Regards.

Attachments

variable-od09.png (25.2 kB)
code.png (51.5 kB)