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

Similar Messages

  • 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

  • Download to excel between two given dates

    Hi All,
    I already implemented Export to Excel funtionality in webdynpro java. Now i have a requirement to download the data to Excel only between two given dates.
    I am taking two dates from the user and based on that it should download data into excel file.
    Guide me on this or send pseudocode for this.
    Regards,
    Dhruv

    Hi,
    If I understand your question correctly,
    you are gettting some data from R/3. You need to filter out that data which is in between  two given dates , export that data to excel.
    If yes, then take one more ValueNode with same structure.
    and bind the filtered data to this node.
    To filter out model node, use
    int size=wdContext.node<outputnode>().size();
    Date stDate=wdContext.currentContextElement().get<startDate>();
    Date endDate=wdContext.currentContextElement().get<endDate>();
    for(int i=0;i<size;i++)
    Date objDate=wdContext.node<outputNode>().get<outputNode>ElementAt(i).get<dateAttribute>();
    if( (objDate.compareTo(stDate)>=0) && (objDate.compareTo(endDate)<=0) )
    // Create element for value Node , set the values  (ie. i'th    record values) and add to ValueNode.
    Long process, but you can use
    Now export the ValueNode to excel
    Regards
    LN
    Edited by: Lakshmi Narayana Chowdary Namala on Sep 22, 2008 12:04 PM

  • All Dates between two given Dates

    Hi,
    I need all the dates between two given dates in select-options .
    For example  the range in select-options is 01/01/2007 - 31/03/2007 .
    I need  all the dates between the two given dates .
    How can i do this .Is there any FM for this ?
    Regards,
    Zia

    use this
    CSCP_PARA1_GET_PERIODS
    data:begin of daytab occurs 0.
            include structure scscp_period_str.
    data:end of daytab.
      call function 'CSCP_PARA1_GET_PERIODS'
        exporting
          i_datuv    = r_budat-low
          i_datub    = r_budat-high
          i_timeunit = 'D'
        tables
          et_dates   = daytab.
    here u have to put one more logic.
       loop at daytab where datuv in r_budat.
        endloop.
    So u will get all the dates
    Regards
    prabhu

  • How to find particular date lies in between two given dates

    hi,
    i have a problem. i have to find if particular day lies in between two given dates.
    example two dates are joindate and expirydate.
    1.joindate is 1/03/2007
    expdate is 1/03/2008
    now i have to find if 29 feb is in between this joindate and expirydate.
    if any1 has ny idea please reply asap.
    thanks.

    The Date class has a before() and after() method you can use to compare Date objects.

  • Reporting structure between two positions as vise versa

    Hi,
    Two positions for eg. AGM (A002 relationship) reporting to Deputy MG and Deputy MG (A002 relationship) reporting to AGM..as per my knowledge reporting structure between two posiitions is maintained with two different relationships i.e A002 and B002 relationship ie.if one relationship is maintained another is automatically maintained...is it possible to maintain two positions reporting to each other (A002)...Please help ASAP.....!!
    Thanks

    Hi Sonu,
    You are asking abt a inverse relationship and yes A/B002 will do that
    say AGM is the higger position and DGM is the lower so when DGM reporting to AGM it will be A/002 and when AGM reports to DGM then it will be B/002
    So always the higher position is taken as A and lower is B.
    Hope this clarifies ur issue.
    Thanks
    Swati

  • Department / Org. unit Hierarchy report

    Hi Team,
    I am trying to pull a department / org. unit hierarchy report that rolls-up, for example if I am an IT analyst, under Service mgmt, ultimately rolling up to IT (org. unit) similiar to PPOME view.
    I did try a FM (RH_STRUC_GET), but could not get the req. details.
    Let me know if there is something like this, that I can use.
    Thanks
    RL

    Hi,
    Please try evaluation path O-O-S-P in report RHSTRU00 as mentioned by semvladigo.
    Regards,
    Dilek

  • SQL - Can u print all the dates between two given dates (Without PL/SQL)

    Hi Friends,
    I want to know if u can print all the dates between two given dates without using pl/sql.
    date1,date2 are given
    write a sql statement to display all the dates lying between those two dates.
    An earlier will be appreciated.
    Thanks in Advance
    Sriram
    null

    Sriram,
    Try this....
    select to_date('01-JAN-00')+to_number(rownum)
    from all_tables
    where rownum < to_date('10-JAN-00')-to_date('01-JAN-00')
    TO_DATE('
    02-JAN-00
    03-JAN-00
    04-JAN-00
    05-JAN-00
    06-JAN-00
    07-JAN-00
    08-JAN-00
    09-JAN-00

  • Query to search between two specific dates and time period

    Hi,
    Need a query to search between two particular dates and time period
    Like i want to search table having one date field .
    Suppose the date range is '01-JUL-06' and '01-AUG-06' and time frame
    is 23:00:00 to 08:00:00
    i.e i want to search between dates 01 july to 01 aug and also within the time frame i.e 23:00 to 08:00 hrs only

    The general principle is
    SELECT * FROM your_table
    WHERE some_date BEWTEEN to_date('01-JUL-06') and to_date('01-AUG-06' )+0.99999
    AND  ( some_date <= trunc(some_date)+8/24
               OR  some_date >= trunc(some_date)+23/24 )
    /Cheers, APC

  • Compare time depednt master data for two key dates in a report?

    Hello all,
    We have a requirement where we want to see the difference in master data at particular key dates (time dependent master data).
    Like if employee has State = OH till yesterday (12/01/2008) and today it is changed to State =KY (12/02/2008 to 12/31/999) loaded in BW which is time dependent.
    So basically if you run the query for Key date 12/01or before you will see OH as state and if you run query for key date 12/02 or further you will see KY.
    We want to create a report where we want to list employees and compare in two columns basically the previous value and the current value. So input would be two key date variables and the report would look like
    Employee                  Key date 1(state)                  Key date 2 (state)
    Employee1                         OH                                  KY   
    Has anyone done this before, can someone help me doing this?
    Thanks,

    Hi ,
    For this scenario , Can you please create variabale ( From value -- to value ) in the key figure date .And by using the time period in the varaible u can get the employees for both the states ...
    Hope this helps out
    thanks
    PT

  • Retrieve the values in Hashtable between two keys?

    Here is my hashtable:
    Hashtable h = new Hashtable();
    h.put("1", "Value1")
    h.put("3", "Value3")
    h.put("7", "Value7")
    h.put("5", "Value5")
    h.put("4", "Value4")
    h.put("2", "Value2")
    h.put("6", "Value6")
    //My requirement is to retrieve values between two keys lets say if i pass 2,6 then it should retrieve value2,value3.....value6Thanks

    I think you need to do something like
    Hashtable h = new Hashtable();
              h.put("1", "Value1");
              h.put("3", "Value3");
              h.put("7", "Value7");
              h.put("5", "Value5");
              h.put("4", "Value4");
              h.put("2", "Value2");
              h.put("6", "Value6");
              List a = new ArrayList();
              for(int i = 1;i<=h.size(); i++){
                   while(i >= 2 && i <= 6){
                        a.add(h.get(new Integer(i)));
                        break;
              }

  • How to get PNP Org Structure to reflect the org structure as of key date?

    I created a custom program using the PNP logical database.  I defined a custom report category indicating the selection period = employee selection period and allowing org.structure.  I’m also using the standard SAP PNP_DEFAULT selection view. 
    Inside my ABAP I initialize the pnpbegda and pnpbegps to reflect 20060930.  Upon Execution the key date reflects 09/30/2006.  I click on the org.structure button.  The org.structure displayed reflects the one as of today rather than as of Sept-30. 
    During run debug I see that the RP_PNP_ORGSTRUCTURE  program, LRPPNU11, calls function 'RH_TYPE_STRUC_HELP' to get the org.structure.  The call to this function passes 09/30/2006 for the begda and endda, but it still returns the latest org.structure.  I did some playing with this function and found that if I also pass the ACT_SEARCH_WEGID as ORGEH it works.
    Any idea on how I can get the LRPPNU11 program to pass the ACT_SEARCH_WEGID or the subsequent called functions to process for ORGEH?

    thanks. but maybe I don't describe my problem well.
    I use javascript to get some information such as position, sytle of each elements and then pass these to javafx. So the besides the dom tree, I can get more information about elements.
    I need to pass them back to javafx.
    if node support setUserData, I can associate them to each Node/Element. But webkit don't support this feature.
    BTW, If javascript pass a object to javafx. it can only deal with primary types such as string, numeric. But I need pass back a complicated javascript object like:
    {name:"parent", children:[{name:"child1"},{name:"child2"}]
    I can use (String)JSObject.getMember("name"); and JSObject children=JSObject.getMember("children");
    but I can't cast children to Object[] or JSObject[].
    so I have to use some tricky to convert Javascript Object to json string and then in javafx convert it back to Object tree.
    Edited by: user12956197 on 2013-3-11 上午4:27

  • Transport of org.units and structure

    Hi all
    I know there is a possibility to transport org.units and its structure (PPOMA_BBP). There are some settings to do in table T77S0 (key = TRSP.CORR) and 2 reports RHMOVE30 and/or RHMOVE50 to be used depending on the setting done in T77S0.
    It is also required to configure ALE distribution model with IDoc type HRMD_A.
    My question is: what do I have to include in the filter? What are the relevant info types to be replicated via ALE?
    We're on SRM 4.0 with SRM Server 5.0 SP08. We don't have HR module in SAP R/3 in use.
    Thanks anyone for some help regarding this one!
    Kind regards,
    Renaud

    Hi Renaud ,
    Yr business card does not carry ID.
    PL. mail me to have a detailed doc on yr question.
    [email protected]
    BR
    Dinesh

  • Teamviewer - All positions in Org Unit display depth between EP5 and EP6

    We are in the process of upgrading our HR Portal from Version 5 to Version 6 (SP14) and have encountered an issue with the Team viewer functionality.
    In our EP5 system when the user selects the dropdown option for 'All positions in org unit' it is picking up our Configuration limiting it to showing only 3 structure levels and when an attempt is made to display lower levels the expander changes but no more levels are shown (e.g. Expander icon changes but does not render the lower level).
    In our EP6 system when the user selects the dropdown option for 'All positions in org unit' it is ignoring the same Configuration and lets the user select down to the bottom of the organisation. This will obviously have serious performance implications and so must be corrected if we are to implement this upgrade.
    To test the situation we deployed the following par files from our EP5 system to our EP6 system and found that we achieved the required result of only allowing the configured levels to be shown:
    com.sap,pct.hcm.objectanddatprovider.par
    com.sap,pct.hcm.orgmanagementeventing.par
    com.sap,pct.hcm.teamviewer.par
    This points to an issue between these files from the EP5 version to the EP6 version.
    Has anyone else experienced an issue with how the EP6 teamviewer handles the 'All positions in Org Unit' selection, and if so can you let me know any solution you have to it?
    (Note: This selection used Eval Path MDTSBESX)
    Message was edited by: Steve Caffrey

    Hello Sandeep,
    Unfortunately the only standard functionality is to change the rankings of the positions within transaction ppome. Therefore you have the buttons 'Move up in rank' and 'Move down in rank' in the overview area of the ppome. As you know if the field PRIOX in the table hrp1001 is empty, the transaction sorts the positions by OBJID. So perhaps you could create a abap program to change this standard functionality to insert values into field PRIOX for the corresponding relationship in HRP1001 that you want to sort.
    Best Regards
    Christine

  • Count the number of records between two key values (BTREE)

    How can I count the number of keys between two values?
    I'm using python driver, and BTREE access method.
    ====>
    ideally what I want is to average a whole time-series data set (the intervals can change) to a given number of points. The keys are the time stamps and the values are the data that needs to be averaged. I need to count the number of records between two time stamps so that I can divide that number by the number of points i need, and average the data. What is the best way to do this?  Or should I just keep the intervals for the time stamp constant and use RECNO access method?
    Thank you
    (first post btw.. and why aren't there many people in stackoverflow who answer Berkeley DB questions?)

    BDB is an embedded db and it does not have any internal counters or statistics that you could grap to use for this.    You will need to do it manually.
    You can create a cursor, grap the records you want, each time you get the next record you bump a counter.
    If you are using RECNO, you can use a cursor to get the record number of the record (DB_GET_RECNO), and if all you data is in
    sequentail records with no missing records you can figure out the total count by take last rec # - initial rec # + 1 to get a total count.
    If you switch over to the SQL API, you can issue a SQL query to give you a count.  Select count(*) Where .......
    Since you have to grab the data anyway, then best may be to count records as you go along.
    thanks
    mike

Maybe you are looking for