09-18-2008 3:39 AM
can anyone tell me how I can know the Lock/Unlock Function Module for a customized table?
many thanks
09-18-2008 5:11 AM
Hi,
There are two function modules used to lock and unlock the tables. Those are mentioned below.
Unlocking the table
CALL FUNCTION 'DEQUEUE_E_TABLE'
EXPORTING
tabname = table_name
locking the table
CALL FUNCTION 'ENQUEUE_E_TABLE'
EXPORTING
tabname = table_name
EXCEPTIONS
foreign_lock = 1
system_failure = 2
OTHERS = 3.
Regards,
Abdur Rafique
09-18-2008 4:00 AM
09-18-2008 5:11 AM
Hi,
There are two function modules used to lock and unlock the tables. Those are mentioned below.
Unlocking the table
CALL FUNCTION 'DEQUEUE_E_TABLE'
EXPORTING
tabname = table_name
locking the table
CALL FUNCTION 'ENQUEUE_E_TABLE'
EXPORTING
tabname = table_name
EXCEPTIONS
foreign_lock = 1
system_failure = 2
OTHERS = 3.
Regards,
Abdur Rafique
09-18-2008 7:09 AM
Hi,
whenevere we create lock object for perticular table, it will generate two function mudules.
those function module are 'ENQUEUE_E_TABLE' and 'DEQUEUE_E_TABLE'.
if you want to lock the table, you can use below function module
CALL FUNCTION 'ENQUEUE_E_TABLE'
EXPORTING
tabname = table_name
EXCEPTIONS
foreign_lock = 1
system_failure = 2
OTHERS = 3.
if you want to release the table, you can use below function module
CALL FUNCTION 'DEQUEUE_E_TABLE'
EXPORTING
tabname = table_name
thanks
paramesh