11-24-2007 10:28 AM
Hi Experts
Is there any standard lock objects exist, if so, pls guide me how
it works and locks the database with standard example for better understanding.
Thanks in advance.
Regards
Rajaram
11-24-2007 10:34 AM
Lock objects are used if you want to Lock the table at ROW Level.
Every lock object will generate two Function MOdules. One for ENQUEUE and one for DEQUEUE.
http://www.sap-img.com/abap/type-and-uses-of-lock-objects-in-sap.htm
For the example check the link
http://help.sap.com/saphelp_nw04/helpdata/en/af/22ab01dd0b11d1952000a0c929b3c3/content.htm
Reward if useful
Regards,
Abhishek
Message was edited by:
Abhishek Jolly
11-24-2007 10:48 AM
I thank for your valuable reply.
but can we check existing lock objects by doing standard transactions.
is there any objects applied by default pls.
11-24-2007 10:51 AM
I am not able to understand your question. What exactly is your requirement
11-24-2007 10:54 AM
You can do a WHERE USED LIST on the Lock Object and check the place where its being used.
But if your requirement is to search whether there is any lock object used in the Transaction. Then While running the transaction you can check the SM12 transaction. Or Search for ENQUEUE in your Transaction.
<b>
Reward Points if useful</b>
Regards,
Abhishek
11-24-2007 11:05 AM
Any lock objects has been created alreday in SAP system.
If so, pls tell me , it would be helpful for me to understand better the concept.
Regards
Rajaram
11-24-2007 11:15 AM
Ok.
Check the Lock Object EMMARAS. In SE11
Its a lock on the table ( Lock MARA and MARM/MAKT: shared )
SAP generated two FM's for that
DEQUEUE_EMMARAS Release lock on object EMMARAS
ENQUEUE_EMMARAS Request lock for object EMMARAS
See the where used list for the Lock Object and you can see the Include MM03SI00 in which the Lock FM is being used.
<b>Reward Points if useful</b>.
Regards,
Abhishek
11-26-2007 6:18 AM
How to know that lock object is working.
In what transaction we can know this lock process happening.
Tell me any transaction and locking process also pls.
11-26-2007 6:21 AM
debug the report wherever the lock object is getting used i.e. enqueue and dequeue...
if the sy-subrc returned by enqueue is 0 that means lock object is working...
<b>lock object always work properly.. if</b> you have selected all the key fields of the table in lock object .. and while locking the object you are passing all the parameters to the enqueue function...
11-26-2007 6:26 AM
Whenever a Lock is acquired by SAP it will appear in transaction SM12 (Both table level locks and Row level locks).
Regards,
Abhishek
11-26-2007 6:26 AM
i just want to know how the particular transaction or object is locked in physically.
in which transaction or when we trying to change particular transaction mutually.
tell me the transaction code for example MM01 and any another transaction, which we try to work on it, it comes locked.