2006 Feb 06 1:19 PM
I am doing a transaction that has to be locked and unlocked by user when entering, but i have realized that sometimes the users go off the transaction by clicking the 'x' in the right corner, or using '/n', is there an event that activate when the user leave the transaction, how does sap manage it?
Thanks in advance
2006 Feb 06 2:27 PM
Check these links...it should explain how locking is managed ...
http://help.sap.com/saphelp_46c/helpdata/en/48/e98137dae2424be10000009b38f8cf/frameset.htm
http://help.sap.com/saphelp_46c/helpdata/en/7b/f9813712f7434be10000009b38f8cf/frameset.htm
http://help.sap.com/saphelp_46c/helpdata/en/cb/168237d30d974be10000009b38f8cf/frameset.htm
2006 Feb 06 1:23 PM
this is the concept of lock objects and LUW.
when any user is in change mode of a transaction, then it will be locked for change. and once he comes out, again available.
if any two users can be able to update a table from transaction at the same time, it will be messy. so the concept lock objects and LUW (all or none has come).
2006 Feb 06 1:26 PM
2006 Feb 06 1:31 PM
u have to create lock objects in se11 with naming convention ez or ey.
after that call the fn modules in the program connected to the transaction, enqueue_<lockobjectname>,
dequeue_<lockobject>.
2006 Feb 06 1:26 PM
Hi Carl
You should active a lock in the program linked to that transaction.
Max
2006 Feb 06 2:27 PM
Check these links...it should explain how locking is managed ...
http://help.sap.com/saphelp_46c/helpdata/en/48/e98137dae2424be10000009b38f8cf/frameset.htm
http://help.sap.com/saphelp_46c/helpdata/en/7b/f9813712f7434be10000009b38f8cf/frameset.htm
http://help.sap.com/saphelp_46c/helpdata/en/cb/168237d30d974be10000009b38f8cf/frameset.htm