Variable for hierarchy

I am new to BW. I have 6 levels (L1, L2, L3, L4, L5, L6) in my hierarchy. I am doing report, for which I need to create a variable for L2 which is derived from L1. Could anyone of you please guide me how to do that?
Thanks,
Riya

Hi Riya,
Try to do the following:
1. go to the query designer and in that go to the infoobject on which you ahve the hierarchy.
2. now select the hierrachy from the list on the top right corner in the selection screen where you craete the variable.
3. now click on  variables(next to fixed values)
4. right clcik and creat a vraible (which will be a hierarchynode  variable )
5. now create the variable as you create for others.
now come back and right click on the infoobject and in properties select the level to which you want the hierarchy to be expanded to (level2)
Regards
Sri

Similar Messages

  • Creation of  Variable for Hierarchy Node

    Greetings...fellow matez,
       I am using Characteristic "0PROFIT_CTR" : PROFIT CENTER
       Here, I created used SAP <b>Standard</b> variable 0N_PCTR (Profit Center/Profit Center Hierarchy)
       This meets my requirement of allowing User to Input the TOP MOST Hierarchy Node basically means my Hierarchy.
       Now, what I need is the ability of a User Input/Key In Variable to ask for a specific Node of my Hierarchy instead of just the <b>'main'</b> hierarchy
      Let me demonstrate with an example :-
      At the moment, I have a variable defined for "0PROFIT_CTR". So, I am able to choose "XXX GROUP" as my hierarchy.
      Now, under this "XXX Group" I have several Sub-Nodes like XXX-Functional Groups ; XXX-Business Units; XXX-Subsidaries.
      How can I create a variable which prompts for this Subnodes of my hierarchy ?

    Matez,
      Issue remains unresolved.
      What I need is a <b>Hierarchy - NODE</b> variable for my "Profit and Loss" Hierarhy
      But, when I use the variable option in the 'Selecting Variable for Hierarchy' scree, I only get to choose my Hierarchy instead of my Hierarchy Node.
      How can I created a variable of type Hierarchy-NODE instead of Hierarchy for my characteristic "0Account"
    Kindly advice matez!

  • Variable for hierarchy node using in authorization

    Hi all,
    I have the following problem:
    When I create a variable for a hierarchy node and I use it for the authorization, I have the possibility to say, that a user can see all elements under a node.
    But it should now be possible, that the user can also see the usage of this node bottom-up ( multi-level usage of this node ).
    Is there a possibilty ?
    Thanks
    Dieter

    Hi,
    I would suggest you provide more details than just "doesn't work". In addition keep in mind that this is a forum and not an official support channel. In case you need a faster response you should talk to the support team.
    Ingo

  • BPS Variable for hierarchy type User-Exit

    I try to make this type of variable.
    The variable is NCSTOPU, hierarchy is
    NHSTOPU like
    NHMAIN
    -- 4
        -- 401
        -- 402
        -- 403
      -- 5
         -- 501
         -- 502
         -- 503
    So The ABAP is
    FUNCTION ZCCB_AHR_VAR_HIER.
    *"*"Ëîêàëüíûé èíòåðôåéñ:
    *"  IMPORTING
    *"     REFERENCE(I_TYPE) TYPE  UPC_Y_VAR_TYPE
    *"     REFERENCE(I_AREA) TYPE  UPC_Y_AREA
    *"     REFERENCE(I_VARIABLE) TYPE  UPC_Y_VARIABLE
    *"     REFERENCE(IS_HIE_KEY) TYPE  UPC_YS_HIE_KEY
    *"  EXPORTING
    *"     REFERENCE(ET_HIE_NODES) TYPE  UPC_YT_HIESEL
    DATA ZHIER type upc_ys_hiesel.
    *CHANM  UPC_Y_CHANM
    *HIENM     UPC_Y_HIENM
    *HIEVER     UPC_Y_HIEVER
    *DATETO     UPC_Y_DATETO
    *NODENAME     UPC_Y_NODENAME
    *HIECHA     UPC_Y_CHANM
    *DUMMY_LEAF     UPC_Y_DUMMYLEAF
    *TO_CHADEP     UPC_YTO_CHADEP
    ZHIER-CHANM      = 'NCSTOPU'.
    ZHIER-HIENM      = 'NHSTOPU'.
    ZHIER-NODENAME   = '5'.
    ZHIER-HIEVER     = 'A'.
    ZHIER-HIECHA     = '5'.
    ZHIER-DUMMY_LEAF = ''.
    ZHIER-DATETO     = '99993112'.
    INSERT ZHIER INTO TABLE ET_HIE_NODES.
    ENDFUNCTION.
    But it doesn't work.
    The mistake is
    Selected node 5 does not exist
    The node 5  selected as the start value for characteristic 5 with the specified compound table does not exist in hierarchy NHSTOPU.
    What is the problem?

    Configuration of the variable:
    Variable Type - Hierarchy node,
    Characteristic - NCSTOPU,
    Hierarchy - NHSTOPU,
    Replacement type - user-exit,
    FUNCTION MODULE NAME - ZCCB_AHR_VAR_HIER.
    In the planning level the characteristic NCSTOPU is set with this variable.
    In the Layout  1) the characteristic NCSTOPU - Lead Column,
                         2) Hierarchy in the lead column -  Hierarchical Data Model, BW Hierarchy

  • How do we create variable for hierarchy node selection

    hello all,
    I have to create a variable as to where the user ca input the node of hierarchy in his selection at the start. Do we have to create a new variable ?
    I have the hierarchy loaded for that infoobject. I tried creating a new variable but the when I select from drop down as varaibles and name of the hierarchy no variables shows up.
    Thanks

    Hi Raj,
    Please see this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/83/096d399bd2046fe10000000a114084/content.htm
    It has complete details.
    Hope this helps...

  • Cannot enter value in selection screen for Hierarchy variable.

    Hi All,
    I have a hierarchy variable on the selection screen for Org unit.
    When i execute the report via Bex or RSRT i am able to enter the value directly into the selection screen input field without going for F4 help and then selecting the value.
    But when the same query is used in web template and executed the input field for the variable on the selection screen is greyed out and doesnt allow to type in the value. Only way to fill in the value is via F4 help.
    Can anyone tell why is this happening and is there any way this can be changed?
    Thanks in advance.
    -RJ

    Hi Prakash,
    I am not able to select or click on the input field of the selection screen before and after selecting the value
    CTRL+K doesnt work for me.
    The display field is populated only when i select a node from the F4 help screen.
    When executed from RSRT the field is highlighted and i am able to enter the value unlike when executed on web browser.
    The variable is Mandatory multiple single value readu for input.
    I found an article saying that for hierarchy node variables the values are forced by F4 value help as the values that are entered manually might not be unique.
    This is the link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/15839190-0201-0010-adb1-d2edd9857b0a
    I would like to know if there is a work around or setting that can be made to make it work?
    -RJ

  • Hierarchy variable for the char

    Hi All,
    Can v creat the Hierarchy variable for the char who does not hav the heir. another thing is whats the procedure to create the hierarchy variable bcoz when i select the char to create the variable its showing var of type char. how i hav to change it to hierarchy.
    Thanx

    hie,
    i think i understood what you want.
    I think you can achieve this by following way.
    1) create a text variable for user entry. For which user enters values 2,    3, or 4 as you said.
    2) create a dummy calculated key figure and assign this text variable to its description
    3) when query will execute, user inputs values 2 or 3 or 4 which will be reflected in the output in the title of the new dummy KF.
    4) then write a macro to read that value and delete 1 or 2 or 3 columns  from output as necessary before user can access the actual results.
    Regards,
    Purvang

  • How to set bind variables for child VO in hierarchy component?

    Hi,
    Recently I created a application with Hierarchy Component with Parent VO (Query based VO with Bind variables in it) and its Child VO along with Child-Child VO(Query based VO with bind variable in it)
    I am able to set bind variable of parent VO but unable to set bind variable for Child-Child VO. Can any one help me regarding this issue?

    Hi i am getting this exception " Cannot create an object of type:java.lang.Number from type:oracle.bpel.services.datacontrol.data.DataObject with value:21159"
    Actually i am getting Decimal Value from Payload of BPEl process and i am trying to set this to The bind variable
    is that a type cast exception where can i typeCast Those values You should this in a new thread.Dont ask questions out of the scope of this thread.
    Please mark this thread as answered or helpful if you got solution for this thread.
    Thanks!!!

  • How do I create an automator variable for a path that includes a date?

    I like to use Image Capture to scan documents into a hierarchy of folders under my ~/Documents directory that are organized by year and document type.  For example, I have
    ~/Documents/archives/2011
         /Misc
         /Utilities
    and
    ~/Documents/archives/2012
         /Misc
         /Utilities
    for archiving miscellaneous docs and utilities bills. Now, switching folders in Image Capture is annoying so I want to use the Automator support built into that app to direct the scanned images to ~/Documents/archives/<Current Year>/Misc or ~/Documents/archives/<Current Year>/Utilities.  I was able to do this with separate Automator workflows, each with a hard-coded path to the destination folder.  For example,
    What I would like to do is use an Automator variable to dynamically determine ~/Documents/archives/<Current Year>/Misc.  I see variables for Home, Documents, and Current Year.   However, when I try to create a new path variable it only lets me choose a full path to a Finder folder.  How do I combine Documents and Current Year variables with the "archives" and "Misc" folder names to create a new path variable?

    Well now, you went and made me learn something today.  In the Variables Library, under Utilities, is a variable named AppleScript.  You can put a small script into this that evaluates to your path, for example:
    ((((path to documents folder) as text) & "archives:" & (year of (current date)) as text) & ":Utilities") as alias
    If the script evaluates to a proper path, it can be used wherever any other path can - you can experiment by looking at the results of a Get Value of Variable action.

  • Variable for version dep hier

    Trying to use a variable for a version dependent hierarchy in a BI query.  The version field for version dep hier is 'version' with a data element 'rsversion'.  The delivered variable is '0p_hver' however it only sees the values # and 000 ... how can I fill the check table for other values like 'act' and 'plan' hier versions?
    Thanks!
    Tim

    found one text variable which displays the text but we want to display only actual or forecast right below the column heading.
    so how do i found that text variable code.
    looked in the ZXRSRU01 code for that variable is not in there.
    thanks
    mk

  • Customer Exit variable on Hierarchy Node

    Hello Experts
    I am in the process of creating a Customer Exit variable on a Hierarchy node. This will be populated at run time based on the value of a Characteristic variable.
    The Hierarchy is activated and included in the roes of the report. I would like the end result to be exactly the same as it would if I had manually entered a variable in Hierarchy node variable
    I have written exits before for Characteristic variables, however, I am unable to get this to work for Hierarchy Node variables. Please find below the code I have prepared so far. I follow the approach of creating a seperate executable program for each Customer Exit variable. This Program will be called by the Exit.
    DATA: l_s_range TYPE rrrangesid.
      DATA:l_s_var_range TYPE rrrangeexit.
      FIELD-SYMBOLS : <fs_var_range> TYPE rrrangeexit.
      IF i_step = 2.
        READ TABLE i_t_var_range
        ASSIGNING <fs_var_range>
        WITH KEY vnam = 'ZMO_WBS_LVL2'.  " Characteristic variable
        IF sy-subrc = 0.
          l_s_range-low = <fs_var_range>-low.
         l_s_range-high = '0HIER_NODE'.*
          l_s_range-sign = 'I'.
          l_s_range-opt = 'EQ'.
          APPEND l_s_range TO e_t_range.
        endif.
      endif.
    I would be obliged if anyone can help me understand what is being overlooked. The Query is presently returning "No Applicable data found"
    Thanks in advance
    Regards
    Zubin Kurian

    Hello
    I have made the changes. Please refer the Code below for reference. This code will function display only those Nodes at and below the WBS element(s) that were entered into the variable ZMM_WBS_ELEMT
    IF i_step = 2.
      SORT i_t_var_range BY VNAM.
        LOOP AT i_t_var_range ASSIGNING <fs_var_range>
             WHERE
                  VNAM = 'ZMM_WBS_ELEMT'. " Multiple Value, & Mandatory
           IF <fs_var_range> IS ASSIGNED.
             CLEAR: l_s_range.
                l_s_range-low  = <fs_var_range>-low.
                l_s_range-high = '0WBS_ELEMT'.
                l_s_range-sign = 'I'.
                l_s_range-opt  = 'BT'.
                APPEND l_s_range TO e_t_range.
                ZVAR_COUNT = 1.
           ENDIF.
        ENDLOOP.
    Edited by: Zubin Kurian on May 10, 2011 4:38 PM

  • Variable for hierarchie node

    Hi,
    i use in my query different hierarchie nodes in columns
    For example
    COL A: Hierarchie Countries  Node: World
    COL B: Hierarchie Countries  Node: Europe
    in an other Query
    COL A: Hierarchie Countries  Node: World
    COL B: Hierarchie Countries  Node: Asia
    So i'd like to use a variable for these nodes to enter Europe or Asia.
    I've a variable for hierarchies, but when i use it i can only enter the name of the hierarchie. Here countries.
    How can i enter nodes in a variable and store them in one workbook with different tables. Both tables use the same query but one with Europe and one with Asia
    Thanks for help .... Markus

    Markus,
    Do you mean to say :
    You have different hiearchies in two different queries and would like to enter only the node ? did you try using Hierarchy node variables - this should allow you to select a hierarchy node from the hierarchy attached.
    or did you mean that depending on your node input the query should select the appropriate hierarchy - you can try this using a user exit not sure if it can be done in any other way.
    Arun

  • Different colors for hierarchy nodes in WEBI 4.0 (Possible or not)

    Hi Everyone,
    We have been listening a lot about the capability of Webi 4.0 in terms of Hierarchies from BW BEx Query. It works just fine like in BEx Analyzer, but is it possible to create formatted reports like we do in Crystal reports to display different colors for the hierarchy nodes. The reason for asking about this functionality is though Crystal Enterprise also inherits Hierarchical view from BEx Query we still won't be able to drill down in real time to do some interactive analysis.
    Where as Webi 4.0 can allow us to do interactive analysis by allowing us to drill down on the hierarchies, but it would be great to show the Webi report with different colors for the hierarchy nodes along with the drill down functionality, to give users the best look and feel while working with these reports.
    I am trying to achieve this functionality but I am not successful yet and running out of ideas. I am also not sure if this is possible or not. Can anyone throw some light or share there thoughts on this.
    Any comments will be greatly appreciated.
    Thanks & Regards,
    SRV

    Create a variable with:
         =[Object].Depth
    where [Object] has to be the one containing the BEx hierarchy.
    This function will return the hierarchy level starting with 0 (zero).
    You can use the value of the variable the in the formatting rules:
    variable   equal   [hierarchy level]
    to format all hierarchy nodes on the given level.
    R. Uli

  • RRI passing value for hierarchy

    Hello
    I have 2 queries, sender and reciever.
    In my sender query i have fund center in the rows and the hierarchy is active with a vaible entry input(mandatory) variable.
    I have the same settings for the fund center in my reciever query. The variable is also there.
    In RSBBS i have done the settings as type generic for all info objects and selected * as selection type.
    Now I execute my sender query. when i right click on the fund center(not the values appearing) to jump to the second query it then again displays the screen to enter the value for the variable for fund center for second query.
    What settings do i need to do as i do not want to see the variable screen. I want the report to show the values staright away.
    thanks

    Hi Tom,
    I'm just telling some steps for RRI.
    I'm hoping this might give you some insight on your current issue.
    Steps for RRI
    > Generate 2 querys in BEx, using 2 different cubes. 1 is a detailed version, another is a summarized version. Say, one query called TEST1 (Supplier) has a structure as under ( CustID | Material ID ) from the Customer Cube
    > Now, you have to create another query called TEST2 (Receiver),  which is a detailed version. 
    > Like say TEST2 has smtg like [CustID | PurchID | SuppID |Qty | Amt] belonging to Purchase Cube
    Goto RSBBS, Transaction code for creating a RRI
    > Now, include the TEST1 in Supplieru2019s Name
    > Now create a new request for RRI below, and use the query/report  called TEST2 under Reportu2019s Name, which is the Receiver.
    > Thatu2019s all! Itu2019s done. Now go to BEx, and execute the query TEST1, so  what we see is the outcome. We can navigate from cube 1
    (Customers) to cube 2 (Purchase).
    > Right click CustID in TEST1 Query. You can see the Goto TEST2. 
    > Now details of the purchases made by the customer is available in TEST2 Query of the Purchase Cube 
    Thanks,
    Arun Bala G
    Edited by: Arun Bala G on Jan 11, 2010 2:57 PM

  • Need a Syatem variable for Executing the report by RFC.

    Hi Experts,
    Need a Syatem variable for Executing the report by RFC.
    what i mean to say is,i can execure the report directly ...then no issues.
    But if i execute the Report by RFC ,then i should put a condition with system variable...
    Please suggest me ,how can put a condition when i am executing the report through RFC.
    Thanks
    Babu

    Hello Friend,
    what I understood that you want to put some extra condition if that report is getting called from RFC...
    you can use the system variable SY-CPROG....it will hold the value of the report when it is geeting executing directly...
    but when it is getting executed therough RFC...it will hold that RFC name...
    Thanks
    Krish

Maybe you are looking for

  • Error while deploying in NetWeaver Developer Studio

    hi I am getting an error while I am trying to deploy an portal application into the portal. It is saying that operation failed: Please make sure the server is running and the alias name is correct. anybody can help me in this issue. thanks krish

  • Report Writer Row and Column Format

    Hi Was wondering if there is a possible solution to this :- Understand that column format is controlled by format groups. This means that all figures in the same column will take the same format (such as scaling and decimal place). Scenario is ->    

  • Unclear display in mapviewer

    Can someone help me with this: I imported a tiff file as a blob in the georaster table, and can show it with mapviewer. But the image is in fact 12000 x 7500 pixels. Map is 8000 x 5000 m. While in mapviewer it can only be shown in maximum 933 x 583 I

  • No Data displayed in overview tab under Transaction Data in Support Messsag

    Dear All In support desk I am raising a message as a message creator from a satellite system Then as an administrator i assign the call to the processor At this stage when i change from Fast entry mode to Transaction Data i can see the details and co

  • "Expand" clipping mask?

    I have a halftone gradient that I used to create color inside an image.  I belive I need to make the clipped area into shapes so the screen printer can use it.  Is this even possible? Thanks Illustrator CS5