Function Modules for Lock Requests

The function modules for setting and removing locks are created automatically when a lock object is activated in the ABAP Dictionary. These function modules can be included when programming interactive transactions.

The name of the function module for setting locks is:

ENQUEUE_<lock_object_name>.

The name of the function module for removing locks is:

DEQUEUE_<lock_object_name>.

Both function modules have the following parameters:

If a lock set with a lock mode is to be removed by calling the DEQUEUE function module, this call must have the same value for the parameter MODE_<TAB>.

This parameter can have the following values:

The ENQUEUE function module also has the following parameter:

The DEQUEUE function module also has the following parameter:

The ENQUEUE function module can trigger these exceptions:

If the exceptions are not processed by the calling program itself, appropriate messages are issued for all exceptions.