Skip to Content
0
Former Member
Nov 13, 2009 at 01:07 PM

Unable to unlock using Dequeue function module

3550 Views

hi,

I have created a lock entry for a z-table, which I update using a program. When I lock - update the table - unlock using enqueue / dequeue function modules from one program, it works fine. But now the need is, I selelct and lock a particular entry (which i display in an alv grid) in the first program, which submits another, and from there i update the table, and then unlock. But in this case, the dequeue fm fails, and the lock entry in SM12 is not getting deleted. When I try to edit the same entry coming back to the first program, it gives OBJECT IS CURRENTLY LOCKED BY the same user, it throws a foreign lock exception. should unlocking this way won't work, due to a submit call to another report? Where am I going wrong?

Regards,

Sathish

Edited by: Sathish on Nov 13, 2009 8:08 AM