Entering content frame

Object documentation Optimistic Lock Locate the document in its SAP Library structure

One type of lock is the optimistic lock at row level. It only makes sense to use an optimistic lock if one of the isolation levels 0, 1 or 10 or 15 was assigned. An optimistic row lock must be explicitly requested by specifying a LOCK statement.

An update operation performed by the current user on a row that the user set an optimistic lock on is only actually carried out if this row has not been changed in the meantime by a concurrent transaction. If this row has been changed in the meantime by a concurrent transaction, the update operation of the current user is rejected.

The optimistic lock is released in both cases.

The request of an optimistic lock only collides with an exclusive lock. Concurrent transactions do not collide with an optimistic lock.

Leaving content frame