Skip to Content
author's profile photo Former Member
Former Member

HR ABAP - Reporting Employees

Hi All,

I want to enter personnel number as input and I want to get all reportees to that employee .

Can anyone provide me the code of Function Module ?

Does it is same for all Organizations?

Thanks,

Srinivas

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 17, 2008 at 11:39 AM

    Hello,

    U can use the logical database PNP for your output daata.This LDB gives you full options to retrive whatever kind of data is required.

    Regards,

    Neeraj

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      get the Org unit for that pernr ..

      and use

      CLEAR : it_result_tab , it_result_tab[].

      CALL FUNCTION 'RH_STRUC_GET'

      EXPORTING

      act_otype = 'O'

      act_objid = v_sobid2

      act_wegid = 'PERS-O'

      act_begda = sy-datum

      act_endda = sy-datum

      TABLES

      result_tab = it_result_tab.

      LOOP AT it_result_tab WHERE otype = 'P'.

      it_detail-pernr = it_result_tab-objid+0(8).

      APPEND it_detail.

      CLEAR it_detail.

      ENDLOOP.

  • author's profile photo Former Member
    Former Member
    Posted on Jul 22, 2008 at 10:11 AM

    Use FM : RH_STRUC_GET

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.