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: 

about Lock/Unlock Function Module

Former Member
0 Kudos

can anyone tell me how I can know the Lock/Unlock Function Module for a customized table?

many thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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

Former Member
0 Kudos

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