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

error while updating Infotype

Former Member
0 Likes
1,155

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

5 REPLIES 5
Read only

former_member209703
Active Contributor
0 Likes
856

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.

Read only

Former Member
0 Likes
856

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.

Read only

Former Member
0 Likes
856

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....

Read only

0 Likes
856

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

Read only

0 Likes
856

Hi,

I was unable to do so as after saving data in every infotype system performs a commit work.