‎2006 Sep 28 9:36 PM
Hi,
My requirement is to view whether particular delivery note (DNOTE/document)is locked by some other user or not?
Basically I want to view lock status on particular document.
I have gone thru function module View_enqueue and RSPO_GET_LOCK_STATUS. But i guess these are not working for me.
Is anyone aware of such case. Plz respond quickly..
Regs,
Ags...
‎2006 Sep 28 9:50 PM
Hi,
Try to lock the delivery using the FM ENQUEUE_EVVBLKE...IF the return is code is successfull then the delivery is not locked..Then immediately call the FM DEQUEUE_EVVBLKE to unlcok..
If the return code is not succesfull after the FM ENQUEUE_EVVBLKE call then the delivery is locked..
Thanks,
Naren
‎2010 Jul 21 11:34 AM
Hi How come I know whether any lock object exists for a Z-table .
‎2010 Jul 21 12:06 PM
‎2010 Jul 21 12:32 PM
try using function
call function 'ENQUEUE_READ'
EXPORTING
gclient = gclient
guname = guname
gname = gname
garg = garg
IMPORTING
subrc = subrc
TABLES
enq = enq
EXCEPTIONS
exceptions
communication_failure = 2
others = 1.
if sy-subrc = 0.
exit.
elseif sy-subrc = 2.
message w116.
endif.
i only use parameter gClient and gUname. You should use whatever you need...
After call this function table enq is filled by all locks
‎2010 Jul 21 12:50 PM
Hi ,
If I pass only 2 parameter gClient and gUname it will behave like t-code SM12 .
My Requirement was to know wheher any Lock Object(From se11) Written for a Particular Ztable .
I used Where-used list and got .
Thanks For reply .