Org unit date in adhoc query

Hi
I have created a TEM query in SQ02, based on infoset \SAPQUERY\HR_TEM_E (logical database PCH),  in which I am outputting object name and date (P1000), and org unit (P8004).
The output on the org unit name corresponds to the most current version of the org unit, but my requirement is for it to match to the date that the course object exists, i.e. historical.
Would anyone know a way to code this field, or whether there is a functional solution to this?
Please do let me know.
Anyone?
Edited by: minttea on Aug 10, 2010 3:52 PM

Hi..
Pls check below code to fetch the tesxt of historical org unit. hope it will help.
*//Internal table declaration.
DATA : lt_00  TYPE STANDARD TABLE OF pa0000,
       lt_psn TYPE STANDARD TABLE OF zhrpositions,
       lt_ret TYPE STANDARD TABLE OF bapiret2,
       lt_01  TYPE STANDARD TABLE OF pa0001,
       lw_01  TYPE pa0001,
       lw_psn TYPE zhrpositions,
       lt_comps  LIKE zstr_hr_comps,
       lt_return LIKE bapiret2.
Thanks,
kl
Edited by: Narayana on Aug 10, 2010 10:50 AM

Similar Messages

  • Org unit data not being sent on Leaver records ?

    Hi
    We are holding org unit data on the org assignment in UKP, but is not getting sent in IDOC to GE5
    What could be the reason?
    Little urgent
    Please help
    Warm Regards
    Geeta

    Timecard data will goto HXT tables only in case you have the OTL Rules Evaluation preference set to Yes for the user.
    OTL to BEE Process transfers time to Batch Element Entry, and then to Oracle Human Resources or Oracle Payroll.
    For employees with the OTL Rules Evaluation preference set to Yes, this process
    does not transfer time directly to BEE. It transfers to the professional forms
    Timecard window, where you can review the batch, make corrections, and enter
    exceptions. Then use the OTLR processes to transfer to BEE.

  • Created on Date for Adhoc Query

    Hi Everyone,
    I have a requirement for creating a query which will list the adhoc queries created by the power users.
    User - Query - Infocube - Created on - No of Navs - Last Used.
    Is there a way to make the BW Stats system give me the 'Created on' Day. I know it has the Last changed date which can be either the day it was created on or enhanced on.
    Also (just a thought I had) .... No of Navs - this number denoted the number of times the query requested data (executions and drilldowns). Is there key figure which can give only the no of times the query was executed and not the drilldowns it made.
    Any suggestions will be greatly appreciated.
    Thankx!
    Kumar.
    Edited by: kumar saurabh on Aug 18, 2008 5:34 PM

    Hi..
    Pls check below code to fetch the tesxt of historical org unit. hope it will help.
    *//Internal table declaration.
    DATA : lt_00  TYPE STANDARD TABLE OF pa0000,
           lt_psn TYPE STANDARD TABLE OF zhrpositions,
           lt_ret TYPE STANDARD TABLE OF bapiret2,
           lt_01  TYPE STANDARD TABLE OF pa0001,
           lw_01  TYPE pa0001,
           lw_psn TYPE zhrpositions,
           lt_comps  LIKE zstr_hr_comps,
           lt_return LIKE bapiret2.
    Thanks,
    kl
    Edited by: Narayana on Aug 10, 2010 10:50 AM

  • About Org unit Dates

    Hi Experts,
    Plz clear my doubts. in OM.
    i want to change the one org unit starting date. And i assigned wrong position number for a emp... i want to change the position number.. how to do it? plz help me...
    How many number of SAP HR Sub Modules are available... Like OM, PA, PD, Time ..........
    like this i want to know the number of the sub nodules in SAP HR....
    Thanks in advance
    Balaji

    Hi
    Thanks for ur reply...
    To change  the position number for a EMP, i am not able to find the Org reassignement action from PA40 to execute... plz tell me how to get that action  in PA40...
    Thanks,
    Balaji

  • Org.unit dates

    hallow
    1)i wont to now how i find the org.unit valid dates begda & ennda
    i now that i have to take it from hep1000 or 1001,
    2)i wont to now how i now if org unit is valid or not
    regards

    Hi,
    go to PP01,give plan version -current plan,object type - organisational unit
    check for its validity dates and  relationships.
    Regards,
    Manoj.

  • OM - Report S_AHR_61016509 Vacant Positions doesn't pull the Org Unit data

    Hello,
    When I run the report - S_AHR_61016509 Vacant Positions, it pulls all the vacant positions. But it does not pull the information on which Org Unit the vacant position belongs to.
    The end user would like to know which org unit the vacant position belongs to in the org structure, so if there is a new hire in that org unit, we can reuse the same position.
    Please guide.
    Thanks in advance.
    Madhu

    Hi,
    On the output, click on print preview button (ShiftF6). On the next screen, click on change layout button (CtrlF8). Select the 4 hidden fields and transfer them to the left pane and click on copy.
    You can then transport the output as excel too.
    Iu2019d recommend you to save the layout by going to Settings>Layout>Saving. You would then get an option on the report selection screen to specify the layout and you could save your variant accordingly.
    Hope this helps.
    Donnie

  • Adhoc query using IT0105 -  Communication

    hello experts,,,
    we created new communication type for home telephone... i created the data in PA30 using IT0105.
    but when i try to display the data in adhoc query the home telephone did not display in Home telephone field
    but in ID/number field.
    how to display the home telephone in home telephone field during query?
    thank you

    hello...
    yes i know telephone number is stored in pa0105-USRID but in adhoc query i want it also to display in field Home telephone technical name SYHR_A_P0105_AF_MPHONE...
    how to achieve this???
    thank you

  • How are the org units created

    How are the org units created,say if i have 1000 org units which has to be created,in the PRH, what is the best solution, is it by transport or data upload?

    Hi Tom,
    I think your problem is solved . If not plz do let us know. And let us know which method you have obtained (LSMW or BDC) to upload the ORG UNIT Data??
    Have a great day..
    Regards,
    Sri..

  • Entries & Leaving Report displays data of selected not equal to org unit

    Hi,
    While using the standard report Entries & Leaving; in the selection criteria when I put
    NOT EQUAl TO(options) in front of the org unit and and mention the corresponding personnel area and entry date, the report still displays the employees with that particular org unit.
    Why is this happening? Any idea how to correct this?

    Hi Sikindar,
      I am using standard adhoc query report Entries& Leaving.( S_PH9_46000223 ). There on the selection screen I enter the following values:
    Personnel Area: GLLV
    Org Unit         : #(Not Equal To) 60000047
    Entry Date : 1.11.2008 to 28.11.2008> F8
    Now the report also displays the employees which belong to  o 60000047 which is incorrect.
    This is the exact problem and how to rectify this. Please suggest

  • Delimited Org Unit(having end date Current date) are not coming in Bex output.

    HI All ,
    I have problem with BEx query output while using the Org. Unit Time dependent Hierarchy structure. In ECC side some of the Org. Unit nodes were delimited or their end date set to less than current date. Now this hierarchy is loaded to BW on daily basis those Org. Unit also laoded to BW hierarchy and these nodesare not coming up in our query output. Client wants to see these unit data as it important to him.
    Please suggest  .
    Thanks,
    Arvind Venai

    Hi Arvind,
    As per my understanding, the valid to/end date for Hierarchy should be 31.12.9999. May I know what is Valid To in your case?
    Did yo u check the change happend in ECC for hierarchy is reflecting in BW ?
    There mught be some restriction in BEx Query , please check

  • Managing Org  units and Master Data in project structure

    How are Org units and Master data managed at the project structure? What would be the appropriate place holders for them in the structure. Should we manage it at the top of the project structure or within the  business scenarios/processes. On what basis should we decide this? How would this impact in case of a global template rollout?
    Please share your experiences regarding this.
    Thanks.
    Mike

    any talented  guy do this way.
    i think  that ur working  in E2E project work
    before  singoff ur business process u should give to ur users  master data templets..they collect for  masterdatas in before realization phase...that time  u should know  how many specifications is there and  in spections how  many in quantitative and how many qualitative u will indentify. if any query let me  back.
    Edited by: Lakshmiananda prasad on Oct 6, 2009 11:48 AM

  • Entry date not proper in adhoc query

    Hi,
    Entry date field in action infotype ( in the adhoc query) always returns 00.00.0000. Whereas the standard reports brings the entry date properly (This is from prelq.hiredate). How we can bring the values into this particular field.The feature 'ENTRY' returns DATYP but data is not maintained in IT41. System should bring the hiring action date (0000 start date) as the entry date. We want to use this entry date field in the adhoc query.
    Thanks in advance.
    Sreeja

    Hi Sreeja
    Please  read the following paragraph of the consulting note 508026 :
    "Exception:
    If the query is started with a key date selection, the query calls
    function module HR_LEAVING_DATE with the key date and not with the start
    and end date of the personnel action in which the key date exists. You
    can use modification note 562031 to change this system response."
    Please also make sure, that the corrections of note 561514 are contained in your system.
    I hope that this information be useful for you.
    Regards,
    Jun

  • Empty start validity date for an org unit

    Dears!
    some time ago we discovered a disturbing issue in Productive data. Some org units have an empty start date. I have no idea how it could be created by users, but now we need to solve it.
    The records with empty start date are visible in PP01 only in Display mode.
    The program RE_RHBEGDA0 (New start date) doesn't help. After running the new record for an object is created but there is still remaining the record with empty start date, but with shifted end date...
    Do you have any idea how to solve this?
    Thanks all in advance,
    Anastasia

    Hi,
    You are right - user definitely couldn't create it. Probably you need to ask you ABAPer.
    I can suggest you to try to copy original record and replace empty start date with valid one: PP01, IT1000, copy, change start date, save.
    Cheers!

  • 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

Maybe you are looking for