Skip to Content
0
Aug 18, 2015 at 01:06 PM

PERFORM ... ON COMMIT and ROLLBACK

1162 Views

Hello ABAP experts,

I am quite new to SAP LUW, want to execute 2 SQL statements in one unit and didn't find anyhting in the web ...

So to keep it simple I have the following programme.

On COMMIT WORK it first executs form insert1 and then update1.

If sy-subrc <> 0 in from insert1 I want to do a rollback, but I am not allowed to use ROLLBACK WORK statement in that form.

So what possibilities do I have to raise an error without aborting the whole programme and to rollback the work?

Thanks in advance,

Thomas

Attachments

image.png (15.3 kB)