Hierarchy restriction in a query

Hi,
I have some hierarchies defined on an object.
Lets say i have two hierarchies on an object day
first_Hier : day->week
Second_hier : day->month->quarter->year.
Now in the query i have selected first_hier for the object day.
Now the problem is when the user executes the query in Bex analyzer.
The user can right click on the characteristic, here in our case say day, go to properties, goto hierarchies tab.
Can choose the object day and now he can see and select any hierarchy that is defined on the object.
But that should not happen.He should be able to select first_hier.
Is there any way by which we can restrict the user from seeing and selecting all hierarchies defined on the object?
Because if there are any keyfigure say for forecast
and we want the users to see the forcast Keyfigures only for the next week but not for the next month,quarter and year.
But now though we have taken only first_hier
at run time they can select the second_hier and see the values for the year, quarter and month...
Pls share your thought to achieve this.
Thanks in advance.
Regards,
Raghu
Edited by: Raghu tej harish reddy on Oct 14, 2008 9:22 AM

Hi Amar,
Thanks for the reply.
I feel you didn't understood what i am trying to explain.
It is not the issue with hierarchy loads.
Whenever the Hierarchies fail while saving
What do you by the above statment?
some times the error shows " The heirarchy already saved "
What do you mean by this again.
Seems you are speeking some thing about hierarchy loading...
There are no issues with hierarchy loads. Every thing is sucessful.
The note speeks about :
Executing the report rrincltab_rebuild directly or activating the hierarchies, Leads to a system dump with sapsql_where_for_all_mismatch.
But here i am not talking about the report rrincltab_rebuild
Regards,
Raghu

Similar Messages

  • Hierarchy Restrictions as Per Query

    Hi ,
    We have one query that is using GL Account InfoObject. We are displaying GL account as Hierarchy in Bex Output. There are 5 hierarchies in BW for GL Account Info Object.
    I created one Variable to select hierarchy while running the query. When users select this variable it displays all 5 hierarchies available for GL Account InfoObject. But, for Balance sheet query, only 3 hierarchies are relevant and users only want to see those 3 hierarchies. Rest 2 hierarchies are relevant for Profit and loss queries. Same user when run P/L query he should only see those 2 hierarchies.
    So in nutshell, users only want to see relevant hierarchies as per queries. Same user will run these reports, so we cannot restrict hierarchies for users by authorizations.
    Is there any way to do this?
    Please help me.
    Regards
    Aman

    Hi Amandeep,
    Please check the following option.
    I am looking this option in 7.3 and not sure whether this is available in lower options.
    SPRO -> SAP Netweaver -> Business Warehouse -> Enhancements -> Restricting the value help in the variables screen.
    Once you implement this BADI,
    To restrict input help for flat object lists using hierarchies, use method Get_Restriction_Node.
    Method GET_RESTRICTION_NODE
    I_VNAM Variable
    I_IOBJNM InfoObject
    I_T_VAR_RANGAE Table of entries on the variable screen
    I_T_COMPID  Table of participating queries
    C_T_HIERARCHY Table of possible hierarchies
    C_T_NODE Table with node restrictions
    C_INFOPROV InfoProvider
    C_F4_Mode F4 mode
    Thanks,
    Krishnan

  • WEBI above universe - hierarchy restriction

    Hello,
    I read that the authorization concept in WEBI above universe works if we build a universe above a query and we use authorization variable. But what is the case for restriction by a hierarchy? For this restriction in the Query designer there is no need for authorization variable. Is it also possible in the WEBI?
    Thanks,
    David

    Hi David,
    are you referring to a hierarchy node authorization ? so that should work via the query automatically as well.
    ingo

  • Creating Restrictions in BEx query designer for (1-a), where a is variable.

    Dear All,
    >>  Suppose for the variable in the BEx query designer, I've created restriction for 0FISCPER to the variable 0P_PER (as 0P_PER-1) by right clicking 0P_PER3, from that a dialog box appears.  In that I've selected 0P_PER3 and then clicked on offset variable and when I set the offset variable, it works for (0P_PER-1.etc, 0P_PER+1,etc..)
    But if I want to have (1-0P_PER), then plz tell me how to define this restriction?
    Plz explain me the steps to perform (1-0P_PER) restriction in BEx query designer in BW1.
    I'm using SAP BI 7.2 gui.
    Expecting your reply soon,
    with Regards,
    Jerald

    My requirement is that I want to have " 1-fiscal year"., But this I could not define using offset variables, since using offset we can define "fiscal year +1" or "fiscal year -1". 
    So there would be some other way to define "1-fiscalyear".  So Please help me to define "1-fiscalyear"  by giving me the steps.
    Thank you,
    with Regards,
    Jerald

  • Restrict user SELECT query time on a particular VIEW

    Hi - I am trying to restrict user SELECT statemnet time on a particular view.There is a user called ABC and he is accessing many objects in database.All SELECT statments are fine execept when he query a particular VIEW.That view SELECT causing performance problem.So I am trying to restrict the SELECT query time on a VIEW.
    Can you please help me to achive this task through some SQL command like ALTER USER etc...
    Thanks for your help.

    user2538196 wrote:
    Hi - I am trying to restrict user SELECT statemnet time on a particular view.There is a user called ABC and he is accessing many objects in database.All SELECT statments are fine execept when he query a particular VIEW.That view SELECT causing performance problem.So I am trying to restrict the SELECT query time on a VIEW.
    Can you please help me to achive this task through some SQL command like ALTER USER etc...
    Thanks for your help.It sounds like you are really trying to solve a performance problem with the view. I agree with Justin that the solution to restrict access to the view dynamically sounds unwieldy.
    Consider tuning the view, or perhaps the query using the view. Post the view and see if anyone can help you tune it.

  • Hiding hierarchy level in Report (Query Designer)

    Hallo Experts,
    I am working on a hierarchy structure. I use the activate Hierarchy Display in the Query Designer. I try to expand my query till level "2".
    But I actually want only the 2 level report and the 1st level should be hidden. Can anyone guide me how this can be done.
    Thanks in advance
    Santosh

    Hello Santosh,
    You can have Level 2 as an InfoObject that will be attached to 0MATERIAL as a navigational attribute. Then you can use this in your report and and create a condition on it.
    Thanks.
    With regards,
    Anand Kumar

  • Newly Created Hierarchy Not appearing in Query for restriction

    Hi Experts,
    Iam new to dealing with hierarchies in BW.
    Our R3 team recently added node to 0material hierarchy. I went to infoobjects in RSA1 and under 0material i found two hierarchies
    Product Hierarchy for Material MARA &
    Reporting Hierarchy
    in the contect menu for "Product Hierarchy for Material MARA " i clicked chnage and in the screen that followed, i clicked display modified version and it showed new nodes added by R3 team. Then i clicked the Activate button and got it activated.
    We have a report which uses the Hierarchy and in it I cant find the new nodes..
    Can anyone please help me??
    This is very urgent..
    Thanks,
    DV

    Hi Edwin,
    I checked there..there is nothing in the list.
    DV

  • 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 Subtotals in the Query

    Hi,
    I have inserted a GL Account hierarchy in the query,all amounts are okay in the query except the subtotals. The subtotals are totally wrong, its giving me this message:
    Diagnosis
    The function Calculate Results as ... could not be applied everywhere.
    Recalculation of a resutls row is always based on the amount of detail cells subordinate to this cell, which is the finest details of a drilldown. It is not possible to recalculate resutls in hierarchical lists. This means that calculation of a results cell is not performed if a row or column with an expand symbol is subordinate to it. With recalculation, the newly calculated result has to change with each expansion of a node subordinate to it. This is not supported for technical reasons and would only confuse the user.
    Note, however, that Calculate Results as -> Suppress Results is always executed, because the problem above does not apply in that case.
    I need to combine Purchasing and Price GL accounts in one line.
    How can I:
    1. Fix the sub-totals
    or
    2. Combine Purchamsing and Price GL accounts in one line
    Thanks

    Hi Dave,
    For sub totals, the message suggests that for that column you have used a result/single value calculate as, instead of default nothing defined.
    And in case of hierarchies, custom result calculations is not supported.
    Second one about adding multiple GL values. I guess you are intended to use GL Hierachy in your rows. If that is the case then the values will be shown only against the respective nodes.
    In the case, the intention is not to use GL hierarchy, then create two selections/restricted key figures, each one restricting by Purchasing accounts and Price accounts and then sum them up using a formula.
    This should provide the desired result.
    Do let us know, if you are looking for some thing else.
    Naveen.A

  • Hierarchy restriction

    Dear All,
    I am syncing the query between two system.
    In the query there is a restriction on hierarchy on particular node,so
    I am finding very difficulty to find the ame node in the other system,
    Is there any easy way to do it.
    Please help.
    Thanks,
    Saveen Kumar

    if you know node description then you can find tech name of node from amster data table and then use same in H table of master data to find your node. level there will give you level id i.e. hierarchy level id for your node.
    Hope this helps.
    Regards
    Sudeep

  • Hierarchy restrictions in BEx

    Hello BW Experts,
    I am a beginner in SAP BW(ver 3.1).We have particular BEx query,where there is a characteristic in the filter part that is restricted by a particular hierarchy.
    Now,I need to track the data at the infocube(over which the query is created) level.So,at the selection screen for the cube,what restrictions should be put for that particular characteristic?Is it all the characteristic values in the hierarchy,which are unfortunately,too many in number and might make the job rather tedious or is there any simpler alternative to view the data at the infocube level while applying the restrictions on the characteristic?
    Thanks in advance!!
    Regards,
    Minuj Sarma

    Hi,
    One check you can do to validate the data, remove the Hierarchy for that particular char. then the data is displayed in the normal form and then validate. OR if not to remove the Hier. then check in hte particular hierarchy in the RSA1 under infoobject list..
    Regards,
    Vishwa.

  • Char restriction in Bex Query Designer

    Hi Gurus,
    Can anyone explain what is the use of the Characteristic Restriction Area in in the BEx Query designer
    If i set 0CALYEAR =2008 in the Char Restriction and in the column definition i set the one of the column to display data from year 2009. Will it work ?
    Please advice
    Thank you
    BR

    There are two type of characterstic restrcitions in the query. Global and local.
    If you are createing a restrcited key figure or selection and restricting calday then it will be restricted to that particular key figure (and show 2008 data) and in the columns it will show you other years data (i.e. 2009 data).
    But if you are using a global fiter in the filter tab of query designer, then it will be applicable to the whole query.

  • Problem with hierarchy variable while displaying query in Portal

    Hi,
    I came up with an problem with a query in the portal.  The problem is :
    I have one query which is displayed in the portal. The Query has hierarchial selection criteria. I am executing the same query using analyzer. Its taking the variable from the selection and displaying it on the analyzer. I have used the option to " display the query on web " from the BEX query designer. From there its opening and displaying the results with the given selection criteria.
    Where as when i open the query seperately in portal, its not displaying the results.
    I came to know from one of my colleague that the porblem is with the Web item and the hierarchial variable declared in WAD  was different from the variable declared in the BEX Query designer.
    I never Worked with WAD. I tried finding out the variable definition. But i was unable to find out where the Hierarchial variable was defined.
    Please help me out regarding the same.

    The problem is sovled.
    Poornima.

  • Adding a Custom Hierarchy field to SPM query giving Server Error

    Hi
    I have enahnced the SPM data model with Organistaion Unit Infobject 0ORGUNIT as part of a
    enhancement requirement for using 0ORGUNIT Hierarchy .
    The field has been added to Bex Query - Spend Analysis Final and also appear in the SPM datasource.
    When I add this 0ORGNUNIT field to the SPM report in SPM UI , I get a server error.
    There isn't anymore information showing up about the error.
    I dont think I missed any step here . I a;lso checked the Analysis administration - Dimension Properties and all looks fine there.
    I can see the new field 0ORGUNIT showing up with Hierarchy selected.
    We are in SPM 3.0 support pack 7.
    Appreciate your quick help in this.
    Thanks
    Rettna Kumar

    Hi,
    Please check whether your key flex structure is frozen or not. If now please freeze it and re compile and try.
    This may helps too
    error while developing KFF in oaf
    Thanks
    Bharat
    Edited by: Bharat on May 10, 2013 4:51 AM

  • Control display level for "display as hierarchy" in BI 7 Query Designer ?

    Hi
    I'm using BI 7.0 query designer and I can see there's an additional difference between BI 3.5 and BI 7.0 in rows/columns behavior, in the "display as hierarchy" functionality.
    In BW 3.5 one could specify till what level the expand needed to be by default. So it could be 0 for totally collapsed. This is seems not possible anymore in BI 7.0 query designs anymore. Only on natural/technical hierarchies (cost center etc ...) this option is still there.
    Is there a way (javascript or other) to have the hierarchies created by "display as hierarchy" also fully collapsed by default ?
    Thanks.
    Geert

    HI, thanks for the reply.
    But this is not about the standard InfoObject 'hierarchy" tab, with all it's options on default expand levels etc.
    This is about a "pseudo structure" hierarchy which is defined at designtime (in Query Designer) and generated/shown at runtime (so bad for performance, I know). It's based on the real transaction data, not on a pre-created hierarchy as in normal hierarchies. It creates a tree view of otherwise unrelated InfoObjects, displays it in an collapsible/expandable tree shape.
    it's a bit hidden in version 7 Query Designer, compared to version 3.5. In 3.5 one had a larger set of options, including the -now lacking- default expand-to level. But in Version 7, most options are dropped. Probably due to the move from the ABAP to the java backend, lots of other stuff got culled in that move as well.
    For more info, look at the posts from Larry in this thread : [Display as Hierarchy|Display as Hierarchy]
    I know it's an option not used a lot but can be handy in certain cases.
    I really would like some help in getting a default query result with the "display as Hierarchy" collapsed.
    Thanks,
    Geert

Maybe you are looking for

  • Excise Tab not display in MIGO

    Hi, I had prepare import PO mentioning all custom duty (CVD), While doing MIGO, excise tab is not displaying it in. Please help me, its urgent matter thank's in advance Parag Lute

  • Available OLAP connection list not showing in Query browser

    Hi all, Hope everyone is doing great. I tried using query browser to consume BEx queries in dashboard. But I am not able to see the available connection list after choosing BEx query as my source in query browser. Attaching a screenshot of the same.

  • HT201255 MacBookPro Early 2011 updated to Yosemite will no longer boot.

    Hi All, I had a Mac issue a few months ago where it started to work very slow, lagging, the turning ball kept appearing. I backed up what I needed therefore, I care less about the data. Since then, at some point I wanted to encrypt it but I believe I

  • Pse 7 organizer crashes when outputting slide show

    PSE 7 closes down with the message that organizer has encountered a problem when I try to output a slide show in any form - create wmv, send to Premier Elements, write cd/dvd - a part of the file is actually output since I am able to go in and find i

  • Counting words in a textfile

    Hello I am trying to make a program that counts the number of words in a textfile specified below - later i will make it so you can choose the textfile. When I try to compile this I get the errors: java:23: char cannot be dereferenced