‎2011 Jul 02 8:34 AM
We have a requirement where in multiple users should be allowed to maintain the table at the same time. We have created a program which removes the table level lock and applies row level lock and allows the users to change the entries at the same time, which is working fine. But the problem is that when the first user opens the first screen and click on the new entries , then the subsequent screens are blocked(all the table entries in the subsequent screens are blocked ) .
Can any one help me to overcome this problem .
Thanks a lot .
NJ
‎2011 Jul 02 10:40 AM
Hi nusratjahan,
this is a programming error.
Probably you don't pass correct lock parameters when creating new entries. Only when saving a new entry, you should first try to create the lock. f the record ist locked, someone else already created it.
You may consider the [optimistic lock concept |http://help.sap.com/saphelp_nw04/helpdata/en/50/eff4bb41124f4783ac34ab5c6a3588/frameset.htm].
Regards,
Clemens
‎2011 Jul 02 6:41 PM
Hi Clemens ,
Thanks alot for the reply .
I have used Exclesive lock (E) in SAP 4.6c version , Should I have to use Optimistic lock in the Enqueue function call ?
If yes then could you please tell me which lock i have to pass in Enqueue function as in SAP 4.6c only S , E and X lock modes
available . Which lock out of these will work as optimistic lock ?
Thanks a lot .
NJ