ABAP Keyword Documentation →  ABAP − Reference →  Processing External Data →  Data Consistency →  SAP LUW → 

ROLLBACK WORK  Syntax Diagram

Short Reference

Syntax

ROLLBACK WORK.

Effect

The statement ROLLBACK WORK closes the current SAP LUW and opens a new one. This cancels all changes requests made by the current SAP LUW. To do this, ROLLBACK WORK carries out the following actions:

  1. Executes all subroutines registered using PERFORM ON ROLLBACK.

  2. Deletes the registrations of all subroutines registered using PERFORM ON COMMIT.

  3. Triggers an internal event in the Object Services that makes sure that the attributes of persistent objects are initialized.

  4. Deletes all update function modules registered using CALL FUNCTION ... IN UPDATE TASK from the VB... database tables and deletes all transactional remote function calls registered using CALL FUNCTION ... IN BACKGROUND TASK|UNIT from the database tables ARFCSSTATE and ARFCSDATA.

  5. Removes all SAP locks set in the current program for which the formal parameter _SCOPE of the lock function module was set to the value 2.

  6. Triggers a database rollback that also ends the current database LUW.

After the statement ROLLBACK WORK is completed, the event TRANSACTION_FINISHED from the system class CL_SYSTEM_TRANSACTION_STATE is triggered, whereby the parameter KIND has the value of the constant CL_SYSTEM_TRANSACTION_STATE=>ROLLBACK_WORK.

Notes

Exceptions

Non-Catchable Exceptions