Saturday, May 25, 2013

HOW to delete Lock Entries in SAP.


 
REPORT ZDELLOCKENTRIES.

 data : zenq type standard table of seqg3.
    call function 'ENQUE_READ'
      exporting
        gclient = sy-mandt
        gname   = 'LIKP'       """" table name
        guname  = sy-uname
      tables
        enq     = zenq.

    if zenq[] is not initial.
      call function 'ENQUE_DELETE'
        tables
          enq = zenq.
      clear: zenq, zenq[].
    endif.

1 comment:

  1. Hi,
    I want to lock some t-code when users run a report.

    For example lock the t-code 'VTTK'

    Please told me How to do?

    Thanks!

    ReplyDelete