on 06-11-2013 8:09 AM
Hi Techies,
I am using a WBS Hierarchy in a report. Hierarchy Name is 'WBS Hierarchy' which is coming as the root node. My requirement is that I do not want to see the root node of the hierarchy. Is there any way to achieve this. Hiding the root node of hierarchy and show it in BEx Analyzer.
Thanks & Regards,
Sari
Hi Sareesh,
If there is no data for the root node itself then the display properties will work if you make the settings just as seen in the screenshot by
But if you have records for the root node and you still do not want to show, you may try to exclude that root (filter the characteristic without hierarchy)
Regards
Yasemin.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Solved!
With help from Shani Bashkin.
Create a customer exit variable and assign it as a Hierarchy Node Variable that filters the characteristic in BEx.
Go to infoobject maintenance->Hierarchy and see the name of the hierarchy table (in this case - /BI0/HWBS_ELEMT ). Double click on the table name and find the nodeid for the root (in my case - '00000001' ).
in the customer exit enhancement, use the following code for the variable, replacing the table name, parent id, and name of the infoobject according to the specific need.
WHEN 'ZWBSN_UEX'.
IF I_STEP <> 2.
RAISE no_processing.
ELSE.
CLEAR L_S_RANGE.
L_S_RANGE-OPT = 'EQ'.
L_S_RANGE-SIGN = 'I'.
SELECT nodename FROM /BI0/HWBS_ELEMT
INTO l_nodename
WHERE PARENTID = '00000001'
AND OBJVERS = 'A'.
L_S_RANGE-LOW = l_nodename.
L_S_RANGE-HIGH = '0WBS_ELEMT'.
APPEND L_S_RANGE TO E_T_RANGE.
ENDSELECT.
ENDIF.
Hi Shai, Martin & Yasemin and other Guru's
This is exactly I wanted to achieve and as you know I posted multiple threads.
I tried the Code above and it did not work for me. In the above code here you are filling
L_S_Range-Low and L_S_Range-High with ‘0WBS_ELEMT. Not sure how this works.
I believe the moment you make the hierarchy node variable ‘Customer exit’ I do not see the section option basically it’s from and to options in the variable screen.
Then how the L_S_Range-Low and L_S_Range-High with ‘0WBS_ELEMT should work?
I copied the code in the user exit and I debugged the code, it’s not working for some reason.
The problem is I have many other characteristics after the hierarchy and this result node repeats every time as you can see in the screen. Also I need to add the other hierarchies as well.
I have tried display as hierachy options , it's not going to work becasuse 1) It will display every thing in one column 2) This feature does not support in WEBI.
I tried all the methods, for sales position/org I have to use hierarchy. This is external hierarchy meaning, if I stack them in the rows and display as hierarchy it will not work because it will put everything in to one column which I do not want and for presentation I am using WEBI tool. But this issue is still there in BEx.
I am struggling to fix this issue for a while. Could any one help me how to fix this .Could someone please help with correct solution?
Any feed back is highly appreciated.
Thanks
Magge
Hi Magge,
Note that your issue is different than the original issue in this thread, so the solution I gave won't help.
The hierarchy Node variable filter determines the root nodes for the hierarchy, and therefore cannot filter nodes at the "bottom" of the hierarchy.
However, as you don't need the hierarchy below the nodes you wish to filter, I would try filtering the values - in the example given, what you need is a filter of all the values of Industry that are not "#". Depending on your need you may be required to use an additional characteristic to filter the data.
Good luck,
Shai
Create a customer exit variable and assign it as a Hierarchy Node Variable that filters the characteristic in BEx. In the customer exit enhancement, use the following code for the variable, replacing the table name, parent id, and name of the infoobject according to the specific need.
WHEN 'ZWBSN_UEX'.
DATA: l_nodename TYPE RSSHNODENAME.
IF I_STEP <> 2.
RAISE no_processing.
ELSE.
CLEAR L_S_RANGE.
L_S_RANGE-OPT = 'EQ'.
L_S_RANGE-SIGN = 'I'.
SELECT nodename FROM /BI0/HWBS_ELEMT
INTO l_nodename
WHERE PARENTID = '00000001'
AND OBJVERS = 'A'.
if sy-subrc = 0.
L_S_RANGE-LOW = l_nodename.
L_S_RANGE-HIGH = '0WBS_ELEMT'.
APPEND L_S_RANGE TO E_T_RANGE.
endif.
ENDSELECT.
ENDIF.
Regards,
Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi guys,
I don't know if this can solve my issue..
Just wanted to ask the purpose of the code? So the selected parentid will be the only nodes shown? Is that right? So in this case only the parentid = '00000001' or WBS HIERARCHY will be shown?
But what's the purpose of L_S_RANGE-HIGH = '0WBS_ELEMT'?
Is it default to always use the name of infoobject in the L_S_RANGE-HIGH? Because for sure there will be no PARENTID which has value of 0WBS_ELEMT..
Thank you..
Loed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Suman,
I tried these settings earlier, but none of these options hide root node.
For Eg: Below is our report, in this if you see 'WBS HIERARCHY' is the root node and when we drill down a dimension the root node is repeatedly coming with summation of drilldown object. But I want to hide this root node. Any option you know.
Regards,
Sari.
Thank you for the suggestion Suman.
But my requirement is that, when user drill down a new item to report what is happening , its characteristics values are showing under WBS HIERARACHY root node as well as the sub nodes. I only want to show it in sub nodes.
Please see below screen shot:
We have WBS Element and Activity as info Objects and activities are duplicated in root node. When drilling down, Activities should be shown only in respective WBS Nodes and need to hide from WBS HIERARCHY (root node)..
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.