ABAP - Keyword Documentation →  ABAP - Reference →  Processing External Data →  ABAP Database Accesses →  Data Consistency →  Database LUW → 

COMMIT, ROLLBACK CONNECTION

Quick Reference

Syntax

COMMIT|ROLLBACK CONNECTION con|(con_syntax).

Effect

This COMMIT or ROLLBACK statement performs a database commit or database rollback on the specified database connection. The database connection can be specified as follows:

Specified directly and statically as con.
Specified as the content of a parenthesized data object con_syntax of type c or string.

The following can be specified for con or in con_syntax (and transformed to uppercase letters internally):

Notes

Example

Performs a database commit and releases the exclusive lock after modifying Open SQL statements by using COMMIT CONNECTION default on the standard connection.

DELETE FROM demo_expressions.
INSERT demo_expressions FROM @( VALUE #( id = 'X' ) ).
COMMIT CONNECTION default.