Skip to Content
0
Former Member
Jun 18, 2010 at 01:45 PM

Trigger rollback during update task

64 Views

Hi there ABAP'ers.

I am playing a bit with LUWs.

I prepared a test scenario where in update task I call two forms, each in separate screen.

At the end I trigger COMMIT WORK.

And now I would like to have a small test.

Let's say that first form passes in update task correctly. Whilst the second one generates an error inside itself.

Now my question is how should I trigger a rollback that the whole transaction is rolled back? I tried to put ROLLBACK WORK inside second routine but it generates a dump (because it is not acceptable to call ROLLBACK inside form launched in update task)

I will be thankful for suggestions how to trigger this rollback when second routine fails.

Regards,

P.