Problem in hierarchy variable

hi,
I am facing one problem with hierarchy variable , i created one hierarchy variable with ready for input , mandatory and customer exit as i need some values to be populated in the input screen and write the following exit
when 'ZHV_PCTR'  .              IF i_step = 1 .
     clear l_s_range .
     l_s_range-low = 'TEST!'.
     L_S_RANGE-SIGN = 'I'.
     L_S_RANGE-OPT = 'EQ'.
      append l_s_range to e_t_range .
   endif .
but wen the input variable is coming its coming with all the values , even test1 is not appearing .
plz letme know wts happning rong .
thnx

Hello ,
Try this code
DATA: loc_var_range TYPE rrrangeexit,
      l_s_range     TYPE rsr_s_rangesid.
IF i_step = 1.
  CASE i_vnam.
    WHEN 'TEST1'.
    CLEAR l_s_range.
     READ TABLE i_t_var_range
            INTO loc_var_range
                 WITH KEY
                 vnam = 'TEST1'.
        IF sy-subrc = 0.
           l_s_range-low = 'TEST1'.
           l_s_range-sign     = 'I'.
           l_s_range-opt      = 'EQ'.   
           APPEND l_s_range TO e_t_range.
           l_s_range-low = 'TEST2'.
           l_s_range-sign     = 'I'.
           l_s_range-opt      = 'EQ'.
           APPEND l_s_range TO e_t_range.
    ENDCASE.
ENDIF.
Thanks,
Kishore

Similar Messages

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

  • BEx web problem after upgrade: hierarchy variable and OK button

    Hi experts,
    we are busy in an upgrade project in which both portal and BW are being upgraded to 7.40.
    After upgrading we find several problems in which we get stuck.
    First problem: every query that has a variable on an infoobjects marked with a hierarchy does not work in Java Web.
    As soon as we press the lookup button the browser freezes.
    In ABAP web en Bex analyzer everything is OK.
    Our release is BW 7.40 SP5. For the Java things we had to upgrade Bex web components to 7.40 SP6.20 (BW Java and portal system).
    On OSS, SCN and google we cannot find any clues for this.
    We are preparing the OSS call for SAP but maybe anyone of you experts has faced the same issue.
    Any advice is welcome.
    Second problem:
    When a variable screen pops up and everything has been filled in, we have to press the OK button twice (instead of once).
    The first OK does a check/validate and then returns to the screen instead of proceeding when check is OK.
    Has 7.4 introduced a new setting we have to adjust for this?
    Or might this be a bug?
    Thanx for your reactions.
    Marco

    Hi,
    Regarding the variable screen button needs two click to execute, you will have to apply SP07 Patch 20 for only below 5  BI Java components for BI Java 740.
    For BI Java 730 , SP12 Patch 10 will solve this issue
    For BI Java 731,  SP12 Patch 20 will solve this issue
    This will solve your issue.
    BI-BASE-B
    BI-BASE-E
    BI-BASE-S
    BI-IBC                   
    BIWEBAPP
    Please make sure that you RESTART the Java server after applying the Patches.
    Regards,
    Amit

  • URGENT::Hierarchy Variable creating Problem in WAD

    Hi,
    I am using Profit Center as Hierarchy variable in my Queries, when i run the report in WAD portal, and select the profit center on the selection screen, after clicking the check button it appears with compounding Characteristic Controlling Area as prefix.
    In the back end for the Profit Center Hierarchy data each node has Controlling Area attached with profit center(value), whereas in master data for profit center we don't have controlling area attached with profit center(value).
    For eg: if the Profit center has value P0001 has the controlling area is CA01 then the master data of profit center shows the value as P0001 whereas when we look at Hierarchal nodes it displays as CA01P0001 along with its description.
    So when we run the Query we dont get any data because it shows that profit center CA01P0001 node does not exist in Hierarchy.
    But in Analyser Query is working fine.
    Please suggest some solution.
    Thanks in Advance.
    Regards,
    Ankur

    Hi,
    This issue is resolved with note:
    1558066    WAD Metadata corrupt due to invalid entries in RSZWMDITEM
    There are some incorrect entries in the table which is causing an issue.
    Could you please follow the below to delete the entries manually:
    1> Go to Transaction: SE16
    2> Enter the table name = RSZWMDITEM and press enter
    3> Enter the value for MDITEMNAME = TARTITLE and execute.
    4> You will find 3 entries for the value TARTITLE. Could you please
    delete all these 3 entries from this table.
    After doing the above steps, please refresh the metadata by doing the
    below steps:
    1> Open Web Application Designer.
    2> Go to Tools->Settings - > Refresh Metadata and press OK
    now close and restart the web application designer. It should work fine
    Regards,
    Venkat

  • IP Problem - Fox Formula - VARV with an hierarchy variable

    Hello,
    I would like to use the value of a variable but a hierarchy variable into a Planning function type formula
    I use the code but the system give an error.
    The first code :
    DATA CHA_PF TYPE 0PROFIT_CTR.
    CHA_PF = VARV(EVHAPF01, HIENM = PROFIT_CTR_BUDGET, VERSION= A).
    The second code :
    DATA CHA_PF TYPE 0PROFIT_CTR.
    FOREACH CHA_PF IN VARIABLE EVHAPF01,  HIENM = PROFIT_CTR_BUDGET, VERSION= A.
    I have the same error message : Variable PROFIT_CTR_BUDGET is not available in an active version
    The Profit Center hierarchie has the name PROFIT_CTR_BUDGET and it's active
    The variable EVHAPF01 has the characteristics : Hierarchy Node, Autorisation, Single Value, Variable is Ready for Input
    Could you please give me the correct code or the correct manipulation ?
    Thank you
    Edited by: Joël Vuillaume on Aug 19, 2009 5:12 PM
    Edited by: Joël Vuillaume on Aug 19, 2009 5:15 PM
    Edited by: Joël Vuillaume on Aug 19, 2009 9:50 PM

    Hi,
    Please check sap note 1086496 . This would solve your issue.
    If you use hierarchy node variables in formulas, you must specify additional context information in the FOREACH statement. You must always specify the hierarchy name.
    To do this, write HIENM = 'Variable for the hierarchy names' as an additional argument.
    If the hierarchy is time-dependent, you must specify a variable for the time. To do this, write: DATETO = 'Name for the date variable'.
    If the hierarchy is version-dependent, you must specify a variable for the version. To do this, write: VERSION = 'Name for the version variable'. 
    You must specify the information in the form of a global variable, that is, not with a variable that is defined as local in the formula. The syntax is as follows, for example:
    FOREACH GES IN VARIABLE  HIERVARBER, HIENM = HIE_NAM_1, VERSION= HIER_VERS.
    The hierarchy is version-dependent in the example.
    In your case, create a variable for hierarchy PROFIT_CTR_BUDGET and use it in VARV and Foreach.
    Thanks,
    Reshma M.

  • Problem executing BEx query Hierarchy variable with default value

    My query has hierarchy variable on 0MOVETYPE char with a default value . The 0MOVETYPE variabale restriction is in Static filter area.
    I got timeout on query execution not because of amount of data but because of this hier. variable. Any ideas why?
    Notes:
    a) The hierarchy and the 0MOVETYPE characteristic are active and correct.
    b) I've tried RSRT check, but got the same timeout error.
    c) query executes fine on dev environment. I'm getting timeouts on PRD (as I say not because of amont of data)

    Hi,
    1. Try generating the report in RSRT and see if query runs correctly
    2. Looks like you are dafulating onto top node which contains whole data may be. This is not correct as it will definitely slow down the report based on amount of data it contains. Try to remove default and try first whether query is opening.
    3. You can put some lower level defualt to understand whether amount of data is the issue.
    4. Try to increase the server time out setting and see if it runs.
    Thanks and regards

  • Problem with hierarchy change run in aggregates

    Hi,
    I have made changes in Cost center hierarchy (infact I have included 2 cost centers in a seperate node). After it I loaded hierarchy into BW through Process chain. Process chain uses Attribute/hierarchy change run process. Consequently Cost center hierarchy is loaded into BW successfully.
    In Cost center master data, hierarchy table, i can see two new records for these added costcenters in Active status. It means hierarchy change has worked properly.
    I have also read that hierarchy change run automatically reflects the changes in Aggregates, that are using Cost center info objects.
    But my problem is I did not find new added cost centers in any aggregate using cost center info object. Though it should be taken care by Attribute/hierarchy change run.
    Please suggest, if I make any change in source system hierarchy, then how and when it will impact aggregates ? How can I test that hierarchy change has impacted aggregates ?
    Thanks and Regards
    Saurabh

    Hi Fede
    Did you manage to solve your problem?
    I have a similar situation where the technical ID of the hierarchy is set as default value for the hierarchy variable in the variable input screen.
    I have noticed that if I un-check the option "Suppress 'Unassigned' Node" in the Hierarchy Attributes Settings in RSH1, then the default value is gone, but I would like to have it checked in order not to display the unassigned nodes for the end users.
    Any help or comments on what you have done to overcome this problem would be jhighly appriciated.
    Thanks.
    Regards
    Peter

  • Selection screen issue with hierarchy variable, due to compounding

    Hello people,
    I'm having this odd effect with a Hierarchy variable in the selection screen of a query,  the IObject is 0PROFIT_CTR.
    When I display the hierarchy values and pick up one of them, it returns ok to the sel.screen in this format: CO_AREA + "/" + ProfitCtr Value, example: "CANI/AR03".  (CO_AREA is compounding of 0PROFIT_CTR).
    Now,  if I hit the "check" button in the selection screen, the system converts the value to an different one, by repeating twice the compounding (CO Area) value, therefore creating an incorrect value like this: "CANI/CANIAR03". Note the string after the "/" is supposed to have only the profit center value, however now has also CO Area value (repeated).
    This value goes effectively to the query execution, but because this value does not exist, I get a message "SID value not found" and the effect is that the query does not get filtered by the value I picked up.
    Note, the same happens if I go directly to the query execution without hitting the check button, as it seems internally the system its doing the same conversion before sending the value to the query.
    I can't figure out if this is a problem of the variable, the hierarchy or the selection screen mechanism.... but I cannot find an explanation/solution.
    I trust someone has already facing this!!
    cheers and happy August to everyone.
    Fernando

    Sorry, but actually its the parent that needs tagging with "Never Share", not the level 0 member, so Alt_Entity1 and Alt_Entity2 etc, see Essbase DBA guide
    understanding Implied
    Sharing
    The shared member property defines a shared data relationship explicitly. Some
    members are shared even if you do not explicitly set them as shared. These
    members are said to be implied shared members.
    If you do not want a member to be shared implicitly, mark the parent as Never Share so
    that the data is duplicated, and is not shared. See Understanding Shared Members for an
    explanation of how shared members work.
    So in the example above
    Entity Dimension:
    E1 (user has access)
    E2
    E3(user has access)
    E4
    Alt_Entity
    Alt_Entity1 - Set to "Never Share"E1 (sharedmember)
    Alt_Entity2E2 (sharedmember)
    Alt_Entity3 - Set to "Never Share"E3 (sharedmember)
    Alt_Entity4E4 (sharedmember
    Thanks
    Anthony

  • Input hierarchy  variable is not working

    Hi,
    i have created a BI quary which have a manual input hierarchy variable.Now i have created a Universe on it,and then Qaaws.
    In Qaaws this varibale working fine,its gives proper result aCcording to selection of node.Then i have used this in Xcelsius,i have created a connection and then as input value i provided ROOT node key thorugh mapping this to one cell, and mapped the output cell.
    Now if when i preview it,its showing no data,and if remove the input node value(balnck cell) then its showing data.I find out that its not taking the value.
    What could be wrong here?How  to pass hhierarchy  node in xcelsius?
    Thanks,
    Piyush

    Hi,
    I had the exact same problem. Please have a look at this thread:
    xPost: QaaWS, BW, Xcelsius and aggregation
    Here is what you need to do (assuming you are on XI 3.1 SP2)
    1) Refresh you universe with the option Generate technical names. This will give you an additional detail for each dimension in your universe called ...techname. So if you now check e.g. L01, L02 in your hierarchy they will have this attribute.
    2) Create a new web service that includes key and the techname detail
    3) Insert this into your visualization and use it to fill e.g. a combo box (key) and return the key + techname when selected
    4) You can then use the techname to filter your second web service in the input values
    Hth.,
    Jacob Lund

  • Bex hierarchy variable leads to internal server error

    hi all,
    problem is about hierarchy variables. Whenever i have hierarchy variable with characteristic i get an error detailed below.
    "500 internal server error."
    "ERROR RS_EXCEPTION (000): SQL0104N  An unexpected token """" was found following "'1' AND "I"."SVER" =".  Expected tokens may include:  "".  SQLSTATE=42601
    ABEND RSBOLAP (000): SAPMSSY1 sınıfında  yönteminde program hatası: UNCAUGHT_EXCEPTION

    Dear John
    Thanks.
    Well, I have seen that the note mentioned  was supposed to be fixed with SP15 and we got this error after SP17...
    Thanks and Regards,
    Walt
    Edited by: Walter Olofsson on Jun 5, 2008 4:35 PM

  • Hierarchy variable in Webi report

    Dear all ,
    I'm expirence some problems in the Olap Universe , my question is :
    I can't see data in Webi report .
    Step 1 Create the webi report
    Step 2 Run the query
    Step 3 Select the Hierarchy variables in prompt parameter
    Step 4 Get the msg "No data to retreive "
    I can see the data in  BW with this Hierarchy variable so i don't understand what it's missing .
    Thanks a lot
    Bst Rgds
    Simon

    Dear Sanket ,
    Thanks for your response  , We are using the dimension it's a member of one hierarchy in the query panel without any filter .
    BOE release 3.1 Sp3
    BW 7.01 SP6 .
    Hope this helps , any further question please let me know .
    Bst Rgds
    Simon

  • Problem in hierarchy input

    Dear All,
    I have a hierarchy on cost element infoobject...
    I am using this in a report and have restricted costelement with hierarchy variable..But when i execute report while giving input for cost element it shows hierarchy and cost elements which are not present in hierarchy in not assigned node.
    What i want is when user input cost element it should show only hierarchy nodes , it should mot show not assigned node in input selection.
    Pls advise.
    regards
    Shweta

    Hi,
    Actually the problem is ...
    I have given hierarchy name but when i execute report and select cost element(GL account) from hierarchy ..
    I can see two parents nodes there ,one is for hierarchy node and other is not assigned node in which there are cost elements (GLs) which are not assigned in hierarchy so there are coming under not assigned...
    What i want is when i click  to select cost element in input parameter screen it should show only my hierarchy node and not not assigned node...
    Regards
    Shweta

  • Dimension based on hierarchy variable not showing attributes

    Hi all.
    I created a BEx query with a hierarchy variable on 0MATERIAL ready for input, so that when I execute the query it prompts me to select one of the hierarchies node. I created a universe on top of this query and the prompt is also present in the universe, as it should be. When I execute the webi report selecting on of the hierarchies available there is no problem. But when I execute the webi report without selecting any hierarchies (I want the report to show without the hierarchy bahavior), the dimension L01 material shows the values, but the L01 Material details are all empty.
    Anybody know a solution for this problem?
    Using BO XI 3.1 SP2 latest fixpack available.
    Regards,
    André

    Hi Ingo.
    I think I may not be able to generate this log, the basis team refuses to change the registry entries on Windows server. Are there other ways you can analyse this problem?
    I think this problem is related to the fact that the dimensions L00 to L06 have a select statement like .[LEVEL01].. and the details are like .[LEVEL01].[[20MATERIAL]].[Value], and when we run the webi report without choosing any value for the hierarchy, the !V000006 is not being properly substitute to "0MATERIAL". But this is a hunch. I tested creating a dimension with select statement .[LEVEL01] and substituting the details as well, then it works, but this is not a solution, because this "adaptation" leads to others problems and errors executing the report.
    André

  • How to display Hierarchy Variable in BI 7.0 WAD

    Hi Experts
    I have a variable for Cost Center which is a Hierarchy Variable and not a Hierarchy Node Variable. I am using BI WAD 7.0 and my requirement is that the user wants to see for what Hierarchy s/he ran for.
    I am using a Information Web Item whihc is under Advanced tab. After dragging that I check the box for Variables so that the user see all the variables he ran for and after s/he prints its more precise report.
    My problem is I cant see the Hierarchy variable value in my Web Template ....I can see at the variable POP UP screen I enter my Hierarchy but after executing it I dont see my Hierarchy variable value.
    Your suggestions will be reciprocated with Points.
    Thanks

    Hello Experts,
    To substantiate my earlier question ...I have 3 Hierarchies for 0COSTCENTER
    In the WAD under the Information Web ITem i check the box for
    Display Variables (VARIABLES_VISIBLE)
    I have 3 variables
    1) Hierarchy Variable : user will pick 1 out of 3 Hierarchy
    (not a node but entire Hierarchy)
    2) Fiscal  Year/period
    3) Value type
    But I can see only 2 variables after the Web template is executed , the user wants to see for what hierarchy it ran when it prints the report
    Your suggestions are supremely appreciated
    Thanks
    Nick

  • BEx Hierarchy variable - display 2nd noode

    Hello,
    I created a BEx 7.0 hierarchy variable. Is it possible when executing the query that the user see hierarchy starting from 2nd noode?
    Any idea?

    Hi Pascal,
    You can hide your first node also from query designer by selecting "Nodes with only one lower level node" in hierarchy properties and select HIDE from the drop-down menu.
    I hope this will help you to solve your problem.
    Regards,
    Niraj Sharma

Maybe you are looking for

  • Status report requirement

    Hi Experts, My requirement is MIS status report. The scenario is like,  1.we have a  few industry practices like Health care, telecoms  it services - 2.in the same way we have technical practices like sap. java. .net (the same will be utilized to for

  • IPhone email stays logged into pop3 server, never logging out

    I have an iPhone 4 with the latest firmware/software. My email provider is SureWest. They have a pop3 server I use to retrieve my email from their server. This works fine. I also use Outlook Express on my Windows machine at home to download this same

  • Masters Project:  Comparing Struts and JSF

    I'm doing a research paper for my MSCS degree at Rensselaer at Hartford, comparing the efficiency/effectiveness of using Struts alone, vs. adding JSF. I'm learning both as I go, but with a decent base in J2EE web apps. Would you consider sharing your

  • Networking mac and pc

    Hi, I am attempting to network my mac and upstairs Pc, I can see the pc from the mac, but when I click connect as, I can't log on. They are on the same time capsule network. With the PC connected to the network via Ethernet and the mac wirelessly.

  • Jad download

    Hi I'm developing an j2me application which should interact with our application server. The application server checks for version when mobile devices connect to retrieve data. If the application version running on the mobile device is not compatible