Application Development and Automation 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: 
Read only

about Lock/Unlock Function Module

Former Member
0 Likes
1,633

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

many thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,076

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
Read only

Former Member
0 Likes
1,077

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

Read only

Former Member
0 Likes
1,076

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