‎2008 Jul 24 3:27 AM
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
‎2008 Jul 24 4:55 AM
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.
‎2008 Jul 24 5:03 AM
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
‎2008 Jul 24 5:10 AM
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
‎2008 Jul 24 5:22 AM
first i am doing rollback work . for one record of xl sheet
and then I am doing commit work for other record .
‎2008 Jul 24 5:26 AM
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.
‎2008 Jul 24 6:23 AM
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 ... ?
‎2008 Jul 25 3:32 AM
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 ....