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