‎2010 Oct 04 2:26 AM
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?
‎2010 Oct 04 8:21 AM
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
‎2010 Oct 04 8:39 AM
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
‎2010 Oct 04 2:37 PM
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.
‎2010 Oct 04 2:46 PM