Application Development 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: 

how to create a pernr?

Former Member
0 Kudos

Hi experts,

Can anyone tell me which FM I could use to create a personnel number (pernr) in code?

Thanks in advance!

6 REPLIES 6

b_deterd2
Active Contributor
0 Kudos

Hi,

Use FM HR_INFOTYPE_OPERATION. Plenty of examples in this forum.

Regards,

Bert

Former Member
0 Kudos

Use the FM;

HR_INFOTYPE_OPERATION use INS for insert.

Refer to the link below:

http://www.sapdev.co.uk/sap-fmodules/fms_HR_INFOTYPE_OPERATION.htm

With luck,

Pritam.

Former Member
0 Kudos

Functional Moudle

HR_INFOTYPE_OPERATION

Former Member
0 Kudos

Hello There.

I would like to suggest my opinion,

Reference code for HR_INFOTYPE_OPERATION,

[SDN Wiki Code Gallery - Standard Reference for ABAP - Insert Infotype data with Maintain Text|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/abap%2b-%2binsert%2binfotype%2bdata%2bwith%2bmaintain%2btext]

Hope that's usefull.

Good Luck & Regards.

Harsh Dave

Former Member
0 Kudos

Thanks for all of you. While my objective is to create a pernr. This function seems just to work on the infotypes. If the pernr dosen't exist..

0 Kudos

Yes indeed !

There is a check in the function module that the pernr does exists!

I had to solve that by generating BDC ! for hiring then, hr infotype operation for creating other infotypes!