sapdev logo background
sapdev logo sapdev logo
Comments

SAP DB ROLLBACK documentation, setup help and example usage



Return to SAP documentation index


ARTICLE

Database Rollback
Database rollbacks are triggered implicitly or explicitly in an AS ABAP .

Implicit Database Rollbacks
The following exceptions trigger an implicit database rollback:
  • A runtime error .

  • Program termination through sending of a

  • message .

    Notes
  • A termination message also leads to a database rollback if the message is handled with the predefined exception error_message when a function module is called.

  • Termination and exit messages always lead to termination of the program. Other message types can also lead to program termination in certain contexts .

    Explicit Database Rollbacks
    You have the following options for triggering explicit database rollbacks in ABAP programs
  • Use of the relevant database-specific

  • Native-SQL statement.
  • Execution of the Open-SQL statement ROLLBACK WORK .
    Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




  • DB_READER_ABEXA
    DB_TRANSACTION




    comments powered by Disqus