02-26-2007 2:56 PM
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!
02-26-2007 2: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
02-26-2007 2: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
02-26-2007 3: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
02-27-2007 8: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!
02-27-2007 8:50 AM
hi,
i am able to create the lock object.. starting with EZ...
no problem.
regards,
pankaj singh
02-27-2007 8:46 AM