FM for getting employees by JOB

Hi All,
Does anybody know the function module to be used to get a list of employees with a particular job code in SAP HR?
Thanks for the help.
Regards,
Krishnakumar PM

Hi,
You can use the function module  RH_STRUC_GET by passing the following parameters:
ACT_OTYPE = 'C' - C implies Job
ACT_OBJID = <job_key_id>
ACT_WEGID = C_S_S_P
- here C_S_S_P is the relationship ID which will link Job (C)-> Position (S) -> Personnel (P)
You shall get the  RESULT_TAB returned
In thsi RESULT_TAB delete all entries where OTYPE is not 'P'
Then the remaining entries are the personnel number (RESULT_TAB-OBJID) in RESULT_TAB table.
Cheers,
Aditya

Similar Messages

  • Table/FM for getting Employees Assigned to PM Order

    Hi All,
    Please let me know the table name or function module to get the list of employees assigned to PM Order through HRMS. I need the list of persons assigned to operations which are assigned in Requirements Tab of operation details.
    Sundar

    Hi Sundar,
    Please check BAPI_ALM_ORDER_GET_DETAIL or BAPI_ALM_OPERATION_GET_DETAIL, the operations output does give personnel number. I didnt test though if this number is same as person assigned to operation.
    Regards
    Shrikant
    Edited by: Shrikant Rakate on Nov 17, 2011 11:30 AM

  • Table/FM for getting Employees Assigned to Workcenter

    Hi All,
    Please let me know table name or function module to get the list of employees assigned to workcenter through HRMS.
    Sundar

    Sundar,
    These tables should give you what you need:
    CRHD > HRP1000 > HRP1001 > PA0001
    Paul

  • Essential skills for getting a job in programming

    I am working in digital media operations. I want to move to programming. I have checked jobs and one thing i realise is just by mastering java i wont get a job. I need skills in 3 areas for getting a decent job.
    Language such as java
    Scripting such as HTML, XML etc
    and SQL or some server
    now what are the essential skills to get a junior to mid level job in programming?

    search4survival wrote:
    it would be a lot better than salesSo that's what "digital media operations" is. I did wonder. :-)
    I would definitely read Kevin's article, because it's right on the money. Depending on how far along you are in your career, the 10,000 hours it talks about may be difficult to manage, but you may be able to get some of the way there. You might also want to ask yourself a few questions:
    1. Do you like the idea of programming, or do you just think it might get you out of your current rut?
    2. Are you willing to put in the graft? A lot of programming is repetitive and boring and, like most jobs, as a junior you'll probably get a lot of the Joe-jobs.
    3. Are you willing to put in time outside your 40-hour week - reading and doing? Because that's likely to be where you do a lot of your learning. It may take a while for the effects to be noticed by your colleagues/managers as well.
    I'm also a great believer in understanding principles, and that can involve some dry reading. So, once you've mastered the basics, look for good background material (it may also help you follow your colleagues when they're talking techno-babble):
    Language such as java - not a bad place to start, but find some material on Object Orientation (the why, not the how) once you've got past "Hello World".
    Scripting - a couple you might want to look at are perl and bash.
    SQL or some [database] - absolutely, but try and find a book on data management theory too. It's surprising how few programmers know much about it these days.
    Hope I haven't put you off too much, and best of luck.
    Winston

  • T-code for repor "Employee Action Report"

    Dear Guru,
    There is a report for getting "employee Actions List". The program name is  RPLACTJ0 (standard report)  but i dont find the Tcode for this report.
    I cheked the T.Code through SYSTEM---STATUS.  (its saying SA38.) which is ABAP program execution.
    How to find the T.code for this report. if not, can i assign the T.code for the standard program?
    Thanks.
    Manju

    Hi Purnima,
    Thanks for ur updation.
    I have tried in all possible ways, but system giving error msg "No value found"
    Tcode : se16n ---TSTC    = No value found.
    Tcode : se16   ---TSTC    = No value found.
    se11 :  its table dictionary.  I think here we cant execute any program.
    Regards
    Manjula.

  • How to read IM_ATTABS_TAB  structure to get Employee details..

    Hello friends,
      i am facing difficulty reading IM_ATTABS_TAB for getting employee details..
    i need this to code in a BADI for validating Leave request..
    i have to extract employee(who after logging in in ESS ,applies for leaves) information such as PERNR leave balance quotas,etc before i can display the suitable message...
    Now the structure IM_ATTABS_TAB has PTARQ_ATTABSDATA_TAB as associated type...which has line type as PTARQ_ATTABSDATA_STRUC..
    so now,what select statement or query gives me the desired information..
    whioch is PERNR,and other leave quotas...

    Hi bala,
    Please tell me ur problem got resolved or not.
    As i am also facing the same and it is exactly the same.
    Please help me if you are done with the same!!!
    Regards,
    Sujit

  • ESI is getting deducted though the salary is high for one employee

    Hi Experts,
    I have one employee for whom the ESI is getting deducted in january salary. though the salary is 16000 for this employee.
    what could be the reason? and hoiw to solve this error?
    Thanks and Regards
    Jaydeep Jadhav
    SAP HR Consultant

    HI,
    As mentioned by our friends you can also note the below point
    ESIC is calculated based on the monthly master components except for reimbursement pay elements ( Medical, Fuel) are included in ESIC eligibility but for calculating purpose it will also include reimbursements components.
    For eg: If an employee is having salary of Rs. 16000/- including monthly reimbursements  of Rs. 2000/-  In this case he is under ESIC bracket (16000-2000=14000) but ESIC deduction will be done on Rs. 16000/-.
    So you need to check each pay element for ESIC.

  • In mdx how to get max date for all employees is it posible shall we use group by in mdx

    in mdx how to get max date for all employees is it posible shall we use group by in mdx
    example
    empno  ename date
    1         hari        12-01-1982
    1         hari        13-06-2000
    by using above data i want to get max data

    Hi Hari3109,
    According to your description, you want to get the max date for the employees, right?
    In your scenario, do you want to get the max date for all the employees or for each employee? In MDX, we have the Max function to achieve your requirement. You can refer to Naveen's link or the link below to see the details.
    http://www.sqldbpros.com/2013/08/get-the-max-date-from-a-cube-using-mdx/
    If this is not what you want, please provide us more information about the structure of you cube, so that we can make further analysis.
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to get check number for the employee's paycheck

    Hello
    Anyone can advise on how to get the check number for an employee's pacheck
    I got employee first name,last name,GROSS salary,Tax Info,and NET salary.I need the CHECK NUMBER.
    please advise
    thanks
    kp
    Edited by: user8612301 on Dec 16, 2010 1:26 PM

    Hi,
    Or are you looking for this:
    SELECT serial_number, paaf.assignment_number
    FROM pay_assignment_actions paa, per_all_assignments_f paaf
    WHERE action_status = 'C'
    AND paaf.assignment_id = paa.assignment_id
    AND serial_number IS NOT NULL
    AND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date;
    - Viky
    Edited by: Viky on Dec 17, 2010 11:42 AM

  • RFC / BAPI for getting Directly Subordinate Employees

    Hi Experts,
    I have a simple query. Do we have any standard RFC or BAPI in ABAP which will take the pernr of Manager as input and return list of all subordinate employees.
    In fact, I am developing one MSS report. In this report, I have to display directly subordinate employees of the manager.
    If standard RFC or BAPI is not available, then kindly let me know how to know the directly subordinate employees of a manager.
    Please help.
    Regards,
    Gary

    Hi Bernd,
    I followed the below mentioned steps:
    1) Read orgeh from pa0001
    2) Passed following parameters in RH_STRUC_GET
    ACT_OTYPE      O
    ACT_OBJID        value obtained from orgeh-pa0001
    ACT_WEGID      o-o-s-p
    ACT_INT_FLAG 
    ACT_PLVAR       01
    ACT_BEGDA       26.04.2011
    ACT_ENDDA       26.04.2011
    ACT_TDEPTH      5
    ACT_TFLAG       x
    ACT_VFLAG       x
    AUTHORITY_CHECK     x
    TEXT_BUFFER_FILL
    BUFFER_MODE
    The RFC is returing 2118 records. The Manager have only 13-14 direct report. I changed the value of act_tdepth to 3 and 4. However the RFC is still giving wrong no of records.
    I am wondering why SAP does not have a standard RFC for getting direct reports. This is a very common functionality needed for any MSS development/
    Regards.
    Gary

  • Finding Manger for an employee

    Hi Friends,
    How can i find the manger for an employee?
    Suppose if the employee has BU_Manager and FUNC_Manger and HR Business partner.
    it would me most useful if you send the logic for it.......
    Thanks in Advance,
    Chandra.

    In order to get the Manager or Supervisor we need to get the position           *
    and organization unit of the manager for the person entered on the selection    *
    screen by using the certain relations from the hrp1001 with the below fields    *
    objid----Object ID                                                              *
    otype--Object Type          ( O>org unit S>position P>persion  )        *
    rsign--Relationship Specification ( A>bottom up  B-->top down      )        *
    relat--Relationship Between Objects ( 002->Reports  to                      *
                                             003--->Belongs to                       *
                                             008--->Holder                           *
                                             012--->Manages                 )        *
    sclas--Type of Related Object ( O>org unit S>position P>persion c-->job)*
    sobid----ID of Related Object                                                   *
    Then we need to get the personnel number from that we need to get the details   *
    of the manager by the infotype PA0002 by passing Personnel number               *
    REPORT  ygetsupervisor MESSAGE-ID zmsg.
                   database tables used
    TABLES:pa0001,       "Infotype 0001 (Org. Assignment)
           hrp1001,      "Infotype 1001
           pa0002.       "Infotype 0002 (Personal Data)
                   internal tables declaration
    *----internal tables for holding
    DATA: t1001          LIKE p1001 OCCURS 0 WITH HEADER LINE,
          t1002          LIKE p1001 OCCURS 0 WITH HEADER LINE,
          t1003          LIKE p1001 OCCURS 0 WITH HEADER LINE,
          t1004          LIKE p1001 OCCURS 0 WITH HEADER LINE,
          t0001          LIKE p0001 OCCURS 0 WITH HEADER LINE,
          t0002          TYPE p0002 OCCURS 0 WITH HEADER LINE.
                  variable declaration
    *---0 to capture the id of the object "may be orgunit, position, persion.
    DATA: g_sobid1  LIKE p1001-objid,
          g_sobid2  LIKE p1001-objid,
          g_sobid3  LIKE p1001-objid,
    *--to capture the personnel number
          g_pernr LIKE pa0002-pernr.
                  selection screen paramters
    *----enter a valid personnel number
    PARAMETERS:p_pernr LIKE pa0002-pernr.
                 start of selection
    START-OF-SELECTION.
    *-- Get the Position for entered Personnel number
    *----RH_READ_INFTY function module is used for the OM infotypes ..starting with HRP
      CALL FUNCTION 'RH_READ_INFTY'
        EXPORTING
          plvar                = '01'
          otype                = 'P'
          objid                = p_pernr
          infty                = '1001'
          subty                = 'B008'
          begda                = sy-datum
          endda                = sy-datum
        TABLES
          innnn                = t1001
        EXCEPTIONS
          all_infty_with_subty = 1
          nothing_found        = 2
          no_objects           = 3
          wrong_condition      = 4
          wrong_parameters     = 5
          OTHERS               = 6.
      IF sy-subrc <> 0.
        MESSAGE i000 WITH 'this number is not maintained in hrp1001'.
      ENDIF.
    *-- Get the latest record reading T1001 with following values
      SORT t1001 BY begda DESCENDING .
      READ TABLE t1001 WITH KEY objid = p_pernr   "personnel number
                                otype = 'P'       "Person
                                rsign = 'B'       "hirarchy top down
                                relat = '008'     "Holder
                                sclas = 'S'.      "Position
      IF NOT t1001[] IS INITIAL.
        g_sobid1 = t1001-sobid.                  "ID of Related Object
    *-- Get Org unit for the position obtained from above
        CALL FUNCTION 'RH_READ_INFTY'
          EXPORTING
            plvar = '01'
            otype = 'S'
            objid = g_sobid1
            infty = '1001'
            subty = 'A003'
            begda = sy-datum
            endda = sy-datum
          TABLES
            innnn = t1002.
      ENDIF.
      SORT t1002 BY begda DESCENDING .
      READ TABLE t1002 WITH KEY objid = g_sobid1
                                otype = 'S'      "Position
                                rsign = 'A'      "bottom up
                                relat = '003'    "Belongs to
                                sclas = 'O'.     "org unit
      IF NOT t1002[] IS INITIAL.
        g_sobid2 = t1002-sobid.
    *-- Get position for the Org unit (Manager)
        CALL FUNCTION 'RH_READ_INFTY'
          EXPORTING
            plvar = '01'
            otype = 'O'
            objid = g_sobid2
            infty = '1001'
            subty = 'B012'
            begda = sy-datum
            endda = sy-datum
          TABLES
            innnn = t1003.
      ENDIF.
      SORT  t1003 BY objid.
      READ TABLE t1003 WITH KEY objid = g_sobid2
                                otype = 'O'      "org unit
                                rsign = 'B'      "hirarchy top down
                                relat = '012'    "Manages
                                sclas = 'S'.     "Position
      IF NOT t1003[] IS INITIAL.
        g_sobid3 = t1003-sobid.
    *-- Get Personnel number for the Manager
        CALL FUNCTION 'RH_READ_INFTY'
          EXPORTING
            plvar = '01'
            otype = 'S'
            objid = g_sobid3
            infty = '1001'
            subty = 'A008'
            begda = sy-datum
            endda = sy-datum
          TABLES
            innnn = t1004.
      ENDIF.
      READ TABLE t1004 WITH KEY objid = g_sobid3
                                otype = 'S'      "Position
                                rsign = 'A'      "bottom up
                                relat = '008'    "Holder
                                sclas = 'P'.     "Person
      IF NOT t1004[] IS INITIAL.
        g_pernr = t1004-sobid+0(8).
    *--Get name of Manager(Supervisor)
        CALL FUNCTION 'HR_READ_INFOTYPE'
          EXPORTING
            pernr     = g_pernr
            infty     = '0002'
          TABLES
            infty_tab = t0002.
        SORT t0002 BY pernr begda.
        READ TABLE t0002 INDEX 1.
        IF NOT t0002[] IS INITIAL.
          FORMAT COLOR 7 .
          SKIP 3.
          WRITE:/1(101) sy-uline .
          WRITE:/1 sy-vline,
                 2 'manager personnel number',
                 30 sy-vline,
                 31 'manager first name' ,
                 60 sy-vline,
                 61 'manager lastname',
                 101 sy-vline.
          FORMAT COLOR OFF.
          WRITE:/1(101) sy-uline .
          WRITE:/1 sy-vline,
                 2  t0002-pernr  COLOR 4,
                 30 sy-vline,
                 31 t0002-vorna COLOR 4,
                 60 sy-vline,
                 61  t0002-nachn COLOR 4,
                 101 sy-vline.
          WRITE:/1(101) sy-uline .
        ENDIF.
      ENDIF.

  • Income Tax Projection for Retiring Employees

    Hi Folks,
    One of our Employee is getting retired in the month of August, As per SAP,In April-2009 his IT projection happens for the entire financial Year April to March 2010.
    That is his IT projection for APril to March is 5Lakhs, but his actual earnings from April to date of Separation (till august) is 3.5 Lakhs, because of this his Tax liablity from APril to July goes high and in the month of August there is a refund.
    Now for retiring Employees how can we make the IT projection happen only till the month of Retirement.  Is their any standard process available or through custom development.
    Experts Plz advice.
    Rgds,
    Sekar.

    I have personally checked this,  as facing the same problem. AND THIS IS WORKING,  THANKS FOR THE INFORMATION.
    HOWEVER THERE IS ANOTHER SOLUTION ALSO.
    One can create an retirement action,  which has to be executed for all the employees going to retire during the year.
    system will calculate the gross and project the tax only upto the retirement date.
    if exttn is required you can also config the retirement-exten action in case of extension is carried out.
    Rather than touching the standard scheme this is the best way I know?  you can also fetch the reports in the future with the help of standard reports.
    However, if anyone is having any PCR idea, that is also welcome.  Do give me a helping hand by share the same.
    Edited by: virparkash on May 23, 2011 1:19 PM

  • Income Tax deducted for withdrawn employee

    Hi Experts
    In my Client One employee is withdrawn on 31.04.2011n he got final settelement in that month,But in the june payroll for that employee income tax deducted,we have cheked all his prevoius payroll cluster but not able to get the solution.Can anyone tell why this happend
    regards
    Aakash

    Aakash,
    Once employee moves to employement status zero, payroll will only be executed if there is some master data change. Without that it is not possible. So just check if system ws triggering some retro for this test case. Also you can check IT0003 'Earliest MD change' for the reason. Alongwith it even if the user has deleted the record, you can still do the simulation run and check the results for the employee. from result you can easily track if there was any chnage.
    Edited by: Praveen Tiwari on Jun 24, 2011 7:30 PM

  • Issue while creating Absence Quota for one employee

    Hi Friends,
    Our customer has a weird issue. When time evaluation is run, One Absence Quota type (Leave in Bank) is not getting generated for Only One Employee.
    This leave type has been updated with quota in IT 2006 after running PT60 for all other employees in the PA. The issue is only with one employee.
    This absence quota is assigned "Increase" in table V_556A_B (Permit Generation of Quotas in Time Evaluation)
    Can any one please suggest how to generate the missing quota for this employee. Thank you !!

    Hi
    Thanks for your replies !!
    Please find the screenshots attached.
    Leave in Bank Absence type which is valid for 2014 is missing in IT 2006 instead This absence quota valid upto 31.12.9999 is present.
    Current requirement is to remove the quota which is valid upto 31.12.9999 and replace the quota which is valid upto 31.12.2014.
    I have checked for some PERNRs with same EG/ESG/PA/PSA combination. They have the absence quota valid upto 31.12.2014 Only.

  • Error in self service for my employee - Related Activities in MSS

    Hi,
    NW2004s SP9  EP7.0 ECC 6.0
    we are trying to implement the self service for my employee in related activites functinality from the general information of team workset ( Team --> General informatio --> Related activities --> Self service for my employee ) in MSS which is a replicaiton of ESS in MSS functionality from the previous versions.
    When
    I click on any of the options like Personal data or Addresses it gives me a blank page with no information on it. (It does give a DONE message with error/warning message on the status bar of Internet explorer. The error message says getactivetrackingEntryValue() is null)
    Do I need to do anything to get this page working. I do not see any config related to this.
    Appreciate any inputs.
    regards
    sam

    James,
    I think the note refers to note been able to display the general infromation iView itself. I have implemented the note and am able to see the genral information iView. My issue is I am not able to perform "Self service for my employees" in "related activities" iView.
    Thank for you reply and correct me if I am wrong.
    Sanjay, I have raised the issue with SAP, in the mean while if you can please let me know the patches or a list of them that are requried thyat would be awesome. Sorry for asking you this, but the basis team here asks to tell them what is requried even though I do not have sufficient authorizations to check them.
    Appreciate you help on the same.
    regards
    Sam

Maybe you are looking for