ABAP HR - Org Unit

Hi Experts,
I have some 20 org units and each one has 1 manager and 15 employees. Now i want to find the Terminated employees. If I check with each PERNR means it takes lot of time. So Is there  any way to find the terminated employees?
In other words, Based on Manager PERNR is it possible to find How many employees are terminated By this Manager?
Expecting your valuable reply,
Your helps wil be Highly Appreciated.

If you want a report that will display terminated employees, then I think best bet would be to use PNP and read status of the employee = terminated/withdrawn.
If you want to make it faster then do a select statement on PA0000 into an internal table and then loop through that table.
If you want a report where you can give manager's pernr and find out how many (or a list of) employees terminated by this manager then you can use PCH LDB. Or again select statements on HRP1000 and HRP1001.

Similar Messages

  • HR ABAP Posiition Holder Org Unit value going dump

    Hi Experts,
    I am working now HR ABAP. My issue is,  I am using standard Program RHXPEP01. This Program is nothing but. Profile Match up Position/Holder.
    Once i execute this program and enter the  value of Org. Unit Value is 60010128. Then after 15mints it will be going dump.
    The error message is going to many iterations are going on.
    If I execute 60010129 it is working fine. This Org Units are avilable in Production.
    Can you plz help me on this.
    Thank You
    Sri

    Hi ,
    Please check this thread might be helpful.
    Runtime Errors STORAGE_PARAMETERS_WRONG_SET
    Regards,
    Siraj.

  • 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

  • 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!

  • 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

  • PPOME - Org.Unit (Acount assignment) goes into DUMP

    Hello Gurus,
    ive got a Big issue, concerning SAP HR module.
    When we start the TC: PPOME we select org.unit from the structure.
    It is beeing showed normaly, but only when we select Acount assignment it goes straight into DUMP,
    saying:
    Runtime Errors         STORAGE_PARAMETERS_WRONG_SET
    What can you do?                                                                 
        Note which actions and input led to the error.   
        For further help in handling the problem, contact your SAP administrator     
        You can use the ABAP dump analysis transaction ST22 to view and manage       
        termination messages, in particular for long term reference.                 
        In the system profile, set the parameters                                    
        -abap/heap_area_dia and                                                      
        -abap/heap_area_nondia                                                       
        to a maximum of 189714480. To be on the safe side, reduce the value by 10,000,
        000.                                                                         
        Then restart the SAP system.       
    These corrections are not needed since the system for every other purpose (SD, MM, FI) is working, only for HR module during acount assignment is going into DUMP.
    Any advice why this happens to some of the Org.Units?
    Regards,
    Laurynas Prikockis

    Hi ,
    Please check this thread might be helpful.
    Runtime Errors STORAGE_PARAMETERS_WRONG_SET
    Regards,
    Siraj.

  • 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

  • Display positions in Org unit sorted by Position Desc

    Hi All,
    Can you please let me know how the positions in an Org unit can be displayed in sorted order by position description? Like in PPOME when you display/change an Org unit we should be able to see similar positions displayed together in sorted order based on their description and not the eight digit object id.
    Thanks!
    Sandeep

    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

  • 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.

  • Determine the Org Unit

    Can we find out what methods we have to determine the Org Unit the agent belongs in ABAP?
    Please do let me know.
    Thanks

    Hi Mohan,
    Refer the following thread :
    Re: Org Unit
    <b>Reward points if it helps.</b>
    Regards,
    Amit Mishra

  • Find org.unit of cost center

    hallow
    i have table of cost center and i wont to find all the or.unit of that belong to costcenters how i can do that?
    Regards

    Hi
    You need to Join two tables PA0001 and T527x as a data source in your query. Give the org units as a input parameter for this query.
    Another way is to check the IMG settings where the functionals have mapped org units and cost center. Since I am an ABAPer so I dont know how they do it.
    Reward points, if helpful.
    Regards
    Waz

  • SD required org units

    Hello Folks,
    I know the standard SD org units required to be able to use SAP SD.
    But are org units Client and Company code optional org units when configuring for SD module? To be able to use just the SD module are these 2 units optional?
    I think company code is a must since customer master requires company code.
    Why I ask is because my trainer told me these 2 are optional and I noted this down on my notes.
    Business area is optional that i know. But is Shipping point and transportation planning points also both optional in SD?
    So, kindly just confirm for me please.
    thanks.
    Tom

    Hello,
    Pls refer following links :--
    http://www.youtube.com/watch?v=IeLWYfrFEIU
    client level , company code level , chart of account level
    Create client copy
    A client is organizational and legal entity in the SAP system. All the business management data is protected here because other clients can not access them. The main objective of the client is to keep the data isolated. The data in a client can be only visible within that client; it can not be displayed or changed from another client. In a physical SAP system there can be multiple clients. Each of these clients can have different objective or each client represents a unique work environment. In a development environment one client can be used as sandbox client (developers learn how to configuration using SAP environment), one can be used as prototype client (users do the customizing according to the companyu2019s requirements and testing) and another one can be used as the master development and configuration client (where the final configuration is done). A client has its own set of tables and user data.  There can be multiple clients in each of the system of SAP system landscape . Customizing is a method in the SAP R/3 system that helps the user to configure the functionality from SAP, according to the customer requirements. When the SAP objects are just used by only one client, we define them as client dependant data. There are some objects as ABAP/4 programs, which are used by all the clients in a SAP system. Those objects are called client independent data. The functional changes resulting from customizing can be client specific (client dependant) or general (client independent). You must know the fact that client independent customizing can create problems if the authorizations and the client strategy are not defined properly. For example if you have three clients in a development environment then the role of each client should be defined properly. One of these three clients should be used for client independent customizing and in other clients, users will not have the authority to do any client independent configuration.
    Hope it helps ..
    Regards/Rajesh

  • HRMD_ABA - create org unit and matching BP automatically

    HRMD_ABA05 IDOC creates org unit but not with BP  as expected.               
    Note 550055 has been read.
    The settings in t77s0 seem to be OK. Maybe I go something wrong ?
    report HRALXSYNC can be run  and it will  create the BP from the ORG Unit.
    So why doesnt the orginal create via IDOC result in BP as expected/documented.
    ABAP STACK is 7.10 sp4
    Any tips on what to check appreciated.
    Cheers
    Phil

    Hi Kai
    Into Master data->Bussines partner->Integration Business partner-Organizational managment, there set up follow parameters:
    HRALX     OPROL     BUP004     Business Partner Role (Organizational Unit).
    ORGEH     PROLE     BUP004     Role of organizational unit in business partner
    Try with both parameters, it is if you activate HR-CRM integration.

  • Restrict Opportunity access from other Org Unit Sales agent

    Hello,
    My Scenario is, there is different Organisation Units and Sales agents are assigned to those Org units. Now the issue is, Sales agent from one Org unit is looking into the opportunity of other Org unit. As the sales agents have their own targets and competition, one should not see the Opportunities of other Org unit.
    How can we achieve this ?
       a ) Can we achieve this through PFCG roles, if so how ?
       b) I heard about the concept of Access control engine, which is usefull in this kind of scenario's. but again we need to implement ACS here, which I dont have ides.
    Please suggest me the best method to achieve this. Also provide me step by step procedure also to achieve this.
    Thanks,
    MD.

    Hi, madhusudan444.
    Yes, you can achieve this by PFCG.  Authorization objects CRM_ORD_LP or CRM_ORD_OE will help you.
    For more information, please, follow to this link:
    http://help.sap.com/saphelp_crm70/helpdata/EN/48/a44236ceb873e8e10000000a42189b/frameset.htm
    I would not recommend using ACE in this issue, because ACE is abap. Your issue can achieve by standard procedure.

  • 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

Maybe you are looking for

  • ERROR IN SALES ORDER AND QUOTATIONS

    Hi All, " An Error has occured in the system RQ13000LS while copying the Document " , This is an Error displaying in Quotation to follow up Sales Order and while Saving Sales order - This error populates....hope many of them faced this instances , Pl

  • Screen black on Ipad won't respond.  How do I fix this?

    My Ipad was updating and then the screen it just went black.  NowI cannot start it up?  The only function which is working is Siri. Help

  • Regarding Versioning of OBIEE11g reports

    Hi , I want to check the techniques fo report versioning in OBIEE such as using source control /within OBIEE11g . Can we integrate the source control with OBIEE 11g for report versioning . I know , it can be done for RPD .

  • Microsoft Outlook will not close!

    I updated the software on my Macbook Pro, and ever since I cannot close my Microsoft Outlook. It asks for my product key, which I enter in correctly, but it says it's invalid. And  can't update my iTunes until I can close Outlook - please help!!

  • The blue circle bar is stuck and I can't download apps in App Store

    So yeah I can't download apps, it all stared past few days, I downloaded tons of apps and lastly I downloaded Asphalt 8 and since then when I download app like mortal combat X it won't download it, the blue circle keeps going back and back when you l