‎2011 Jan 18 9:59 AM
Hi,
We have a Z table. There is a lock object created for that table. So we are using ENQUEUE FM to lock the table before updating it. After modifying the table, DEQUEUE FM is being used to release the lock.
Now the problem is, we got an error "The database system detected a deadlock and avoided it by rolling back your transaction."
May be two people tried to modify the same record thats why we got this error.
After releasing the lock using the DEQUEUE FM, COMMIT statement is not used.
My question is, are we getting this problem due to the absence of COMMIT statement or is there any other reason?
We are unable to replicate this error.
Please reply.
Thanks,
Ibrahim.
‎2011 Jan 18 10:06 AM
To replicate the sccenario, use program to update table in debugging in 1 session.
and update table through SE11 in maintainece table entries.
You can check with this.
Commit work will not create a problem.
Let me know any querries.
‎2011 Jan 18 10:10 AM