12-21-2008 7:49 AM
What are the names of the functional modules that will be generated upon activation of locked objects?
12-21-2008 8:03 AM
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