Show TOC Start of Content Area

Procedure documentation Managing Locks  Locate the document in its SAP Library structure

Use

You use this procedure to create and release locks. Locks are identified by their name and argument. The SAP NetWeaver Administrator sets the lock owner automatically.

Procedure

Creating Locks

...

       1.      To create a lock, choose Create Lock.

       2.      In the New Lock dialog box, specify the following values:

·        Lock Name

Arbitrary name to identify the lock.

·        Lock Argument

The lock argument is an arbitrary string that together with the lock name identifies the lock.

·        Lock Mode

To select the type of lock to create, you set the lock mode. The lock modes have the following semantics:

exclusive cumulative

An exclusive lock protects the locked object against all types of locks from other transactions. Only the same lock owner can reset the lock.

check exclusive cumulative

Same as exclusive cumulative, but does not actually set the lock in the locking server.

check exclusive non-cumulative

Same as exclusive non-cumulative, but does not actually set the lock in the locking server.

exclusive non-cumulative

Whereas exclusive locks can be requested several times by the same owner and released one by one, an exclusive, non-cumulative lock can only be requested once by the same owner. Each further lock request will be rejected.

shared

Several owners can access locked data at the same time in display mode. Requests from further shared locks are accepted, even if they are from different owners. An exclusive lock set on an object that already has a shared lock will be rejected.

check shared

Same as shared, does not actually set the lock in the locking server.

optimistic

Optimistic locks initially like shared locks and can be converted into exclusive locks.

optimistic to exclusive

Converts the optimistic lock in an exclusive lock, and all other optimistic locks of different users are deleted.

       3.      Choose Create. The newly created lock appears in the lock list.

Releasing Locks

...

       1.      To release a lock, select the lock in the list and choose Remove Lock.

Note

To release all locks belonging to a selected owner, select a lock from the list and choose Remove All Locks Belonging To Selected Owner.

End of Content Area