Database rollbacks are triggered implicitly or explicitly in an AS ABAP.
Implicit Database Rollbacks
The following exceptions trigger an implicit database rollback:
- Program termination through sending of a message.
- A termination message also leads to a database rollback if the message is handled with the predefined
error_messagewhen 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.