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

New hire action using PA40 tcode

Former Member
0 Likes
831

Hi ,

for one of my inbound interface i am creating a hire action using a upload file which has bupernr but SAP PERNR is not created yet and Once we process the HIRE, SAP generates a SAP PERNR (obviously). We need to capture that...cuz if the same file that generated the HIRE also contains an infotype update for that BU PERNR, then when we process that infotype update record, we won't know what SAP PERNR to enter on PA30...cuz we didn't record the link anywhereonce we execute the HIRE action ie PA40 pernr is created . SAP PERNR that gets generated is available in a user exit upon saving of the HIRE..., then how to store the SAP PERNR somewhere momentarily upon HIRE and then use that PERNR to track in the program . The user exits that triggers is ZXPADU02 and we need to save the pernr and the problem is how to store the pernr .

Appreciate any inputs,

Thanks,

Hi ,

for one of my inbound interface i am creating a hire action using a upload file which has bupernr but SAP PERNR is not created yet and Once we process the HIRE, SAP generates a SAP PERNR (obviously). We need to capture that...cuz if the same file that generated the HIRE also contains an infotype update for that BU PERNR, then when we process that infotype update record, we won't know what SAP PERNR to enter on PA30...cuz we didn't record the link anywhereonce we execute the HIRE action ie PA40 pernr is created . SAP PERNR that gets generated is available in a user exit upon saving of the HIRE..., then how to store the SAP PERNR somewhere momentarily upon HIRE and then use that PERNR to track in the program . The user exits that triggers is ZXPADU02 and we need to save the pernr and the problem is how to store the pernr .

Appreciate any inputs,

Thanks,

4 REPLIES 4
Read only

Former Member
0 Likes
728

Is it posible to ask your functional consultant to include that infotype in the hiring action? Since it is something which will happen after the hiring, then it is better to put it in the hiring action.

Else in spro i remember there is a way to turn on infotype trace. You can turn that on, and trace IT0000. The table store behind will have all the personnel number. I don't quite remember the path.

Read only

Former Member
0 Likes
728

Bluemax,

I'm also working on a requirement to perform hire action thru ABAP. What method did you use- BDC, function module or something else ? I'd appreciate if you could give me some inputs.

Thank you very much.

Read only

0 Likes
728

Check out FM HR_MAINTAIN_MASTERDATA.

Read only

PedroGuarita
Active Contributor
0 Likes
728

Unfortunatelly there isn't a sap standard for that, but you can create alternate ways to get the pernr after hiring. One for example could be to use INFTY 37 to store old number in legacy system, you can use a sequential number for the hiring of employees and store that has the old number in infotype 37 and then make the conection. Another way might be to use some sort of unique identifier, like FINUM of infotype 331, usually it's a unique identifier for each person.