Skip to Content
author's profile photo Former Member
Former Member

question about Lock Duration

Hi,

I found a description at this link.

http://help.sap.com/saphelp_nw04/helpdata/en/41/7af4c5a79e11d1950f0000e82de14a/content.htm

'At the end of an SAP LUW, you should release all locks. This either happens automatically during the database update, or explicitly, when you call the corresponding dequeue function module. Locks that are not linked to a database update are released at the end of the SAP transaction'

I don't understand this, because I tested using commit work and wait. The lock entry still there after the statement 'commit' executed. the lock entry disappeared when the whole task completed.

don't know what does happens automatically during the database update. Isn't the 'commit' the case they mentioned?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 26, 2007 at 09:06 AM

    Hai,

    Commit statement does not release lock even if use it with wait.

    You need to use DEQUEUE_ALL function module to release locks.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 28, 2007 at 04:12 AM

    So does that means even I using a SYNCHRONIZE commit. There still not a database update happen?

    From help.sap.com:

    For 'commit work' "It triggers a database commit that also terminates the current database LUW and closes all database cursors. "

    Database commit <> database update ?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.