on 10-17-2008 4:34 AM
Hi Friends,
I got a personnel number data, but i want fetch the manager name for particular personnel number. How to fetch manager name ?
Please help me in this issue...
Cheers,
Guru.
Hi ,
0. SELECT FROM PA0001 WHERE PERNR = personnelpersnumber PLANS = position of employee
1. SELECT FROM HRP1001 WHERE RSIGN = A RELAT = 002 OTYPE = 'S' OBJID = position_of_employee SCLAS = 'S': SOBID = manager position
2. SELECT FROM HRP1001 WHERE RSIGN = A RELAT = 008 OTYPE = 'S' OBJID = sobid of prev step SCLAS = 'P'.
SOBID of the second SELECT is personnel number of the manager
3. SELECT FROM PA0000 WHERE PERNR = pernoofmanager.
ENAME of 3rd step is manager's name.
Regards,
Dilek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Experts,
My requirement is similar to this one..
I need to find what is the manager name.?
For every change in manager name in ECC system, one IDOC should be generated based on Change pointer and send it to CRM system... And here what is message type will used?
Pls Can any body suggest me how to do this.
Thanks in advance.
Best regards
Saleem Javed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use function module RH_GET_LEADER to get the PERNR of the manager of a particular personnel number. and get manager's name from infotype 0002
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use FM RH_STRUC_GET where ACT_OTYPE = 'O'
ACT_OBJID = MAIN ORG. UNIT and ACT_WEGID = 'ORGCHART'
This FM fetches Organizational structure with Managers
here ACT_WEGID is the evaluation path which gets stored in T778A .
OR
These are the paramters to pass ..
CALL FUNCTION 'RH_STRUC_GET'
EXPORTING
act_otype = c_o
act_objid = w_orgunitid
act_wegid = 'ORGCHART'
act_plvar = '01'
act_begda = sy-datum
act_endda = '99991231'
TABLES
result_tab = t_restab
result_objec = t_resobj
result_struc = t_reslt
EXCEPTIONS
no_plvar_found = 1
no_entry_found = 2
OTHERS = 3.
IF sy-subrc NE 0.
ENDIF.
It is not the orgunit id should be passed hear in your case it is manin orgunit ..so that it picksup the managers of child Orgunit as well.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you know the position no of the employee, check his relationship in Maintain Object - PP01 and check the position.
Regards,
Saureb Bannerjii
SAP HR Consultant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
u have got pernr right then find the position as sameer told and
then find the org unit for this position .
then query that or unit id with 012 (manages relationship) to get the manager through hrp1001 table and ur otype will be O and sclass= s
and relat = 012.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Guru,
do u req this for reporting?
follow these steps:
1. find position of employee
2. find the A002 relation with the position.(Reports line to) The relation will result in managers position
3. find the holder A008 for the position obtained in previous step.
rgds...Sameer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sameer,
My requirement. display the data pernr, begda, endda, deduction amount, 1perc, 2 perc, manager name, building number.
everything i got it.
I fetched personnel number pa0001 info type. know i want display the manager name for particular personnel number.
please give me steps or give me idea.
Cheers,
Guru.
Hi Sameer,
I looked on all function modules, but not matching any FM for my requirement.
you have any idea FM name or any T tables ?
I tested in PA30 t.code for my pernr's, there are having in manager name, but this field fetched in P0001_AF structure.
Please give me suggestion for this issue.
Cheers,
Guru.
u can get this one through OM in simple maintainence if u have maintained the reporting structure
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
no u can know through reporting structure
say for ex if 0009 is pernr no and want to know to whom he is reporting
if the reporting is defined in OM u can check 0009 is reporting to whom in OM wiht the relaitonship called "holder" so u can know relationship with person and position so if u give the reporting structure u can know easily
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.