Function Module to get Manager

Advertisement
Hi Friends,
  Is there any function module available that gets the manager using PERNR? Can i use SWX_GET_MANAGER?
Thanks in advance.
Nathan.
Advertisement

Replay

Hi,
   Thanks. I tried to use this FM. Couldnt get the manager using PERNR. If i use  US<userid> of an employee it works fine. I dont know the combination of values that i have to pass to the ac_container if i want to use PERNR.
Eg, For US<userid>
Element = ORG_OBJECT
ELEMLENGTH = 025
TYPE = C
VALUE = US<userid>
Similarly is there a way to get the manager passing PERNR to the value? Is there any other function module available that returns the manager given the PERNR?
Thanks
Nathan.