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

hi

Former Member
0 Likes
967

could u please tell me if we write a enqueue function before or after a lock?

could u please tell me if we write a enqueue function before or after a lock?

6 REPLIES 6
Read only

Former Member
0 Likes
929

hi,

Enqueue is used to lock the object so it is used before locking. like ENQUEUE_EKBLK FM is for Request lock for object EKBLK

To release the lock use dequeue.

Regards,

Richa

Read only

Former Member
0 Likes
929

Hi Nisha,

For each ock object that exist in the database, there will be two function modules that get generated (One enque<your lockobject name> and one deque*<your lockobject name>).

You proceed in this sequence.

call function 'ENQUE....

*Do your update/modify/insert/delete on database tables

call function 'DEQUE...

Regards,

Ravi

Read only

Former Member
0 Likes
929

Enqueue is the function through which u can lock a object ..

Through Deueue function u can unlock a object ....

Read only

Laxmana_Appana_
Active Contributor
0 Likes
929

Hi,

We will use Enqueue and Dequeue FM's to lock the table and unlock the table .

FM's :

ENQUEUE_E_TABLE - use before updating the data to a table

DEQUEUE_E_TABLE - use after updating the data to a table

Regards

L Appana

Read only

Former Member
0 Likes
929

Hi Nisha,

Enqueue first then Dequeue.

Thanks

Janani

award points if helpful

Read only

0 Likes
929

actually the problem is i got a caswe in which the whole table was getting locked and not a particular record so what may be the reason.i also included the key fields inside the lock.