2008 Sep 09 10:17 AM
Hello,
Is there a function module or class/method which will give me the list of all locks of a user in the current session and not across all sessions (like transaction SM12). Function modules like ENQUE_READ and ENQUE_READ2 provides the lock list for a user across all sessions but not in the seesion in which the FM is being executed.
Please let me know if you have any information in this regard.
Thanks & Regards,
Saurabh
2008 Sep 09 9:25 PM
Lock objects are not session-specific, therefore I find it hard to believe that such function exists. You might want to ask in Basis forum though, this has nothing to do with ABAP.
2008 Sep 10 3:43 AM
Hi Jelena,
The question was basically to do with optimistic locking whihc is coming up in the next NW releases and there one needs to differentiate between an optimistic lock by the same user on the same object in different sessions.
I found out that the enqueue function modules themselves can be called with a special mode to check for an optimistic lock in a particular session for a particulat user and hence the list of locks for a session is not required.
Thanks & Regards,
Saurabh
2008 Sep 09 9:40 PM
2008 Sep 10 3:46 AM
Hi Sujit,
Sorry for this. My IE crashed while posting the other thread so I didnt know whether that thread got posted and later I posted the same thing in the ABAP general forum. Thanks for pointing this out.
Best Regards,
Saurabh
2008 Sep 10 3:46 AM
Solved it myself. See the reply to one of the answers to this thread.