Application Development and Automation 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: 
Read only

PERNR from Name

Former Member
0 Likes
1,006

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

5 REPLIES 5
Read only

Former Member
0 Likes
948

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.

Read only

former_member181966
Active Contributor
0 Likes
948

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

Read only

0 Likes
948

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

Read only

0 Likes
948

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

Read only

Former Member
0 Likes
948

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