Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Managaer and next level manager of my employee

Former Member
0 Kudos

Hi,

Is there any fn module to retieve the manager and higher level manager of the given employee number,

using Evalutaion path / normal way ?

Rgds,

SAPuser100

1 ACCEPTED SOLUTION

suresh_datti
Active Contributor
0 Kudos

I dont think there is a single function module to get both the current manager & the next level mgr.. you either have to do a couple of SELECTs on HRP1001 or use two function modules..

For a given <i>pernr</i> obtain the <i>Org Unit</i> to which it belongs & then use 'HRHAP_SEL_OBJECTS_OF_EVAL_PATH' with the eval path 'BOSSONLY' to get the mgr of that Org Unit;

Then use 'HRHAP_SEL_MANAGER_OF_HIGH_ORG' to get the next level manager.

~Suresh

5 REPLIES 5

suresh_datti
Active Contributor
0 Kudos

I dont think there is a single function module to get both the current manager & the next level mgr.. you either have to do a couple of SELECTs on HRP1001 or use two function modules..

For a given <i>pernr</i> obtain the <i>Org Unit</i> to which it belongs & then use 'HRHAP_SEL_OBJECTS_OF_EVAL_PATH' with the eval path 'BOSSONLY' to get the mgr of that Org Unit;

Then use 'HRHAP_SEL_MANAGER_OF_HIGH_ORG' to get the next level manager.

~Suresh

0 Kudos

Suresh,

Fortunately i have worked in appraisals and i have used the fn modules HRHAP_0ROLE_MANAGER_DIRECT & HRHAP_0ROLE_MANAGER_HIGHER and it is working fine.

Can i use the above in a zfn module? Plz clear me whthr these fn modules are tied only for appraisal docus ?

Rgds,

SAPUSER100.

0 Kudos

Yes they are part of the Appraisal system.. but I don't see any reason why they cannot be used as standalone function modules in a custom program/function.. all they do is read the PD Object relationships via the Eval Path.. If its just the next level , I would rather put a couple of SELECTs on HRP1001 in my custom function..

~Suresh

0 Kudos

tHNKS.

What Evaluation paths i have to use for

getting employee manager from his pernr ?

What is the trnx for Evaluation path ?

And i heard , if u use Evalation path then it will slow down the execution time ? Is it true ?

-sapuser100

0 Kudos

>>What is the trnx for Evaluation path ?

<b>OOAW</b>

>> if u use Evalation path then it will slow down the execution time ? Is it true ?

I think it really depends on the Org Structure, like how large & deep it is etc..

I don't know if you can get the manager directly from the pernr.. you will first have to know either the OrgUnit in which case, you can use 'BOSSONLY' or the Position..

~Suresh