Skip to Content
0
Feb 01, 2010 at 08:34 AM

Dequeue multiple instances of the same lock

295 Views

Hello,

I'm developing a user exit for a standard transaction. In this exit I want to dequeue some of the locks created by the standard transaction. For some reason it has created multiple locks for the same object.

So if I write

CALL FUNCTION 'DEQUEUE_ESORDER'

EXPORTING

mode_aufk = 'E'

aufnr = l_aufnr.

the "use count" in SM12 decreases by one. If I call the same dequeue several times (e.g. in a DO loop), the lock disappears in SM12.

Is there a way to remove all lock instances with a single FM call?

Thanks in advance

Roland