2006 Feb 13 4:19 PM
Hi All,
Is there a function module that takes in the name of the employee and returns the PERNR?
Regards,
~Mark
Hi All,
Is there a function module that takes in the name of the employee and returns the PERNR?
Regards,
~Mark
2006 Feb 13 4:23 PM
Don't think there's one.
Name is not a primary Key , so U might not get a unique
pernr.
U can get PERNR from PA0002 using name.
2006 Feb 13 4:28 PM
This the FM HR_HK_GET_EE_NAME
Here`s the macro you can use at start-of-selection
START-OF-SELECTION.
RP-SET-NAME-FORMAT.
Example reports
RPLTRF10
RPLMIT00
Hope this`ll give you some guide line ..
Thanks
2006 Feb 13 4:35 PM
Hi Mark,
I agree with Srinivas.. there could be any number of employees with the same firstname & lastname.. You have to have a unique referenceto get the pernr like SSN or SAP UserName etc..
Regards,
Suresh Datti
2006 Feb 13 5:10 PM
Thanks all for your replies. Let me ask a different question then, is there a way to do the "hire" action through RFCs without logging into the SAP GUI?
Regards,
~Mark
2006 Feb 13 5:44 PM
hi mark,
why not check the input name in table pa0001-sname and then get the aufnr (order no) with respect to that you can get pernr in any of the tables like AFRU or QMEL.
hope this might be helpful
Do reward points if this is helpful.
Regards
kishore Yerra