Online Tutorials & Training Materials | STechies.com
Register Login

How to delete Lock entries from SM12 Programmatically?

|| || 1

How to delete Lock entries from SM12 Programmatically?
Stechies

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
    it is now working in my case. i copied the same program

Related Articles

0.0155 seconds.