Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Function modules upon activation of locked objects?

Former Member
0 Kudos

What are the names of the functional modules that will be generated upon activation of locked objects?

1 REPLY 1

Former Member
0 Kudos

Prior to creating setting any locks in an ABAP program, a lock objects must be created in the ABAP dictionary.

When the lock object is created, the system will automatically generated the two function modules required for locl management.

The First function module used to set locks is the ENQUEUE_<lock Object Name>. This function module is used to generate a lock entry in the lock table. If the lock cannot be set for any reason then this would be reflected in the return code.

The second function module used to release locks is the DEQUEUE_<Lock Object Name>. Thus function module will remove a lock entry from the lock table.

These Function modules are used to set and release locks in an ABAP program. The programmer simply perform the specific "CALL FUCNTION.."

statemen for each functiom module.

These lock functiom modules are executed in a specific work process with the SAP system dedicated to lock management, This work process is run on a single server that maintains the central lock table for entire SAP system.

There are two types of locks that can be set:

Shared lock - is a read only lock that prevents data from being changed while a user is reading it.

Exclusive lock- is a rite lock that prevents data being changed while a used is already modifying it.

Thanks & Best Regards,

Shakti Barath