08-24-2006 2:32 AM
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
08-24-2006 2:49 AM
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
08-24-2006 2:49 AM
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
08-24-2006 2:54 AM
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.
08-24-2006 3:01 AM
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
08-24-2006 3:07 AM
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
08-24-2006 3:24 AM
>>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