Find employees of org.unit

hi,
i table itab with org.unit and i wont to find the emp of the org.unit how i can do that?
Regards

May be check for table
select * from pa0001 where ORGEH = itab-ORGEH.

Similar Messages

  • 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

  • HR fm to calculate employees in org. unit

    Hai...
    Is ther any fm to calculate the no. of employees in the organization unit.
    Also give me example for this fm if possible.
    thanks

    call function 'RH_DIR_ORG_STRUC_GET'
           exporting
                act_orgunit     = orgunit
                act_plvar       = '01'
               act_date        = pdate
               sort_flag       = ''
               add_flag_pdata  = ''
          tables
               org_units       = orgunits
            PERSON_TAB      =  person_tab
               org_pers_rel    = org_pers_rel
          exceptions
               no_active_plvar = 1
               others          = 2
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    internal table person_tab will give you the list of employees in that particular org. unit!!
    Hope this helps!!

  • Employee and Org Unit BP Replication Question - how to stop replication

    Hi,
       We are replicating business partners using BUPA_MAIN for IS_U Scenario.  This is working fine from R/3 to CRM, and changes are replicating back properly (CRM to R/3).  We have a filter on BUPA_MAIN  for the business partners in a particular number range that we want replicating back and forth.
       We are also using an ALE scenario from HR to CRM and this seems to be correctly creating our Org Unit BP's and Employee BP's in a specific number range.
        Our problem is that we are seeing failed bdoc's in SMW01 when the system creates new bp's in the Org Unit and Employee Role.  The error is because we have not set up corresponding number range in R/3.  We have not set this number range up in R/3 because we do not want these types of BP's to replicate back to R/3.  Why are these types of BP's trying to replicate back to R/3 when we have a filter on BUPA_MAIN that does not include these number ranges?  Is there something else we need to set somewhere so that these types of BP's will not try to replicate back to R/3?
    Thanks,
    Pam Cirssman

    Hi
    first u need to do the filter settings in object BUPA_MAIN to stop the employee replication to R3.
    When u create the no. ranges in r3 u can remove the filter so that the process will continue.
    Regards
    Manohar

  • Employee resposnsibles Org unit Determination  (Employee is assigned to Org Unit)

    Hi ,
    We want to determine Org unit based on employee responsible but not on basis of USER.
    Employee responsible will be assigned to a particular position in Organization .
    We want to determine Organization unit where Employee is assigned .
    When in transaction Partner Function employee responsible is selected then Organization unit to which employee is assigned should get determined.
    When employee resposnsible is changed Org unit (Service ) should change .
    Please suggest solution.
    Thanks & Regards,
    Anup Reche

    Hi
    first u need to do the filter settings in object BUPA_MAIN to stop the employee replication to R3.
    When u create the no. ranges in r3 u can remove the filter so that the process will continue.
    Regards
    Manohar

  • Employee change Org Unit

    Is it possible to change an employee that was assigned to an Org Unit through migration?
    Organizational Management | Org Structures | End Employment Assignment is greyed out.

    Hi Michael,
    The end employment is grayed out in the WoC Org Management Edit Screen Employee Tab, if HCM is scoped and the employee is an internal employee and not a service agent.
    If HCM is not scoped or if it is a service agent you can do do the transfer in WoC OrgManagement . However do not forget to activate the org unit you transfered the employee to.
    If HCM is not scoped there is also the  lean employee UI for hiring, transfers, terminations, etc.
    Raviprasad nicely described what to do with internal employees in HCM.
    Just a remark on the manager. If there is amanger assigned to the org unit where they are transfered, this will be the new manager of the employee.
    Best regards
    Frank

  • Fetching employees under org. units.

    Hi all,
    I have to obtain a list of employees which come under a selected org. unit. This org. unit could be a main org. unit which contains subordinate org. units under which an employee resides. Can anyone tell me how to do this.
    regards,
    Hamza

    Hello,
    This FM will be helpful for you. If you want to get the list of all the employees based on the Organizational Path. You need to know the evaluation path though.
    Thanks,
    Jayant

  • Find Manager of Org Unit

    Hi All,
    I would like to find the manager of an org unit. I know there are a bunch of ways to do this (FMs or table look up using the relations...). But my question is, if the manager of the org unit I am looking for does not exists, Is there a way to get the manager of the next level org unit. And, if that manager does not exists, then next level and so on.....
    Is there a FM which would give the manager in the above manner. If not, how could this be done.
    I appreciate your help in this regard.
    Thanks
    M

    Try this
    HR-ABAP issue how to find manager in PA reporting

  • Need to get employees belonging to this org unit + its lower level org Unit

    Hi ,
        We have a requirment where in which we need to get all the employees belongs to a perticular in an     
        organization UNIT and its lower level org units.IS tehr any FM to find the same.
       i.e if we input org unit then it should return all the employees belonging to this org unit + its lower level 
        org unit(B002 relation ship)
       Any inputs are appreciated..
    Regards,
    Zareena.

    Hi Zareena,
    This is wht i understood in org management...
    evaluation path is the relation between two entities,
    entities may be
    job(C)
    position(S)
    Employee(P)
    Org Unit(O)
    O - O is line mangaer,
    S - O belongs to,
    P - S is owner of.
    i think if u observe O - O is line manger.. means in with same position
    S - O means that position belongs to the Org Unit
    P - S means the employee has that Position.
    All these type of relations will me maintained in the Infotype 1001 with the raltionships.
    All object types will be maintained in the Infotype 1000.
    Regards,
    Sreenivasulu Nallani.
    Award points if helpful..

  • How to find Org unit User has selected

    Hi All,
    We are setting up printing on our CRM 5.0 system (Web interaction centre) and was wondering if anyone knows of a way to find out what Org unit the users is logged on as ??
    We are using Actions to print specific smartforms off for the users and need the prints to go to an assigned printer.. We are hoping to use a printer that is assigned to the 'Default Printer' attribute in the org structure (PPOMA_BBP)
    As you will be aware users can be in many positions (under the org units) in the org structure and when we log onto the Web IC we get the option of which one we would like to use... Is there a function that can read this Org unit so we can use it in the printer determination BADI to decide what printer the prints will go to ???
    Many Thanks
    Gaz

    As soon as you make the profile selection,IC sets the profile and org unit in the session.
    You can read them using
    Data: lv_prof     type ref to if_ic_profile,
                    pname       type        string,
                    orgunit     type        crmt_ic_org_unit.
    lv_prof = cl_ic_profile_service=>get_instance( ).
    pname = lv_prof->get_profile( ).
    org_unit = cl_crm_ic_services=>get_org_unit(  ).
    Thanks,
    Thirumala.

  • How to find users logged on Org Unit

    Hi All,
    We are setting up printing on our CRM 5.0 system (Web interaction centre) and was wondering if anyone knows of a way to find out what Org unit the users is logged on as ??
    We are using Actions to print specific smartforms off for the users and need the prints to go to an assigned printer.. We are hoping to use a printer that is assigned to the 'Default Printer' attribute in the org structure (PPOMA_BBP)
    As you will be aware users can be in many positions (under the org units) in the org structure and when we log onto the Web IC we get the option of which one we would like to use... Is there a function that can read this Org unit so we can use it in the printer determination BADI to decide what printer the prints will go to ???
    Many Thanks
    Gaz

    In case anyone is still looking for this solution, here is how:
      data: lr_usett type ref to cl_crm_ui_user_cb.
      lr_usett = cl_crm_ui_user_cb=>get_instance( ).
      call method lr_usett->get_org_object
        importing
          ev_org_objid   = lv_objid
          ev_org_objtype = lv_otype.

  • How to find the all the org units of chief org unit

    Hi All,
    i have one cheif org unit which belongs to IT. i Just need to take all the org units into one internal table upto last org unit.
    ex: 500000 is the chief org unit then we check that belongs to taht
    550000 and 560000
    and agian 550000 is having or units
    556000 and 557000 ....
    now requirement is now i input on 500000 on selection--screen and i need to get
    550000
    556000
    557000
    560000
    I used evaluation path as o-o and used call function 'HRCM_ORGSTRUC_INFO_TABLE_GET'.
    but able to get only the just next level org units.ie. 550000 and 560000 Not others ..So is there any way where we can find all the org units that comes under the MAIN ORG UNIT 5000000.
    waiting for your valuable inputs...
    Regards
    sas

    Hi
    Use the FM: RH_STRUC_GET with the evaluation path : ORGEH.
    If you are still not able to get the required results,then go to Tcode: OOAW and find the suitable evalution path for your requirement.
    Hope definetely u will get the results.
    Regards,
    Sreeram
    Edited by: Sreeram Kumar Madisetty on Apr 22, 2009 8:25 AM

  • Org unit employees time depend

    Hello Experts,
    I need a help how to build DSO which gives all the employees in org unit & what the position for each employee between 2 dates
    Thanks

    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

  • How to view employees of "only a specific employee-group" from an org unit

    Dear All,
    I am working with authorization for  MSS , now there is following requirement ,
    There are 2 cheif positions in one orgunit , say as cheif-1 and cheif-2 , cheif-1 can view all employees exist in his organization unit ,including cheif-2 . But cheif-2 can see all those employees who belong to employee group non-management and reports to cheif -2  only.
    We have tried to restrict the chief 2 to view employee group of non-mgmt in object p_orgin but still he is able to view all employees of org unit in mss. Kindly let us know it is possible to strict chief-2 to view non-mgmt employees .. & how ?
    Kindly let me know the solution , as it is an urgent .
    Regards
    Sadia Kamal
    Edited by: Sadia Kamal on Oct 14, 2011 3:32 PM

    Dear  All,
    i used the structural authorization everything was working fine but cheif1 can view all his employees as well as cheif 2 ' employees but he can not view chief2 . any suggestion please let me know .
    Regards
    Sadia Kamal
    Edited by: Sadia Kamal on Oct 16, 2011 11:10 AM

  • CATS - How to enter times of an employee who works for 2 different Org Unit

    Hi,
    I am able to successfully enter times for an employee and do the approval process (CAT4) and CAT6 and I can see the records getting updated in PA30.
    Scenario :
    Employee works for 2 different Org Units and should be able to enter his time through Timesheet. Eg: Employee A spends 6 Hours working in Department B1  &  3 Hours in Dept B2.
    The Manager of B1 should only be able to approve 6 Hours of Employee A
    The Manager of B2 should only be able to approve 6 Hours of Employee A
    Can somebody help me out how this can be achieved?
    Regards,
    Mamta

    Hi Sameer,
    Thank you for the response. Yes, when I report the times for 2 different org units I would also want the cost for that employee distributed between org units.
    I tried your solution-> by entering times in CAT2 for Employee A for 2 different Cost Centers that I created.
    For Department B1 --> In CAT2 I entered   Cost center C1 :  6 Hours
    For Department B2  -->In CAT2 I entered   Cost center C2 :  4 Hours
    When I go to CAT4 and try to select the employee for approval and search the employee-A Org unit wise he is displayed only in his original Department -> B1 with 10 hours (6+4). What else do you think needs to be done?
    Is this anything to be done with Sender Receiver Cost Centers because the cost center C1,C2 that I created for Org Units B1 & B2 respectively are just Cost Centers. I dont know the difference between Costcenter and Sender Costcenter/Receiver Costcenter.
    I will try to explain the scenario again in case I was not clear :
    u2022Each employee has their home OU.  However these employees may be working with multiple OU each day or the week.  So potentially, the time sheet may have to be approved by multiple managers.
    Regards,
    Mamta

Maybe you are looking for

  • Display burn in - Apple does not want to replace the LCD

    Recently my iMac 24” LCD display began to have “screen burn ins“ or image persistence on the LCD. I have done extensive online research about the issue, I tried setting my screensaver to pure white and running the apple screensaver to resolve the iss

  • How to get the text of a message class

    Hi, I have a message class and added few message(with attributes) to that class. Now i want to read the text of the message based on the attributes and the message no. Example: Message 19 is - Where is &1. Where is &1. Where is &1. Where is &1. Infor

  • PO creation with reference to accepted quotation only ..

    Hi All.. I did RFQ process and rejected few quotes when i try to create PO with reference to RFQ system also proposing rejected quotations, we want only accepted quotations available to choose .. How can i restrict rejected quotes appearing in ME21N

  • NI PXI-5122 2bit external input

    Hello. I'm trying to acquire a normal Voltage signal with the channel 1. But i also have to read (with the "PXI-5122") an external 2 bit input. Sended by another device. Which port do you think is better to use to read this 2 bits? The Bits arrives i

  • Imported files sound "garbled" in Itunes, play fine in VLC

    Hey all, I have 7000+ audio files on a Lacie Rugged External Hard Drive, dumped there as I am putting them on a new computer. When I import these files into Itunes, they either don't show up, or half of them have no ID3 tag, and these files sound "ga