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

Rollback work not working ..

Naval_bhatt
Contributor
0 Likes
1,796

I am trying to use rollback work for multiple records of an XL file .

In one record there are multiple uploads .(That mean multiple roll back ) but its working fine .

when I add more records to the XL sheet nothing is getting roll back .

I am using FM 'HR_INFOTYPE_OPERATIONS'.

there is an option of No commit in the FM which is also doing the same thing (rollback work). but even that is not working .

please suggest what may be the problem .

thanks in advance .

Naval

7 REPLIES 7
Read only

Former Member
0 Likes
1,135

What operation are you doing?

Also put a breakpoint - At statement ---> Commit work.

Make sure you are not doing any commit, in between each calls. You cannot rollback once commit work is done.

Read only

Former Member
0 Likes
1,135

Hi Naval,

I think you might have performed COMMIT already. Once commit is done you cannot ROLLBACK. Check for this once.

Hope this helps you.

Regards,

Chandra Sekhar

Read only

abdul_hakim
Active Contributor
0 Likes
1,135

Hi,

After you have performed the database COMMIT WORK you cannot perform ROLLBACK WORK.Could you please paste your code so that we can check it out and give suggestions!

Cheers,

Hakim

Read only

0 Likes
1,135

first i am doing rollback work . for one record of xl sheet

and then I am doing commit work for other record .

Read only

0 Likes
1,135

HR_INFOTYPE_OPERATION uses the HR buffer, so when you do a commit, it will commit everything in the buffer. also the previous records which were not supposed to be commited. I dont think you can do it in one loop.

Read only

0 Likes
1,135

no i am not doing it in a loop ..so if i use the

FM 'HR_PSBUFFER_INITIALIZE' .

at the end of the loop (for one record ) after roll back work

it should refresh the buffer .

then it should work ???

But its not working ... ?

Read only

Naval_bhatt
Contributor
0 Likes
1,135

Use FM 'HR_PSBUFFER_INITIALIZE' .

after roll back work

it will refresh the buffer . so the next commit statement wont consider the record you have rolled back ....