Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Viewing document lock status

Former Member
0 Likes
1,093

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...

5 REPLIES 5
Read only

Former Member
0 Likes
877

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

Read only

0 Likes
877

Hi How come I know whether any lock object exists for a Z-table .

Read only

0 Likes
877

Oh, So Silly Question.

any way my requireemnt meet

Read only

0 Likes
877

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

Read only

0 Likes
877

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 .