08-28-2008 10:50 AM
Hi experts,
Can anyone tell me which FM I could use to create a personnel number (pernr) in code?
Thanks in advance!
08-28-2008 10:56 AM
Hi,
Use FM HR_INFOTYPE_OPERATION. Plenty of examples in this forum.
Regards,
Bert
08-28-2008 11:01 AM
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.
08-28-2008 11:12 AM
08-28-2008 11:19 AM
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
08-28-2008 3:18 PM
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..
08-28-2008 3:21 PM
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!