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

Lock Object - Release only by Dequeue

Former Member
0 Likes
1,198

Hi ,

I am using a Lock object but the Locks are getting released as soon as i come out of the program.

Is there a way to hold the locks till i call Dequeue FM?

4 REPLIES 4
Read only

Former Member
0 Likes
833

The lock obect created in the ABAP Dictionary are not DB locks. They are logical locks that the SAP application uses. However, they would be released at LEAVE PROGRAM.

Edited by: JaisonMathai on Oct 4, 2010 9:58 AM

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
833

Hello,

If you don't explicitly release the locks using DEQUEUE* functions they are released implicitly(e.g., DEQUEUE_ALL).

Details regd. when the locks are released read this online documentation: [http://help.sap.com/saphelp_nw04/helpdata/en/c2/2d7037ecc92a7ee10000009b38f8cf/frameset.htm]

BR,

Suhas

Read only

Former Member
0 Likes
833

Yes correct . The locks will be gone when you come out of the Program or after Commit. My question is ' Is there a way to keep those locks on'. Because I wanted to run this program as a batch job to lock all the objects thenn run subsequent batch Jobs.

Read only

Former Member
0 Likes
833

Hi,

I think as per your requirement, I believe to go for Function module in update task,

below is the link

[;

Please try this out.