cancel
Showing results for 
Search instead for 
Did you mean: 

Function Module to get Manager

Former Member
0 Kudos

Hi Friends,

Is there any function module available that gets the manager using PERNR? Can i use SWX_GET_MANAGER?

Thanks in advance.

Nathan.

Accepted Solutions (1)

Accepted Solutions (1)

KKilhavn
Active Contributor
0 Kudos

Here's a wild and insane suggestion: test the function module and see if it returns the correct manager!

I know this must sound crazy, but it is actually the quickest way to find out, much quicker than asking that question here in the forum and waiting for a reply.

Former Member
0 Kudos

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.

Former Member
0 Kudos

Try this HRWPC_PCR_GET_MANAGER_LIST

KKilhavn
Active Contributor
0 Kudos

Well, if I was testing this I would try using the standard object specification format that is used for agents. That means OBJID = pernr (including leading zeros) and OTYPE = P.

Remember, in the container, the elements must be entered in sorted order, so it is OBJID first, then OTYPE.

So e.g.

OBJID, <skip>, 012, C, 00000007

OTYPE, <skip>, 002, C, P

Message was edited by Kjetil Kilhavn:

For your parameter ORG_OBJECT it would be 'P 00000007'.

Answers (1)

Answers (1)

former_member184112
Active Contributor
0 Kudos

Hi Nathan,

SWX_GET_MANAGER in a rule 00000168 to find a users immediate supervisor, this rule will fetch the user's superior from Org Struc.

Thanks and Regards,

Prabhakar Dharmala