‎2011 Aug 24 11:31 AM
Hi I am currently hiring an employee Through PA30 by maintaining IT-0000,IT-0001 and IT-0002 . Now what I want is that if I get an error in maintaining any of these Infotypes I want either all to get updated at once or none at all.
So if I get an error in say IT-0002 ,then since it is comes after saving the records in IT-0000 and IT-0001 so I don't want it to generate the employee number .
Right now if I get an error in IT-0002 it generates a number from the internal number range and maintains IT-0000 for it.
I have tried rollback work and even commit work statement after executing PA30 but that doesn't work either.
<removed by moderator>
Regards,
Amber
Edited by: Thomas Zloch on Aug 24, 2011 3:51 PM
‎2011 Aug 24 12:41 PM
Hi.
But how are you doing this process? This sould be done by using a measure through PA40 or HRPBSES40 (Plubic Sector)
However this is standard behaviour. When using PA40, for instance, once the IT0000 has been saved and the PERNR number has been generated there's no rollback possible. (As far as I know this only can be done when using a Dummy Personel Number through HRPBSES40) In your case you should control that scenario and delete the whole PERNR when neccesary.
‎2011 Aug 24 1:05 PM
Use functional module HR_MAINTAIN_MASTERDATA for this. Do fill all three infotypes fields and values in one go. It will post either all three or none.
‎2011 Aug 25 8:21 PM
Hi All,
I am doing this through PA30 and I guess you are right that once an infotype is saved there is no Rollback so this will not work....
‎2012 Jul 31 6:57 PM
Hi Bhatia,
I am doing the same, how can we roll backe the creation of PERNR.
I am using HR_MAINTAIN_MASTERDATA FM to create pernr using multiple infotypes 0000, 0002,
0006, 0007, 0008, 0014, 0015, 0023, 0077, 0105. While creating if i get error in one of the infotype i
don't want to create perrn. pls. can you share how dido yu achieve this.
I appriciate your help.
Thanks,
Mannu
‎2012 Aug 08 10:22 AM
Hi,
I was unable to do so as after saving data in every infotype system performs a commit work.