2008 Oct 06 11:57 AM
Hi,
I have a weird issue with locking during update task.
I have a report, which enqueue a specific lock object in exclusive cumulative mode (mode E) with scope 2.
Afterwards, I call FM in update task, which also enqueue exactly the same object in exclusive cumulative mode with scope 2. The FM is triggered after commit work has been executed.
For some reason, the enqueue during the update task process fails (because object is locked by other owner).
As I know, there shouldn't be any locking problem because the update task inherits the lock owner (as described in http://help.sap.com/saphelp_erp60_sp/helpdata/EN/7b/f9813712f7434be10000009b38f8cf/frameset.htm).
Does anyone why does it occur? How can I solve this issue?
Thanks in advance,
Shai
2008 Oct 06 12:00 PM
Hi
before calling the function module in update task you need to dequeue the lock
Regards
MD
2008 Oct 07 7:57 AM
Hi,
Thanks for the answer.
Why is that?
The lock is defined in exclusive cumulative mode, what means that the same lock can be requested by the same owner several times.
This scenario works just fine in normal dialog process (with two sequent locks), but fails in update task.
For your knowledge,
Shai