2008 Jul 17 12:31 PM
Hi All,
I want to enter personnel number as input and I want to get all reportees to that employee .
Can anyone provide me the code of Function Module ?
Does it is same for all Organizations?
Thanks,
Srinivas
2008 Jul 17 12:39 PM
Hello,
U can use the logical database PNP for your output daata.This LDB gives you full options to retrive whatever kind of data is required.
Regards,
Neeraj
2008 Jul 17 12:39 PM
Hello,
U can use the logical database PNP for your output daata.This LDB gives you full options to retrive whatever kind of data is required.
Regards,
Neeraj
2008 Jul 17 1:43 PM
Hi,
Thanks for your early reply.
But your answer is very brief . Can you provide me code .
Regards,
Srini
2008 Jul 22 11:10 AM
2008 Jul 22 11:11 AM
2008 Jul 22 2:20 PM
Can you please provide me what input I need to give?
My requirement is , I need to give Pernr, I should get the employees reporting him
What input values should I give to the FM you mentioned?
Regards,
Srini
2008 Jul 22 2:45 PM
pass ACT_OTYPE , ACT_OBJID and ACT_WEGID
to the FM to get the persons reporting ..
to know the values for WEGID(Evaluation Paths) look at table
T778A ..
ACT_OTYPE = 'P'
ACT_OBJID = pernr
ACT_WEGID = enter the valid path ...
2008 Jul 23 8:55 AM
Hi,
Thanks for your answer, But still I am not meeting my requirement.
I passed, P,10011,BOSSORG ( as input , as you mentioned)
The Export tables for the function modules are :
RESULT_TAB (Result : 0 entries)
RESULT_OBJEC (Result : 1 entry )
RESULT_STRUC (Result : 1 entry )
Which export table will give my required result ? Which fields I have to retrieve.
Regards,
Srini
2008 Jul 23 9:09 AM
get the Org unit for that pernr ..
and use
CLEAR : it_result_tab , it_result_tab[].
CALL FUNCTION 'RH_STRUC_GET'
EXPORTING
act_otype = 'O'
act_objid = v_sobid2
act_wegid = 'PERS-O'
act_begda = sy-datum
act_endda = sy-datum
TABLES
result_tab = it_result_tab.
LOOP AT it_result_tab WHERE otype = 'P'.
it_detail-pernr = it_result_tab-objid+0(8).
APPEND it_detail.
CLEAR it_detail.
ENDLOOP.
2008 Jul 22 11:11 AM