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!

Similar Messages

  • 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

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

  • 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

  • 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

  • Selection screen for Hierarchy Node Variable

    HI All,
    I Have an issue with Hierarchy Node Variable , in my selection screen the for an info object , Z_ACCT  i have a Hierarchy Node Varable it only displays Text on F4 help , i want to desplay both Text and Key , i check in the Info Object bex setting it is set as Text and Key, so if any one can throw some lite on it, it will be of grt help.
    Regards,
    Abraham

    Hey, I found an SAP Note for this issue:
    Note 912130 -
    https://service.sap.com/sap/support/notes/912130
    Looks like there is something that could be done.
    Give it a try and hope this helps.

  • 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

  • Create link or dropdown for hierarchy nodes.

    Hi friends, I need your expertise in solving my senario. We have a costcenter with about 10+ hierachy levels. The customer wants to bypass the query varible screen (hierarchy node varible, year, month,mandatory) by selecting the node either from dropdown box or radio button or link from the intranet web page. This is little bit challenging for me. How can I create nodes, level by level and pass to the queryString. What is the best way to implement this.
    Thanks for your help.
    Ram

    Moorthy -
    A dropdown or radio button will work but you will need to use JavaScript to pass the hierarchy and node values and build the command through URL parameterization. First you will need to set the hierarchy, this can be done by passing a hierarchy value to a hierarchy variable using the "Set Variable Values" command. Then you can filter to a specific node using the "Set Selection State Simple" command. This link is a good place to start and get familiar with the fundamentals.
    http://help.sap.com/saphelp_nw70/helpdata/en/43/ef05462480025ae10000000a1553f7/frameset.htm
    A bit of advice learned the hard way. When filtering the node, you must use the "Set Selection State Simple" command and include the controlling area as part of the string.

  • Search Help for Hierarchy Node in SAP BW 7.3

    Hi Experts,
    We were previously using SAP BW 7.1 system and we had a table which used to be maintained through SM30 which has a customed search help on one of the fields for a hierarchy object. And it was working perfectly.
    However, one of our systems have just been migrated into 7.3 version and the above functionality is no longer working.
    This is what is happening now:
    - User selects a hierarchy and after selection nothing is being displayed on field on the table.
    We have tried to debug this customed search help in both environments to distinguish what is wrong. We have noted that a standard function module (RRSV_IOBJ_VALUE_OUTPUT) is not behaving similarly. In 7.1 system, the C_T_DATA table is being filled whereby in the 7.3 system, it is empty.
    Do you think this is the issue?
    Please do advise and propose what can be done to make it work. Or any idea on how to create a new search help for a hierarchy node in 7.3?
    Thanks in advance.

    hi,
    one more thing i will like to add here is in BW 7.3 you get a new security admin feature that allows you to make mass changes to authorizations instead of one-by-one. This can be done by cut-and-paste in a worklist, hierarchy nodes, and you can also add users to multiple analysis authorizations.
    The u2018newu2019 authorizations has both the data value and hierarchy restrictions. You can still build using the u201CRSECADMINu201D transaction
    Also make sure that all objects are in the TLIBG library and they will be 'shielded' during the upgrade.
    regards
    laksh

  • How set up visualization attributes for Hierarchy nodes?

    I have a hierarchy for 0ACCOUNT and i see in the report the hierarchy totally expanded but in the Query Designer i can
    set the values for 0ACCOUNT to show the ID only for every account but the hierarchy have more nodes (text nodes in addition to accounts) i need that ONLY TEXT NODES show the Description of Text Nodes instead of Technical Node ID........in query designer you could set for accounts that show Text, ID or both but in for text nodes there´s no way to do this.......in Query execution you could set up this with extended menu....and you could set up that only shows Text for Hierechy nodes.....I hope somebody could help me with this...
    Regards

    You are right, the only way to do that is save the query as workbook, then setup the description, text, etc in the workbook , and finally save the workbook in the way you want to view.
    Regards

  • 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

  • Customer Exit for Hierarchy node

    Hi Experts,
    I have a Hierarchy variable in the BEx report. While entering the value for the hierarchy if the user clicks on F4 help it shows the complete hierarchy structure.
    In the hierarchy we have 6 levels. I wanted to write a exit so that user can see all the nodes with hierarchy level 4.
    I have written an ABAP code which returns the same. My question is I have to copy the complete code in the include ZXRSRU01 or I can keep that separate.
    and alsowanted to know whether my requirement can be achieved by this or not.
    If yes, than what will be the sample coding keeping in mind that i have all the data in iternal table say 'itab' of ABAP Program.
    Thanks in advance.
    Regards,
    Lalit

    Hi,
    yeah i am able to run the query in RSRT in debug mode. and my code is working fine. but in analyzer or web it is nor working..
    Regards.
    Ak

  • Select Filter value for Hierarchy node taking long time

    Dear Experts,
    I am facing an issue with the Filter value selection in a BEx query and searched the forum for a solution but found none.
    I have a free characteristic with hierarchy enabled for it and the Filter value selection at Query execution has been set to 'Values in Master data table' in the query definition and in the Multiprovider as well.
    However, whenever the filter value selection is performed, the values are being read from teh underlying infocubes instead of the Master data.
    We tried checking the BIA Index for the cube as well as the InfoObject and all is fine.
    Can someone please point what might be going wrong here.
    Thanks & Regards,
    Sonal

    Could you please check as per Note 1565809 and make sure the F4 mode is really M mode in each level settings?

  • Creation Exit variable for Sales office Characteristic

    Hi Experts,  can anybody suggest me,
    My requirement is like i have to create Exit Variable on Sales Office Characteristic, by using Exit, in this exit it i should get the values of Sales office 2201 To 2299 only.
    plese give the sample code tobe written in the Function Module.
    Thanks in Advance.

    Hi,
    You can check with code below in function module:-
    Parameters of function module:
    Import : I_area type UPC_Y_Area.
                ITO_CHA type UPC_YTO_CHA.
    Changing : XS_CHA type any.
    Source code
    Field symbol: <salesoffice> type any.
    assign component of 'Technical name of sales office ' of structure xs_cha to <salesoffice>.
    If <salesoffice> <= 2201 and <salesoffice> >= 2299.
    Message e001(message class).
    endif.
    Hope it may be helpful.

Maybe you are looking for