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

Similar Messages

  • 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

  • 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

  • How to find lsit of  Infoobjects per query in a table

    Hi All,
    is there a way to find list of all the info Objects per query in a table.
    i know there are tables like  RSZELTXREF and rszcompdir and rsrrepdir
    I am not able to make out the relation between them.
    All I want is to know what are the characteristics per query.
    I have a list of queries and need to know what are the characteristics in them.
    Please reply.
    Many Thanks,
    Joga

    Use the below way:
    1. Use RSRREPDIR table: Provide your technical name of the Query in COMPID field. Hit F8. Collec the COMPUID of the query here.
    2. Use table: RSZELTXREF: Provide the COPMUID from RSRREPDIR table in SELTUID field and hit F8. in Active version. Here collect the element details from the field TELTUID.
    3. Use table RSZELTTXT: and provide all the elements list that you hvae collected in step 2 in ELTUID field of this table. Hit F8. Once done you can see the individual object lists in Short text as well as in Long text.
    Always use Object version as "A" to get the active object list.
    Hope this clarifies your requirement.

  • 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

  • How to find the cpu usage per query for a time period

    Hi All,
    Is there a way to find the cpu used per query for a given time period?
    DB:10.2.0.5
    OS:AIX
    Thanks

    user13364377 wrote:
    if there are multiple queries starting at the same time, then what to do?Handle:      user13364377
    Status Level:      Newbie (10)
    Registered:      Jul 5, 2010
    Total Posts:      264
    Total Questions:      113 (84 unresolved)
    why so many unanswered questions?
    clarify your question
    same SQL multiple times from different sessions?
    or
    different SQLs from different sessions?

  • 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

  • Some hierarchy related issues, SQL Query is including unselected columns?

    Hello Guys...
    I have something strange happening in my report.. First of all, the RPD I have is built according to JDE model.
    There is a schema which looks like this:
    BU Dim ------->Fact<---------Account Dim <--------BU Account Dim (Indeed a copy of BU Dim)
    A dim hierarchy is created as AccountDim with Account Desc at the lowest bottom level, the dimension key at that level is AcctID which is the unique identifier.
    The issue comes when I created a report using Account, Account Desc, Fact Measures. The measures are not displayed as per account even if the joins and aggr levels are all defined correctly at the proper level..
    I checked the sql that is generately, it is interested that whenever I include Account Desc column in the report, the SQL will include Actid column in the select and groupby part, which results in data being at the wrong level..
    When I remove Actid from Account Hierarchy as the key, the report runs correctly and the SQL query won't include Actid column.. However, since the removal of the ACTid key from Account Hierarchy will cause other reports not running properly, I have to revert the change back to normal.. I'd like to know what to do in order to investigate more deeply as what's going on and as why the SQL will include columns fields that are not selected at answer levels..
    Any suggestions will be greatly appreciately.. I'd like to provide the rpd file, but not sure how to..
    Many Thanks

    Hi, Vikeng,
    Why use the salary table at all, if you're not ever getting any information from it?
    Why not:
    SELECT  EmpName
    ,      DeptName
    ,      'N/A'          AS SalaryValue
    FROM     Employee
    ,     Department
    WHERE      Employee.EmployeeId     = Department.EmployeeId
    Are you saying that somethimes there is a relationship, but not with this sample data?
    If so, post some different sample data (CREATE TABLE and INSERT statements) that has a relationship for some rows, and not for others. Post the results you want from that data, and explain, with specific examples, how you get those results from that data.
    You might just need an outer join.

  • 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

  • BW Tree Hierarchy-multiple selection for query possible?

    Hello,
    I have a question in regards to BW Tree Hierarchies and its usage in Bex Reporting:
    Is it possible to select multible Tree Hierarchy (based on the same characteristic) when executing a query in Bex Analyzer. If yes, how?
    I tried to configure this by making use of a hierarchy variable on the characteristics, but it does only allow me to select one hierarchy.
    Thanks for your help,
    Elisabeth

    Elisabeth,
    Your query can only assign one hierarchy per characteristic.
    If you need multiple ones - I'd suggest you make a query per hierarchy and you can user Query Views in the WAD to let the user select the View (i.e.. the Hierarchy) they wise.
    Regards
    Gill

  • 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.

Maybe you are looking for

  • Popup - how to get the focus in a specific compent

    Hi, I am trying to get the focus of my pop-up in the second component. Use case: New button in the table shows a popup to get the input from the user. There is a Undo Edit link (top-left) to discard changes, on top of the pop-up so by default the foc

  • No sound on youtube or any other webpage

    When I go to a website such as youtube.com or any other site that plays sound, it only plays through the speakers on my monitor. The speakers in my monitor do not work very well, so i bought a Edifier Surround Sound System. The surround sound works w

  • *** DUMP FILE SIZE IS LIMITED TO 0 BYTES ***

    I always get a trace file with *** DUMP FILE SIZE IS LIMITED TO 0 BYTES ***

  • E4200 Status_Router.asp dows not show correctly in Safari on the iPhone

    If I  use Safari on th iPhone and log into the router config and navigate to the Status section The Status_Router asp does not show any IP information the fields are empty From a "real" browser things are fine The only way I know if there is an IP is

  • Any more recent uniprocessor firmware update than 5.1.5f2?

    I've got a 1.6GHz Power Mac G5, from the original line. I've got the most up-to-date processor firmware that I know of. Is there one I can't find somewhere on the Apple site that's more recent and could fully correct the occasional kernel panic issue