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

Locking data Base table

Former Member
0 Likes
638

Hello fiends,

Please tell me, is it necessary to DEQUE the table after using ENQUE.

i have locked table fields using ENQUE function module. but i am not using DEQUE to release them. still those r getting released. how it is possible? is it necessary to use DEQUE immediately after ENDUE?

Kumar.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
603

hi.....

its not mandatory to use DEQUE after you have done with ENQUE function module.

it takes into consideration LWU ie logical unit of work at the end of which locks get released.

and it happens also at the end of the progarm

regards

2 REPLIES 2
Read only

Former Member
0 Likes
604

hi.....

its not mandatory to use DEQUE after you have done with ENQUE function module.

it takes into consideration LWU ie logical unit of work at the end of which locks get released.

and it happens also at the end of the progarm

regards

Read only

RaymondGiuseppi
Active Contributor
0 Likes
603

No, the lock is restricted to current [LUW|http://help.sap.com/abapdocu/en/ABENSAP_LUW.htm], and depending on scope parameter used in ENQUEUE call, the lock will be released by ROLLBACK WORK, COMMIT WORK or implicit end of LUW. Look at [SAP Locks |http://help.sap.com/abapdocu/en/ABENSAPLOCK.htm] for more details on _scope parameter effect.

Regards