CAT2 Org Unit Structural Authorizations - Employees moving to different Org

Hello, everyone -
We currently use structural authorizations to restrict time keepers to only maintain time entries for employees in their org units. If an employee moves to an org unit maintained by a different timekeeper, we want to continue to allow the previous time keeper to maintain entries for the time the employee was in their org.
Example: pernr 1 starts out in org unit X. Org Unit X time entries are maintained by time keeper A. Effective 5/1/2014, pernr 1 moves to org unit Y, whose time entries are maintained by timekeeper B. The standard maintenance data entry profile allows the user to go back 6 weeks. On 5/2/2014, time keeper A tries to enter overtime worked by pernr 1 for his org unit on 4/30/2014. He receives the error "Not authorized to maintain data for personnel number &2 using profile &1".
How do we allow a timekeeper to make entries for any employee who was in any of their org units, even if they're no longer there?
Thanks in advance, and I'll definitely reward points for any helpful answers.
- Steve

Hi, Rohit -
The actual scenario is that we are set up to move all withdrawn personnel numbers to a pooled "separated" position in a separate org unit. This frees their previous position to be filled by a new hire. It also means that a LOT of personnel numbers are in this org unit, which the time keeper should not have access to.
D.  -
We're using a custom function module entered in T77PR to retrieve the organization units that the time keepers should access.  Here are the entries in T77PR:
(The "Maint."/Processing Type column is checked for all 3 rows.)
Z_HRLY_TMKPR 1 01 O          O_S_P 12 3   ZBC_GET_TKEEPER_ORGS_BY_USER
Z_HRLY_TMKPR 2 01 S          O_S_P 12 3   ZBC_GET_TKEEPER_ORGS_BY_USER
Z_HRLY_TMKPR 3 01 P          O_S_P 12 3   ZBC_GET_TKEEPER_ORGS_BY_USER
The function module uses a custom evaluation path ZHT that looks like this:
15 * B 008 Holder * S
20 S B ZHT Hourly Timekeeper * O
30 US A 208 Is identical to * P
I'm not sure what you'd like to see related to the profile... Is there a way to configure the CAT2 logic to allow a user to maintain a personnel number who is in the org for at least part of the time that the employee was in an organization that the user is authorized to maintain?
Thanks again,
- Steve

Similar Messages

  • For an Org Unit, how do we get all Reporting Org units (Also employees reporting to the sub org unit) & Employees ?

    Hi Experts,
    I have a very common requirement in SAP HCM ABAP development.
    For an Org Unit, how do we get all Reporting Org units(Also employees reporting to the sub org unit) & Employees ?
    I have tried using RH_STRUC_GET_MULTIPLE_ROOTS and RHPH_STRUCTURE_READ, but the evaluation path is insufficient to get all objects under it. I tried with both O-S-P and O-O-S-P evaluation paths and as per some constraints, I can’t create a customized evaluation path for a reason.
    I am using PNPCE database for user selection screen and user would be advising the Org unit. I even referred the standard transaction ‘S_AHR_61016495’ which is using PCH logical database.
    I would really appreciate if anyone could provide a solution for this. (Rewards guranteed )
    Kindly help.
    Thank you.
    Regards,
    Mahesh Konade

    Hi Alexandre,
    Although I could not respond in time, thank you so much for your prompt reply.
    I had used the same RHPH_STRUCTURE_READ and passed the appropriate values to it, but it did not populate the required results. I cross checked the results manually, may be some relations issue. But later I tried using RH_STRUC_GET_MULTIPLE_ROOTS and it worked fine.
    Meanwhile I had done a workaround with PCH and RH_STRUC_GET and it served the purpose of getting all the Org units, it’s reporting sub-org-units, positions and persons (The deepest structure from the root org unit advised on selection screen).
    The solution I used is, I captured the org-units advised on selection screen by user using PCH logical database and then by looping on sub-org units reporting to the main org-unit I populated related positions and persons holding them and assigned it to the PNPCE logical database.
    Thank you so much for the help.
    Regards,
    Mahesh Konade

  • HR Data Synchronization (Org Unit, Position and Employee) to SRM

    Hi All Expert,
    Currently, I had replicate the HR data (Org Unit, Position and Employee) to SRM thru transaction PFAL.
    Each time there is a new position or new employee, I have to run PFAL and run manually by include the new position number or new employee into the program to replicate to SRM.
    Does SAP have any specifiy program or step which I have follow to allow such automation? Is there any variant that I could set?
    How to trigger the new Org units which are created in HR to replicate to SRM without any manual input into selection field of Object ID during running the PFAL?
    We are trying to achieve automation of synchronization between changes/new  creation in HR to replicate to SRM.
    Thank for your help.
    Paul

    Hello Paul,
    Below notes will surely help you..
    1.The composite note for the process is 390380 - HR/ALE distribution in EBP/SRM.
    2.The initial description of the process can be found in note 312090 - Integration HR -
    EBP/SRM.
    Thanks & Regards
    Arshad

  • Critical abap hr req - How to find the previous org unit of the employee?

    Hi Experts ,
    I need small inputs from your end...
    I need to find the employee org unit based on the latest one.....
    i just want to know if an employe is Transfered from the org unit .....we can check it from the ORG unit.
    My requirement is to now capture only the org unit of IT folks not for the employees who are transfered to NON-IT department.....
    sop if an empployee 5000 org unit belongs to IT of employee 1000 and NOW he transfered out of IT with current 6000 org unit then how can we read that 5000 ?
    now i am using PCH logical data base...
    Based on evaluation path(Pers-0)  i will pick up the pernr 1000.
    now when i check the org unit it is 6000 with end da 12/31/9999.
    then i loop
    select * from pa0001 into itab where pernr = objec--objid and otype = 'P'.
    enselect.
    loop at itab where pernr = objec-objid.
    Here in the loop what is the logic we need to write to pick up the previous org unit please suggest
    endloop.
    Regards
    sas

    >
    Faisal Altaf wrote:
    > Hi,
    >
    > Please Test the following Sample Code hope it will solve out your problem,
    >
    >
    TABLES: pa0001.
    >
    > DATA: it_pa0001 LIKE STANDARD TABLE OF pa0001 WITH HEADER LINE,
    >       begda TYPE begda.
    >
    > SELECT SINGLE begda FROM pa0001 INTO begda
    >   WHERE pernr = '00000001'
    >     AND endda = '99991231'.
    >
    > begda = begda - 1.
    >
    > SELECT * FROM pa0001
    >   INTO CORRESPONDING FIELDS OF TABLE it_pa0001
    >   WHERE pernr = '00000001'
    >     AND endda = begda.
    >
    > Please Reply if any Issue,
    >
    > Best Regards,
    > Faisal
    Hy Faisal...what is the begda value there?
    Regards
    sas

  • Org.units structure/hierarchy

    Hi all,
    I need org.units hierarchy/structure. I think of a table with fields like org.unit id, parent org.unit id. The data should be suitable for building a tree later which will display the org.units hierarchy.
    I read much in the forum, but I didn't find smth helpful.
    Is there a function module which exports such a data?
    Thanks,
    Ogniana

    Hi!
    Well I don't know any function modules about it. I'm reading them directly from the table HRP1000, HRP1001. It is a bit complicated and requires a few hours till figures out the keys and the hierarchy (OBJID is the upper and SOBID is the lower level) in this table.
    If no one will post a useful function module, you might try these tables.
    I'll check back later maybe I can use a function module, if someone posts one...
    Best regards
    Tamá

  • Org unit head of an org unit of an employee

    Hi all,
    I want to create an abap program where i have the personal number of a person. Now i want to find the org unit of that person, which I will find from PA0001. Now i want to get the position of the manager or the head of that org unit and from that position I want to get the holder of that position ( pernr) and ultimately the name of that person.
    Can anyone help me with the CODING of the above problem?
    Can anyone provide me a sample code for it.
    Thanks
    Ribhu

    Refer this Function Module, it wil give u the immediate manager name of a employee number, u can call this in a ABAPProgram after creating it or u can copy this code and paste it in a ABAP program.
    FUNCTION ZGILL_APPROVER.
    *"*"Local interface:
    *"  IMPORTING
    *"     REFERENCE(PERNR) TYPE  PERSNO
    *"  EXPORTING
    *"     REFERENCE(NAME) TYPE  PAD_CNAME
    *"  EXCEPTIONS
    *"      NO_DATA
    DATA: ls_sobid1 TYPE sobid,
          ls_sobid2 TYPE sobid,
          ls_sobid3 TYPE sobid,
          vorna type PAD_VORNA,
          nachn type PAD_NACHN.
      SELECT SINGLE sobid FROM hrp1001 INTO ls_sobid1
       WHERE otype = 'P'
       and   plvar = '01'
       AND   objid = pernr
       AND   endda >= sy-datum
       AND   begda <= sy-datum
       AND   rsign = 'B'
       AND   relat = '008'.
    IF sy-subrc EQ 0.
    SELECT SINGLE sobid FROM hrp1001 INTO ls_sobid2
       WHERE otype = 'S'
       and   plvar = '01'
       AND   objid = ls_sobid1
       AND   endda >= sy-datum
       AND   begda <= sy-datum
       AND   rsign = 'A'
       AND   relat = '002'.
    IF sy-subrc EQ 0.
    SELECT SINGLE sobid FROM hrp1001 INTO ls_sobid3
       WHERE otype = 'S'
       and   plvar = '01'
       AND   objid = ls_sobid2
       AND   endda >= sy-datum
       AND   begda <= sy-datum
       AND   rsign = 'A'
       AND   relat = '008'.
    IF sy-subrc EQ 0.
    SELECT SINGLE vorna nachn from pa0002 INTO (vorna , nachn)
       WHERE pernr = ls_sobid3
       AND   endda >= sy-datum
       AND   begda <= sy-datum.
    IF sy-subrc EQ 0.
    Concatenate vorna nachn into name separated by SPACE.
    condense name.
    else.
    Raise NO_DATA.
    endif.
    else.
    Raise NO_DATA.
    endif.
    else.
    Raise NO_DATA.
    endif.
    else.
    RAISE no_data.
    endif.
    ENDFUNCTION.

  • Org. unit and associated material groups download from Org. structure

    Hi,
    I want to download the material groups and associated material groups(Defined in External attributes) from organisation structure.
    Please suggest how to do it.
    Best regards,
    Sambit

    Hi. There's a point. You said you wanted to download a list so I presumed you wanted all the org units and all the material groups assigned to them.
    If you only want to do it 1 org unit at a time the function will work perfectly.
    I f you do want to see all I have had another thought actually.
    You could run program RHOMATTRIBUTES_REPLACE.
    This allows you to replace 1 attribute with another, but if you do not press the "change" button it works as a good report on attributes.
    If you just put in attibute PRCAT and then Old Value = Logical System of backend and New Value = Logical system of backend and tick substring then execute, it will show you all the org units and all the material groups.
    Just be careful not to press the replace button on the output, that would actually change data.
    Regards,
    Dave.

  • Position Level in Org Unit Structure

    Hi,
    Is there any FM or way to find out the position level in Org UNit for example, Chief Position level will be 1 and Chief subordinates level will be 2 and so on.
    Br,
    Piyush

    Hi,
       Use FM : RH_STRUC_GET
    Regards,
    Srini.

  • Org unit structure

    Hi,
    Is it possible for a person (engineer in this case) to have direct reports but at the same time that person is not a Chief (and not part of a separate org unit)?
    If that is possible, are there potential implications with something like head-count reports, or other potential issues?
    Thanks for any help,
    Alli

    Hi,
      The requirement can be done.But i dont understand the need of this reuirement.
    For having direct access to reports ,you can give the necessary Authorisation.
    But for the approval part,if the same guy is approving his/hers,it not required at all.
    Regards,
    Manoj.

  • 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

  • OM - Moving Org Unit don't change relat 002 between my Position

    Hi,
    I have a problem with my OM system,
    I have five org unit (A B C D E) everyone with one position head of own organizational unit, a b c d e.
    this is my hierarchy
    A
    (a)
         B
          (b)
              C
               (c)  
         D
          (d)
              E
               (e)
    I have this relat in HRP1001
    Org Unit     Positions
    A 002 B     a 002 b
    A 002 D     a 002 d
    B 002 C     b 002 c
    D 002 E     d 002 e
    I'm moving (with ppome transaction) org unit C with its position c, under org unit D.
    A
    (a)
         B
          (b)             
         D
          (d)
              E
               (e)
              C
               (c)
    After the moving in HRP1001, relationship between org unit has changed B 002 C (is delimited) D 002 C (is new).
    But, I don't have relationship between Position d and c (d 002 c), and relationship between position b and c (b 002 c ) is still valid!!!
    Org Unit     Positions
    A 002 B     a 002 b
    A 002 D     a 002 d
    D 002 C     b 002 c d 002 c
    D 002 E     d 002 e
    Could someone help me?
    regards
    Fede

    Hi Frederica,
    if I understand your problem correctly, I'm afraid there is a major design flaw in your OM.
    You have an Org-hierrchy with leader positions assigned to each orgunit and the "normal"positions also assigned to those orgunits. This is absolutely sufficient for the system to know, who is reporting to whom and standard reports, evaluation paths, structural auth., workflows all can be set up to work with this correctly. And this is best practise.
    BUT you also seem to be using a position hierarchy in parallel. A position hierarchy is really only meant to be a quick and chaep alternative for an Org hierarchy, if you don't want to create orgunits. There is no new information in there. It's completely redundant. And your problem is proof for why this redundancy is damaging: you get inconsitencies.
    I"ve seen this before. Whilst their might be good resons for it (I"ve never seen one), thsi is usually done by consultants, who don't understand orgmanegement or do understand that what they are doing is wrong, but rather have teh customer do double manual work with almost guaranteed inconsistencies than make an effort to properly understand struc. authorisations, reports or workflows. If you have no clue about OM, the extra position hierarchy can make some things easier.
    So, my recommendation is:
    1) check our, where the position hierarchy is used for reporting, workflow, authorisations or other things in your system
    2) replace this by the org hierarchy
    3) delete the position hierrchy (i.e. the 002 relationships between positions)

  • CRM employee (business partner) & org unit extraction question

    Hi all,
    I have a question regarding extracting business partner and org unit in CRM. Basically user wants to report on employee level and org unit level.
    When I looked at the org unit hierarchy datasource (0BBP_ORGUNIT_HR01_HIER), it does not include the employee. I also tried the DS 0BP_UNAME_ORGUNIT_ATTR, but that does not give me the org unit of an employee.
    Any hint is highly appreciated.
    Best regards,
    Ben

    HI
    Try this DS  0CRM_POSITION_ATTR,here u will get the org.unit,but u need to add the users (employees) in the data source.
    Sridath..

  • Function Module for fnding all employees under an Org Unit

    Hi,
    Is there any Function module to find the employees of an ORG Unit .
    I need to specify the Org unit Name and get the employees out of it .
    I looked at the FM
    HRCM_ORGUNIT_EMPLOYEE_LIST_GET .
    It has import parameters as
    OTYP
    OBJID
    PATH_ID
    What values do i need to pass.

    hi,
    chk this.
    call function 'HRCM_ORGUNIT_EMPLOYEE_LIST_GET'
    exporting
    plvar = p_plvar
    otype = 'O '
    objid = s_orgeh-low
    begda = p_effdt
    endda = p_effdt
    * PATH_ID = 'O-S-P'
    tables
    pernr_table = i_pernr
    exceptions
    path_error = 1
    root_error = 2
    no_employees_found = 3
    others = 4
    Thanks,
    Anver

  • Moving The Chief Including Direct Reports to Another Org Unit

    Dear Expertise,
    We have a request to move the manager including his direct reports employees to a different org unit.
    I'm looking for a way to achieve this through function module.
    Can anyone shred some light or if any Standard FM available to reuse?
    Your Sincerely,
    SE

    Hi,
    certainly I do not believe there is any standard code for doing this.
    Are you trying to code up an application that lets you do this? If so, the have a look at the decoupled infotype framework classes (CL_HRBAS_* ) for maintaining OM infotypes - you could use these to delimit the old relationships and create new ones in the target org unit.
    In particular have a look at class - CL_HRBAS_PLAIN_INFOTYPE_ACCESS.
    if you're just looking for an easy way to do it - lots of dragging and dropping in PPOME would probably be the easiest!
    hope that helps,
    Chris

Maybe you are looking for

  • I accidently deleted apple mobile device driver how do I get it back?

    I am using a Toshiba c650 laptop with windows 7 64 bit home premium . I tried system restore but to no avail I also reinstalled itunes but no good Any help would be appreciated.

  • Reservation system for unique product in SAP in timeschedule

    Is it possible somewhere to reserve products for a certain period of time and that the system checks whether the product is already reserved or not. the business case is as follows: we have a department which is responsible for the renting of audio v

  • Where can i get my ipod touch 5th generation screen replaced for, like, $50 to $60 dollars?

    where can i get my ipod touch 5th generation screen replaced for, like, $50 to $60 dollars? I broke it a few days ago and so far havent been able to find a place to repair it. Also,it would be best if the place was online, because live in a small tow

  • Setting pfile

    hello, I am a junior DBA and iam working at production site i have some doubts regarding pfile settings My database configuration is ORACLE 9i:(WINDOWS) As far as i know for setting PFILE for WINDOWS OS we should allocate 20% of RAM And the Remaining

  • Digital Voice Recorder iMac compatible

    Hope I'm in the right forum! Still very new to iMac and still in the process of transferring data from Windows. Each day I come across something that is not compatible - today it is my Olympus Voice Recorder which I rely on. I used to download the re