2007 Apr 11 4:00 AM
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,
2007 Apr 11 4:16 AM
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.
2010 Mar 09 4:39 PM
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.
2010 Mar 09 4:59 PM
2010 Mar 09 4:58 PM
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.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |