Hierarchy node filtering - BEx 3.5 query

Hi
I am having a problem with a BEx 3.5 query with a filter on customer hierarchy. The filter is a variable which allows single value selection.
When I run the query in Analyzer and get prompted for the customer hierarchy I can either type a customer number or press F4 and navigate through the hierarchy structure to find the node I want.
When I press F4 and navigate to the hierarchy nodes I always get data for all nodes I have tried, but when I type in the node number directly in the selection screen I get data for some nodes wheras for others I get "No applicable data found".
When I navigate in the hierarchy I can see that below each node there is a leaf with the same customer number (see example below), and that when I type in a customer hierarchy node number in the selection screen the query chooses the node for some numbers (and data is displayed) and for some numbers chooses the leaf (and no data is displayed).
Example:
0035 (node)
-   0035 (leaf)
- 11003 (leaf)
- 11004 (leaf)
- 11005 (leaf)
It would be preferrable if I could type in the values directly as this would save time. So I would like to know if there is a way to make sure that the node is always selected rather than the leaf, or if it is just random?
All help is much appretiated!
Edited by: christian.nilsson on Sep 28, 2011 5:40 PM

Hi
Thanks for the answer. I tried it but unfortunately it did not solve my problem. The issue is that for some hierarchies the leaf is found instead of the node (see my earlier post).
So if there would be a way to only search for only nodes, that could be a solution.
Kind regards

Similar Messages

  • How to filter hierarchy node in BEX query designer

    Dear experts
    We are working on FI balance sheet with hierarchy infoobject 0GLACCEXT. Example of our balance sheet is as follow:
    Parent Node A = 20
         Sub-parent Node A1 = 10
             Leaf A11 = 5
                 Leaf A12 = 5
    Parent Node B = 20
         Sub-parent Node B1 = 10
                   Leaf B11 = 5
                   Leaf B12 = 5
    We require only:
        Sub-parent Node A1 = 10
        Leaf B12 = 5
    So I filter those out in BEX restriction;  however, after we examine the report in tcode RSRT, "Sub-parent Node A1" is not shown in BEX Report, and the result is as follow:
    Parent Node B = 5
         Sub-parent Node B1 = 5
                 Leaf B12 = 5
    Are there solutions for us to show merely A1 and B12 ?

    Hi Chu
    Try the following steps.
    Initial Output
    In this example I will restrict the query for only displaying Node 8603 and leaf 9000
    Proceed to restrict the Characteristic. Please be aware of the difference between hierarchy nodes and leaf characteristic values. Also set the Hierarchy display properties to expand up to level 1.
    Execute the query again:
    Please be aware that users will still be able to expand node 8603 and see the lower level nodes/leaf. In order to restrict users from doing this set up users authorizations.
    Regards,
    Carlos

  • Hierarchy nodes as characteristics in a query

    Hi all,
    I would like to ask if there is a way to use hierarchy nodes of InfoObject 0cost_elemnt as characteristics in a query.
    In other words I have a grouping of cost elements in R/3 and uploaded this group as a hierarchy in BW. Now the users want to have the ability to drag and drop in a query report any node of this hierarchy.
    Can this be done?
    Thanks in advance,
    Panos

    Hi,
    I guess, if I am getting you correctly the user wants to see teh hierarchy levels individually or on adhoc basis.
    Is that right?
    Regards,
    Ray

  • Hierarchy Nodes Display problem in the query

    Hi
    I have an organizational hierarchy upto 6 levels of nodes.
    When it is displyed in the query only the first three levels are getting displayed.
    When i see in the restricted area ( when restricting values ) i find all the nodes displayed but when query is executed i dont see anything.
    Are there setting thats needs to be made in order to see the entire hierarchy.
    regards
    sundaresan

    When you restrict any query you can see all the nodes of hierarchy, but when you run it you can see only those nodes for which value exists in infoprovider.
    Corss check if you have any other restrictions also.

  • Hierarchy Node Filtering Challenge

    I'm experiencing a bit of a challenge with creating required report for our business and was wondering if anyone could shed some light on this issue.
    We have a hierarchy.  Within this hierarchy we have nodes A & B.  We want to filter out node A.  However, nodes A & B have one value underneath them in common.  When we apply the filter to exclude node A it is not entirely excluded.  We still get the filtered out node name and the one common value appearing in the report.
    How do we completely filter out node A?  Is it even possible?  If not, why not?

    When you have inserted for the second time the common value what option did you put :
    - copy duplicate node
    or
    - transfer the duplicate node as Link Node ?
    I think that you put the second. Try to put the other one ... I think it will be ok !
    Message was edited by: Aleksi

  • Createing Hierarchy Node Variables in BI-7 Query Designer

    Hi Gurus,
    When I try to create a hierarchy variable in BI-7 Query Designer, Iam getting the following error; has anyone ecountered this problem... Pl let me know.
    Terminate: System error in program SAPLRRI2 and form FAC_VARIABLES-03- (see long text) [A299(BRAIN)]
    We are on SP9 currently.
    Thanks !

    Yes ,update the latest patch level from
    Try first to download latest FEP from service.sap.com/swdc
    Download>Support Packages and Patches">SAP Frontend Components">SAP GUI FOR WINDOWS">SAP GUI FOR WINDOWS 6.40>Win32>Bw700SP09P_904-10001615.exe.exe
    download that file rename as .exe and execute it.
    Hope it Helps
    Chetan
    @CP..

  • Hierarchy node variable in workbook

    Hi all,
    I am scheduling a workbook in precal,
    The work has nine queries with same hierarchy node variable in all teh query selection.
    The work book is taking long time in opening even when auto refresh is off.
    the precalculation takes 30000 sec and running...
    any thought on what can be done to reduce the calculation.
    regards,
    Rakesh.

    Hi,
    As precalculation just automates the process of opening, refreshing and applying the variant on a workbook I would suggest trying to find improvements there. Perhaps the notes below can help.
    1289127
    1160093
    1179647
    1260213                         
    also use the latest precalc server support pack "BW 7.x precalculation service SP1200 - GUI 7.10" (note 1387291).
    Thanks,
    Michael

  • Refreshing Hierarchy node variable in BEx query with change in hierarchy

    Hi all,
    We have used a hierarchy node variable on Characteristic ZECCSAC (user-defined) and used it in a BEx query with default value set to a particular node value. Upto this, it is working fine.
    The hierarchy used in the query, with the hierarchy node variable, was later changed ( and in future it can undergo changes ). Since the number of records in the hierarchy are changing, the nodenames of the hierarchy nodes are changing. But the hier node variable default value is still set to the earlier nodename for that node description. So at runtime it is giving an error "ECCS Account Number is invalid"!
    Can anyone suggest how to refresh a hierarchy node variable default value each time a query is run so that the latest nodename is always taken ?
    Quick reply will be appreciated.
    Thanks

    Hi,
    You get this with User exits.
    Thnaks

  • Hierarchy node inputs in BEX query

    Hi,
    We have couple of BEX queries that has input variables with hierarchies, users like to type the multiple nodes in the hierarchy directly into the variable screen instead of expanding the hierarchy and picking the required nodes, is it possible, if yes, can you please share the idea, thanks
    Raman.

    Hi,
    Yes it is possible.
    You have to create Hierarchy Note variables. When you selected the hierarchy on the characteristic in the query designer, then goto restriction on the selected hierarchy, in the restriction window we can create Hierarchy Note varaibles, so at the varaible creation you give the option to select multiple entries.
    Check the below link for more information:
    http://help.sap.com/saphelp_nw70/helpdata/en/83/096d399bd2046fe10000000a114084/frameset.htm
    Hope this helps.
    Veerendra.

  • Bex query is getting hanged, when trying to drill down only for one hierarchy node.

    Hi All,
    We have a bex query, in which we have multiple nodes. And we are able to expand almost all nodes except one hierarchy node called "BD1".
    when we trying expand the BD1 node, the report is executing on and on and getting hanged up.
    In RSRT the read mode is "H"
    The report is based on a multiprovider and it has 7 cubes of which 6 of them have aggregates.
    The characteristic for which we have issue is also having BWA.
    So, I am not sure why the issue is with only 1 node in the entire report. Can someone let me know the possible reasons and solutions.

    Hi Shilpa,
    The only way to show  long text is to maintain only long text for the info object.  Otherwise system always defaults to short text.
    Jaya.

  • Use of filters and aggregations based on hierarchy nodes in an update rule

    Hello,
    I need to calculate some indicators from a ODS (BW 3.5) that contain raw data to another one that will contain indicators. These figures are the results of the use of filters and aggregations based on hierarchy nodes (for example: all sales accounts under a node).
    In fact, this is typically a query but I want to store these figures, so I need
    I understood I have to use a start routine. I never did that before.
    Could you provide me with easy-to-understand-for-newbies examples of:
    - filtering data based on the value of an infoobject (value must be empty, for example)
    - filtering and aggregation of data based on the appartenance to hierarchy nodes (all sales figures, ....)
    - aggregation of the key figures based on different characteristics after filtering of these
    Well, I am asking a lot ...
    Thank you very much
    Thomas

    Please go through the following link to learn more on aggregates:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e55aaca6-0301-0010-928e-af44060bda32
    Also go through the very detailed documentation:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/67efb9bb-0601-0010-f7a2-b582e94bcf8a
    Regards,
    Mahesh

  • No Query Result After Using Hierarchy Node Variable (Customer Exit)

    Hi
    I have problem at my query. It doesn't show anything in BEx but when i check the data in BW using tcode LISTCUBE i can display the data.
    This problem happen when i change the restrictions for one of characteristic in filter value.
    The characteristic is custom Infoobject (ZCPARTNER), which like Infoobject Partner Unit.
    Previously I set the restriction with constant value, example : A500,A700,A710,A720,A730,A740 and it worked before.
    But when I change it using hierarchy node variable (customer exit), this problem is arise.
    Here is my code at ZXRSRU01
      WHEN 'ZHIEPART'. --> hierarchy node variable
       BREAK-POINT.
        IF i_step = 2.
        Read from ZZCONSGR information
          LOOP AT i_t_var_range INTO loc_var_range
             WHERE vnam = 'ZZCONSGR' OR vnam = 'ZOCONSGR'. --> read input value from consolidation group variable
            CLEAR l_s_range.
            CLEAR l_s_range-low.
            IF loc_var_range-low EQ '000000000000030000'
               OR loc_var_range-low EQ '000000000000010130'.
              l_s_range-low = 'MEZBUNITMDI'.
              l_s_range-high = '0HIER_NODE'.
            ELSEIF loc_var_range-low EQ '000000000000040000'
               OR loc_var_range-low EQ '000000000000010160'.
              l_s_range-low = 'MEZBUNITMPI'.
              l_s_range-high = '0HIER_NODE'.
            ENDIF.
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            APPEND l_s_range TO e_t_range.
            EXIT.
          ENDLOOP.
        ENDIF.
    Here the hierarchy in BW system:
    XXX Cons Unit Hierarchy Set; InfoObject ; Node Name
    - XXX Cons Unit Hierarchy Set; 0HIER_NODE; ZBUNITALL
      - XXX DownStream ... ; OHIER_NODE; MEZBUNITMDI
         - ME/A730; 0CS_UNIT; MEA730
         - ME/A740; 0CS_UNIT; MEA740
      - XXX Power ; OHIER_NODE; MEZBUNITMPI
        - ME A800 - A808; OHIER_NODE; MEZBUNITMPI
        - PT Mitra xxx; 0CS_UNIT;  MEA820
    Anyone can help my problem? Thank you
    Regards,
    Satria B Tandyono

    Hi Satria,
    Instead of following code ---
    CLEAR l_s_range-low.
    IF loc_var_range-low EQ '000000000000030000'
    OR loc_var_range-low EQ '000000000000010130'.
    l_s_range-low = 'MEZBUNITMDI'.
    l_s_range-high = '0HIER_NODE'.
    ELSEIF loc_var_range-low EQ '000000000000040000'
    OR loc_var_range-low EQ '000000000000010160'.
    l_s_range-low = 'MEZBUNITMPI'.
    l_s_range-high = '0HIER_NODE'.
    ENDIF.
    try this ---
    IF loc_var_range-low EQ '000000000000030000'
    OR loc_var_range-low EQ '000000000000010130'.
    l_s_range-low = 'MEZBUNITMDI'.
    ELSEIF loc_var_range-low EQ '000000000000040000'
    OR loc_var_range-low EQ '000000000000010160'.
    l_s_range-low = 'MEZBUNITMPI'.
    ENDIF.
    Note : whenver the option is EQ, the system takes only low value.

  • Hierarchy Node- Overall query result

    Hi Gurus,
           I have a query with hierarchy nodes. For example
    Measure
    overall result
    Measure set 1
    ASA
    ACEI
    Measure set 2
    HF
    AMI
    In the above result the option I chose for node position is ABOVE and I get the overall result below Measure.
    But i need the following result:
    Measure
    Measure set 1
    ASA
    ACEI
    Measure set 2
    HF
    AMI
    overall result
    I get the desired query if my option is Node selection 'BELOW' but the result is different which is not how I wanted
    Measure
    ASA
    ACEI
    Measure set 1
    HF
    AMI
    Measure set 2
    overall result
    The actual scenario has arrow marks shown upwards or downwards but hope the overall picture is clear.
    Any help would be greatly appreciated.
    Thanks,
    Nikki

    Hi Nikki,
    I also have the same requirement. And i think this is how the output is going to be(ie. the overall result row at the top) when you use the option Node Position 'Above'. I don't think it is directly possible in BEx to have the Overall Result at the end with the option Node position 'Above'.
    Best Regards,
    Sanjay

  • Hierarchy node not available in Query Designer

    Hello Gurus,
    I can find the hierarchy node variable in BW but it is not available in query designer. Does anyone know what might be the problem and a solution?
    Thanks,
    Mark

    Hi Mark,
    You said you "find the hierarchy node variable in BW but it is not available in query designer".
    How did you find the hierarchy node variable in BW? From backend SAPGUI, you will only be able to see the variable in some internal tables like RSZGLOBV. Did you mean this?
    For "it is not available in query designer", do you means that when you want to create a hierarchy node variable for this characteristic in Query Designer, you don't find this certain hierarchy node variable in the hierarchy node variable list?
    Important thing to notice is that, flat value variables and hierarchy node variables are listed separately. Did you make sure that you have chose to list hierarchy node variables in Query Designer?
    Regards,
    Patricia

  • Dynamic columns in query depending on hierarchy nodes

    Hello all
    I want to design a query with dynamic number of columns depending on hierarchy node.
    A hierarchy node is selected while running the query and user has authorization to see all subsequent nodes below the selected node.
    e.g. consider grp hierarchy with units and sub-grps as nodes.
    level1 Grp1
    levele2 unit1     :       grp2               :      grp3
    level3              :      unit2   unit4      :    unit4 grp4
    Suppose user select node Grp1, then there should be 3 columns for unit1, grp2, grp3
    If user selects node grp2, then there should be 2 columns for unit2 and unit4
    Please help. Any suggestions highly are highly appreciated.
    Rgds
    Sanjyot

    Surekha,
    Try this.
    Place heirarchy/characteristic in columns, under this place required keyfigure.
    Restrict with variable.
    Srini

Maybe you are looking for