Register Login

How to delete Lock entries from SM12 Programmatically?

Updated May 18, 2018

I have to delete lock entry for lock object ESDOKOBJ. We have the FM DEQUEUE_ESDOKOBJ. But this is not working.

we can use this Fm to delete enqueue Objects

CALL FUNCTION 'ENQUEUE_READ'

EXPORTING

gname = '' """"""""""" ESDOKOBJ ( eg : table name )

garg = ''  """""""""""" document name ( eg : trdir )

GUNAME = ''

TABLES

enq& = enq

EXCEPTIONS

OTHERS = 0.

DESCRIBE TABLE enq LINES sy-tfill.

CHECK sy-tfill > 0.

CALL FUNCTION 'ENQUE_DELETE'

EXPORTING

suppress_syslog_entry = 'X'

IMPORTING

subrc = rc

TABLES

enq = enq.


Comments

  • 06 Oct 2013 9:44 am Guest
    it is now working in my case. i copied the same program

×