Hierarchy Key Date

I've noticed something strange in our system.
We have queries defined using a time-dependent hierarchy for which we specified a key date different from the query date.
Now I cannot change it because the selection options for key date are greyed-out. Even creating a query from scratch with the hierarchy results in greyed-out key-date options on the hierarchy. It defaults to the key-date of the query. Can this be a change in behaviour after upgrade to 3.5?
Regards,
Eric

Hi,
I’ve made an additional search for OSS notes. Found a lot, concerned mainly on incorrect hierarchy or query key date.
Found also very strange note, # 674220 “Date entry not valid for time-dependent hierarchy structure”:
<b>Symptom
For characteristics with time-dependent hierarchy structures, the
hierarchy validity date is always the key date of the query
Other terms
Query, time-dependent hierarchy structures
Reason and Prerequisites
Programm Error
Solution
The date radio group buttons available for Key date
has no meaning, when hierarchy structure is time-dependent. The validity
date for hierarchy will always be taken as the key date of the query.
in this case. Hence, kindly ignore any other date entered in this field.
A corrective action will be taken in the future release to stop
entering any other date.</b>
It might be understood that hierarchy key date should always be as a query key date. Though the note was applicable to earlier releases but it could be read as that in future releases this option for hierarchy key date is going to be disabled.
I’ve searched BW for 3.5 SP notes. Found nothing about this option to be disabled. Moreover, in my system this option is enabled. So, if there is a bug, I couldn’t find anything usefull.
Documentation says that this option is to be enabled for time-dependent hierarchies only. So, if your situation is not caused by a bug, then something might be wrong with your hierarchies.  Please look directly in SE16 at your H, I, J & K hierarchies tables, try to find something unusual. Maybe DATEFROM or DATETO values are missing in H table. Maybe the hierarchy is not active or corrupt. Or something. 
Should you have found nothing, the last resort is to raise OSS note to SAP.
Best regards,
Eugene
Message was edited by: Eugene Khusainov

Similar Messages

  • SAP BW Hiearchy Key Date Variables - Web Intelligence

    Hi,
    I have couple of issues / scenarios which are not working as expected. First, as I understand that hiearchy variables are supported by WebI.
    Scenario 1
    I have created a hiearchy key date variable within the report and made it optional. I run the report an no key date appears. It should appear. If I then make the hiearchy key date to mandatory I get a database error. Looks like there is a problem with hierarchy key date variables?
    Scenario 2.
    I change the hierarchy key date so it uses the key date of the query (so no longer a variable).
    As an example,I have employee "Employee X" assigned to "team A." This team moves from the Desktop team to the IT team on the 01.04.2011.
    IT
       A - 01.04.2011 -> 31.12.9999
    Desktop
       A - 01.01.2011 -> 31.03.2011
    I have a hiearchy variable so I can select a team as requied (using the object 0ORGUNIT) If I run the report using the key date 01.04.2011 the WebI report displays the current hierarchy nodes i.e.
    IT
       A
    and the data shows correctly,
    If I now re-run the report using the key date 01.03.2011 in the selection screen in the WebI report the following is still shown
    IT
       A
    If I select team A - no data is displayed. So it looks like via the use of the "Use query key date" for the hierarchy key date works but not in selection screen which is a problem.
    Is this a bug or am I doing something wrong?
    Thanks

    Hi,
    I have now got scenario 2 working - well I didnt do anything apart from run it InfoView and it is fine. But for some reason does not work in WebI Rich client - I will have a look into this furrher but am happy that it works in infoview. Sceanrio 1 is no working still I have run it in InfoView and get the error "A database error occured. The database error text is: Failed to execute MDX query. Reason: Specify a value for variable Hierarchy Key Date. (WIS 10901)" This hiearchy key date is th variable which I have created and assigend to the hiearchy so that a "hierarchy date" can be selected.
    +Scenario 1+
    +I have created a hiearchy key date variable within the report and made it optional. I run the report an no key date appears. It should appear. If I then make the hiearchy key date to mandatory I get a database error. Looks like there is a problem with hierarchy key date variables?+
    Any help is appreciated.
    Thanks.
    Edited by: Leo on Apr 25, 2011 4:20 PM

  • How to view the key mapping when viewing Hierarchy in Data Manager

    Hi! I previously posted a question on doing value mapping using the hierarchy code rather than the name. I have got that working now using concept of remote key. When I first loaded the hierarchy with remote key and check in Data Manager, I can see the hierarchy structure with the key mappings. However, when I subsequently went back to the hierarchy to have a second look, the keys are gone. Does anyone know how I can view hierarchy in Data Manager with the key mappings?
    Cheers!
    SF

    Hi,
    Go to Record mode, and open Hierarchy table. Now to select click on any hierarchy node record and then right click and select "Edit Key Mappings". This will show you existing keys as well as allow you to manually modify keys. You can only Check Remote keys on hierarchy in Record mode and in Hierarchy Mode "Edit Key Mappings" option will be disabled.
    Please revert if you face any issue.
    Regards,
    Shiv

  • Org unit Hierarchy structure between two  Key date s

    Hello Friends,
    We have an issue with displaying HR Org unit hierarchy structure between two calendar months.
    The BI Report has a selection parameter to select Org unit hierarchy , Calendar month From and Calendar month To
    The BI Report is to display the no.of sick absence days for employees in a chosen Org unit hier.
    Employee A had a sick absence of 5 days in the month 04.2011 in the Org unit X . The same employee had a sick absence of 4 days in 05.2011.The Org unit X then delimit in 05.2011 , the Org unit X is no longer in Org structure from 05.2011.
    When we run the report for 04.2011 to 04.2011 , the employee A is showing absence under Correct Org unit ie X with correct Org structure .
    When we run the Report for 05.2011 to 05.2011 , the employee A is showing absence under hierarchy Org unit Not assigned which is OK .
    But the issue is when we run the Report from 04.2011 to 05.2011 , The employee A absence days 9 (5 +4 ) showing under Not assigned Org unit hierarchy structure which is the latest Org unit .
    When I deactivate the Org unit hierarchy and choose tech name of Org unit , It is showing correct Org unit key
    But The user would like to see 5 days under org unit X and 4 days under Not assigned with Correct Org unit hier structure when we run the Report from 04.2011 to 05..2011 .
    We have a user Exit variable for the Key date in the Bex Report which seems to be taking only one date at any time .
    Is there any way to get the correct figures under Org unit hier structure where employee had absence in when we put range of calendar months on a selection screen ?
    Any advice appreciated.
    Thanks.

    Hi
    Yes, we can display the same by using time dependent hierachy's i.e. your org is converted to time dependent so that respective employee shows with respective of time.
    Regards
    Jagadeesh.M

  • Org unit Hierarchy structure  at Key date

    Hello Friends,
    We have an issue with  displaying HR Org unit hierarchy structure  between two calendar months.
    The BI Report has a selection parameter to select Org unit hierarchy , Calendar month From  and Calendar month To
    The BI Report is  to display the no.of sick absence days for employees in a chosen Org unit hier.
    Employee  A had a sick absence of 5 days  in  the month 04.2011  in the Org unit X .  The same employee had a sick absence of 4 days in 05.2011.The Org unit X then delimit in 05.2011 , the Org unit X is no longer in Org structure from 05.2011.
    When we run the report for 04.2011  to 04.2011 , the employee A is showing  absence   under Correct Org unit ie X with correct Org structure .
    When  we run the Report for 05.2011 to 05.2011 , the employee A is showing absence under  hierarchy Org unit Not assigned which is OK .
    But the issue is when we run the Report from 04.2011 to 05.2011 , The employee A absence days 9 (5 +4 ) showing under Not assigned Org unit hierarchy structure which is  the latest Org unit .
    When I deactivate the Org unit hierarchy  and choose tech name of Org unit , It is showing correct Org unit key
    But The user would like to see 5 days under org unit X  and 4 days under Not assigned with  Correct Org unit hier structure  when we run the Report from 04.2011 to 05..2011  .
    We have a user Exit variable  for  the Key date  in the Bex Report  which  seems to be taking only one date at any time .
    Is  there any way to get the correct figures under Org unit hier structure where  employee had absence in when we put range of calendar months on a selection screen ?
    Any advice appreciated.
    Thanks.

    Hi,
    You can try adding two more attributes to Org Unit as "Calender month from" and "Calender month to".
    In these attributes maintain the validity period for the corresponding master data.
    For example, in your case you can maintain the master data as:
    Employee | Org Unit | Calender month from |Calender month to | sick absence
    A | X | 4.2011| 4.2011 | 5 days
    A |    | 5.2011 | 05.2011 | 4 days
    And in report use variables for Calender month from" and "Calender month to".
    Hence, when user executes the report with selection as:
    Calender month from" = 04.2011
    "Calender month to"    =  05.2011
    The data will be read from master data based on these selections along with key date and report will show output as expected.
    Employee | Org Unit | Calender month from |Calender month to | sick absence
    A | X | 4.2011| 4.2011 | 5 days
    A |    | 5.2011 | 05.2011 | 4 days
    Hope this works for you.
    Regards,
    Geetanjali

  • Display key date of hierarchy in the query

    Hello,
    we have a query that uses a hierarchy with the time depending structure. The key date of this hierarchy has been restricted with a variable and can be entered by user in the query selection screen.
    Is there any way to display this key date variable in the query result ? Otherwise the users do not see the key date they had selected before.
    Thanks in advance !
    Regards
    Igor

    Hi Chandamita,
    Thank you so much for your quick response. I'm not sure if it will fix the issue because it has the same properties for other object which we do not encounter the issue.
    Thank you!

  • Date range for key date in hierarchy

    Dear Friends,
    Is there a work around for single key date restriction for time dependent hierarchy.Bcos i can only select one key date in teh report for my hierarchy so that it will take that hierarchy which falls in this date and display the result accordingly.
    But is there a way to select the date range for key date so that more than one hierarchy can be used to display my report accrding to the time range.
    Say,i have 4 hierarchies (time dependent) like v1,v2,v3,v4 and v5 for jan 08,feb 08,mar 08,apr 08 & may 08 respectively.
    In my report,i want to display the result for the time interval say mar to May.
    So my report should diplay the result according to the 3 different hierarchies for the time period i.e.v3,v4&v5.
    How do i acheive this.
    Thanks.
    ragu

    Hi
    I think we may do with the Char with text with replecement path.
    take time char as Calmonth and set the offet value as -1 and -2 and design the report and use the hierarchies in that query.
    Am not surt it willwork but better to try with this.

  • Select key date of time-dependent hierarchy before select a hierarchy node

    Hello experts!
    I have a Web Application which has a selection on 0ORGUNIT (organizational unit). The selection is on hierarchy nodes and the hierarchy is time-dependent.
    Because of the time-dependency I have to give a key date for the hierarchy. But I want to select the key date at runtime/execution of the query and additionally I want to select the hierarchy node and other selection criterias.
    Maybe there is a solution to get all this in one pop-up or maybe in two or another solution how I can implement this requirement.
    Thanks for help!
    Peter

    Hey!
    You don't have to use the same presentation-hierarchy like  the selection-hierarchy is which you use for the variable. While presentation-hierarchy always has a key-date, the selection-hierarchy has none. So you see all values for selection but just this which are valid for the presentation-hierarchy are selected. And there is a warning which you can supress over RSRT.
    This solution works for our problem, maybe not for yours, don't know.
    Best regards,
    Peter

  • Read (a part of) a hierarchy at key date

    Hi,
    we use function module RSNDI_SHIE_STRUCTURE_GET3 to read a orgunit and all subordinated orgunits from a hierarchy. Our problem is that this function module only read orgunits, which end date is exactly the same how the transmitted "end date parameter" of function module.
    Example:
    An orgunit 4711 (and its subordinated orgunits) has got two time slices:
    orgunit |  date from  |  date to
    4711   | 01.01.2000| 31.12.2005
    4711   | 01.01.2006| 31.12.9999
    Now we want to read the hierarchy, which is valid at 31.12.2009. The result is an empty list.
    If we use 31.12.2005, we would retrieve the first dataset.
    If we use 31.12.9999, we would retrieve the second dataset.
    Do you know a function module or a class, which can help us to solve this problem?
    Which functions a "normal" query uses to read hierarchy at at a special key date?
    Best regards,
    Christoph

    Hi,
    I still don't think we understand each other.
    If I run FBL5N I have option to select:
    - Items that are or were open at the key date are displayed on one date
    - All items posted on the posting date specified fromde date1 to date2.
    - Items that were cleared at the clearing date specified
    I would like a list of all items from option 1 (Items that are or were open at the key date are displayed on one date) so items that are or were STILL open and not yet cleared on one date, but not just for one date but for more days.
    If I use your suggestion I get what items opened or cleared on one day not how many items were still open on particular day.
    So a list of how many opened items were there at the day, and notjust items that were opened on that day but also all previous items that were not yet cleared at that day.

  • Bw time dependent hierarchy authorization in Hr - Key date problem - 0orgunit

    Hello Gurus,
    I'm facing a problem with the 0Orgunit hierarchy authorization.
    In the Rsecadmin screen we set the hierarchy authorization for 0orgunit characteristic, before selecting the hierarchy node, we enter the key date.
    I tried many cases, but neither of the key dates gives the correct results in the report. (Todays date, 01.01.1900, 31.12.9999 etc..)
    In the report the key date variable is generated by RSTHJTMAINT transaction. I guess, this is creating a problem with the authorization key date.
    A similar problem is told in the following link as well:
    http://scn.sap.com/thread/1437951
    I spend some hours, and tried many possibilities (validity period etc.), but I could'nt get it worked.
    I'm not sure if I had this error before 7.31 update.
    With this opportunity, I want to thank you every one in the Sdn community. It helps a lot for resolving our issues and sharing the knowledge.
    Thanks a lot.
    Regards.

    Hi Norbert,
    Can you check that the SAP note 1301644 has been applied in your system.
    Best Regards,
    Des Gallagher

  • Using a range of dates for Key Date

    In a HR Bi data warehouse, we have a position-to-position hierarchy, where each of the nodes are time dependent. So, it shows for each node,  valid from and valid to dates, and all the employees who are reporting to that position. This hierarchy is built on the infoobject 0HRPOSITION, which is maintained in R/3 and extracted to BI.
    Let us take an example: Position 1000 is valid from 1-1-2006 to 6-30-2006 Employees reporting to this position are A,B,C,D
                                           Position 1000 is valid from 7-1-2006 to 12-31-9999 Employees reporting to this position are A,E,F,G
    When a user chooses the position 1000, and date range 1-1-2006 to 12-31-2006, it show the complete list of employees as
    A,B,C,D,E,F,G.
    Because the Keydate can only be a single value, and it is automatically taking today's date, and pulling the nodes based on that.
    I have created a hierarchy node variable on the 0HRPOSITION infoObject, and entered the value 1000, with no value for the keydate.
    The system is simply showing employees, A,E,F and G. That is my problem
    My requirement is this: I like to be able to give a date range, (for the hierarchy)  say from 1-1-2006 to 12/31/2006 and get the complete list of Employees, which is A,B,C,D,E,F,G.
    Is this possible? Can I change the way this hierarchy is defined so that I can pull the possible values for a range?

    Thank you Ajay.
    After some thinking, I have realized that these options will not work.
    We have a position-to-position hierarchy that shows who reports to who in the organization. This hierarchy is built on the Infoobject 0HRPOSITION.  Each node in this hierarchy has is time-dependent. Note that, the entire hierarchy is not timedependent. Only the individual position nodes are time-dependent.
    This 0HRPOSITION infoobject exists in the  Heacount cube as one of the characteristics. Here is my requirement.
    1. I want to show in a report, all the employees (directly or indirectly) reporting to a manager for a period of say, 1 year?
    I know that I can specify a key date for the hierarchy 0HRPOSITION, then the report will show all the employees (direct and indirect) reporting to a position say 6/30/2008. I don't want this for a specific date, I want to get  ALL the employees (direct and indirect) reporting to a position in a range of dates( say 1 year)
    Does that make sense? How do we achieve this goal?

  • WAD 3.5 - Pass a date to Hierarchical Filter Selection Key Date

    I'm working in WAD 3.5, with 3.5 queries.  I currently have a Hierarchical Filter Selection on Org Unit using a query with no Key Date set, so as to pull the most current version of the hierarchy.  This filter selection is then applied to several charts and tables below. 
    I need the web app to initially display this current version, but also allow the user to select a date, which triggers a requery of the Hierarchical Filter Selection data provider, passing the date selection to the key date of the data provider query.  1) how do I pass the date (currently from a drop down) to the key date of the other query, and 2) how do I force a requery of the Hierarchical Filter Selection?
    The problem we are attempting to address is that if Org Unit A contained Org Units 1, 2, and 3 at the end of 2007, but only 1 and 2 today, the Hierarchical Filter Selection will not show #3, thus not allowing the user to drill down to it.  If they can choose the version/point in time of the hierarchy, they will then have the ability to drill down on the older Org Units.
    Thanks!
    Anna
    Edited by: Anna Kamrath on Feb 6, 2009 8:52 AM

    Our solution was to modify the user exit variables and store the values in a MEMORY ID and restore from there.

  • Key date description - is it possible?

    Dear all,
    we are looking for means to enable users to see/check key date descriptions when entering/choosing key date as parameter. Further problem is that second parameter is hierarchy variable for chosing node(s) from time-dependent hierarchy, i.e. appropriate hierarchy is derived from  key date (on the same parameter screen). It worked fine until this key date description feature was requested.
    Basically we just want dates (0DATE based!?) to have text (description). Until now, we found no solution.
    Any workarounds?
    Kind regrads, Josko.
    Edited by: Josko Poljak on Dec 15, 2009 5:21 PM

    Dear all,
    we solved it. Here is the solution. We created IO Z_ITER with  key (char 60) that acts as description and two nav. attributes 0DATEFROM and 0DATETO.  We do have two query variables Z_ITER_UI (based on IO Z_ITER) which is user input, it serves for user to choose from descriptions (Z_ITER key). Second var. Z_ITER_RP acts as key date . It is replacement path variable based on 0DATE and it inherits 0DATEFROM attribute from var. Z_ITER_UI. Define Z_ITER key format or/and hierarchy for easier sorting and thats it.
    Kind regards, Josko.

  • Pass Key date from Sender to Receiver Query

    Hi,
    We have a requirement to pass key date from the sender query to receiver query.
    In our sender query we derive the key date based on the calendar month value entered by the user on the variable screen and this is used to determine the hierarchy structure to be used for report.
    The user have the option to drill down to detailed query (using RRI) from the context menu option. We would like to use the same key date in the drill down query as the sender query. The drill down query does not have any variable selection.
    In RRI settings I can not see the way to pass on the key date.
    Any help is appreciated.
    Thanks,
    Ankit

    Hi Suman,
    Yes, we do not have variables in the receiver query as we expect the settings in RSBBS to pass the filter values to the receiver query and which is being done consistently.
    The problem is that we do not have any option to pass key date. If required we can add a customer exit variable but how will it work if the user does not want to enter the variable values for the drill down report.
    Thanks
    Ankit

  • Determine key date at runtime for time-dependant hierarchies

    Hello all,
    I have to develop a query based on time-dependant  and version-dependant hierarchy.
    I have selection variables for -
    Fiscal year
    posting period
    version
    and hierarchy .
    I want to achieve this -
    First I want to enter Fiscal Period and posting period and version as user input.
    Once this input is done I want to determine the key date based on fiscal year and posting period.
    Once the key date is determined i want the hierarchy variable dropdown to show only correct hierarchy in that time for selection.
    Is it possible? Please suggest the ways.
    Many thanks and best regards,
    Surekha

    I have written following code for determining key date based on fisc year and posting period.
    It may be useful for someone
    WHEN  'key date variable'.
        REFRESH e_t_range.
        CLEAR l_s_range.
        IF i_step = 2.
          READ TABLE i_t_var_range INTO loc_var_range WITH KEY vnam = 'fisc year variable'.
          l_date(4) = loc_var_range-low.
          CLEAR loc_var_range.
          READ TABLE i_t_var_range INTO loc_var_range WITH KEY vnam = 'posting period variable'.
          IF loc_var_range-low >= 12.
            l_date+4(4) = '1201'.
          ELSE.
            l_date+6(2) ='01'.
            l_date4(2) = loc_var_range-low1(2).
          ENDIF.
    *get the last day of the posting period month
         CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH'
            EXPORTING
              day_in            = l_date
            IMPORTING
              last_day_of_month = l_date
            EXCEPTIONS
              day_in_not_valid  = 1
              OTHERS            = 2.
          l_s_range-low = l_date.
          l_s_range-sign = 'I'.
          l_s_range-opt  = 'EQ'.
          APPEND l_s_range TO e_t_range.
        ENDIF.

Maybe you are looking for

  • How to add the "Voltage Calibration"in the DCpower for IVI drive??

    How to add the "Voltage Calibration"in the DCpower for IVI drive??

  • Anyone else lost the Airdrop icon on iPad Mini?

    When I first installed iOS7 I had the Airdrop icon for a couple of hours but then it dissappeared. If I reboot the device (iPad mini ... should support Airdrop) and go directly to Control Center I can see it for a second, but then it quickly fades aw

  • Cursors in forms 6i

    Hi experts , Please tell me whether usage of cursor with a cursor is permited in forms 6i or not because when i am executing the code in oracle 9i it is running fine but when ever i am using the below code in form the second cursor is not responding

  • Problem regarding SAP Project System & Material Management

    Hello Experts, please check our process as below: Order confirms than sales order and project will create material of BOM is assigned to any activity in project so these material (RM) will be procured and consumed assign activity for all work done on

  • Product relationships data to find partner & warranty category

    HI experts, i have a product created in commpr01 as type material , for this product in relationships warranty category & vendors are assigned Can any one let me know if there is a FM or table to find for a product a warranty or vendor is assgined wh