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

FM to get supervisor information?

I know the pa and hrp tables where this information is stored. But what i am looking for is a FM or BAPI where i enter an employee pernr and it returns me its supervisor pernr and other supervisor personal data such as First, Last Name and email.

If i can get supervisor pernr from the FM is also great. Because then i know an other FM which can be used to get supervisor's personal data.

Thanks

Nahman

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 10, 2007 at 03:50 PM

    Hi Nahman,

    I am not aware if there is any FM which can give pernr of supervisor for the employee pernr but for employee position you can get the supervisor / manager

    position .There are many FM's for this

    check :-

    1) RH_GET_LEADER

    2)RH_STRUC_GET

    3) RH_GET_LEADING_POSITION

    and many more ....

    well i think you can pick position of employee from hrp1001 against the pernr & get his manager position with FM & from the manager position get the manager pernr (sobid) against object type P & relationship A008 - Holder from hrp1001

    Then you already have a FM for picking up the other data you require.

    I think this shud solve your problem.

    Hope this helps.

    Kindly reward in case useful.

    Anyone having any other better thoughts or ideas or a direct FM for the same ?

    Regards & Thanks,

    Darshan Mulmule

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 10, 2007 at 04:31 PM

    AFAIK, you can't get the info in one shot.. Have you checked the sample code I posted on this Threadhttps://forums.sdn.sap.com/click.jspa?searchID=3765828&messageID=3359527">Thread>?

    ~Suresh

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Suresh,

      This is very good piece of info.

      Actually i was also searching for a similar FM in the past

      few days but hadn't found it earlier.

      Appreciate your valuable contribution.

      Rgds ,

      Darshan

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.