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

record locking

Hello,

I am studying the locking concept. Can anyone tell me how can I lock a single record of a table? I found examples how to lock an entire table, but I need to lock at record level. Thank you!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Feb 26, 2007 at 02:59 PM

    You can use lock objects. You simply create a lock object in SE11, this creates two function modules automatically, ENQUEUE_<lock object name> and DEQUEUE_<lock object name> . You use the ENQUEUE function module to lock the record, by simply passing the key values of the record to the function module.

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2007 at 03:01 PM

    Hello,

    Check this thread:

    http://www.sapdevelopment.co.uk/dictionary/lock_enqueue.htm

    In the enqueue Fm you could metion the value of the keyfield of the table. Which will lock only one record.

    Vasanth

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 08:44 AM

    Anyone knows why am I beeing asked for an access key when I am trying to create a lock object starting with Z or E (as the system requires) ? I have developer role.

    Thank you!

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 08:46 AM

    Sorry for this post

    Message was edited by:

    George Popescu

    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.