Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

LEAVE PROGRAM, no commit?

  DELETE FROM zvfnvrd.

* Check if delete ís OK
  SELECT COUNT(*)
         FROM zvfnvrd.
  IF sy-subrc = 0.
    WRITE:/ 'Try again'.
<<<<<<<HERE>>>>>>>>>>>
  ENDIF.

Hi,

How to leave program without COMMIT WORK.

If I use LEAVE PROGRAM, commit work is stil done.

Adibo.

Tags:
replied

If ROLLBACK WORK does not work, you have perform a database commit (implicitly or explicitly) Some instructions close the current database LUW, so its then too late to undo the database changes.

Look at [Database Logical Unit of Work (LUW)|http://help.sap.com/erp2005_ehp_03/helpdata/EN/41/7af4bca79e11d1950f0000e82de14a/frameset.htm] where you will found information on implicit database commit triggering.

Regards

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question