‎2006 Feb 03 10:19 AM
Hi All,
I'm updating a table and i have to lock the table. I have to use a enqueue for that if im not wrong. which enqueue and dequeue should i use...can somebody help me with this.
thanks,
kiran.
‎2006 Feb 03 10:32 AM
Hello Kiran,
There are two ways you can work this..
1. u can look for a lock objects for the table in SM37.
2. use FM ENQUEUE_E_TABLE where u can specify table name if u r not sure if end and deq objects exists.
Once u find the end & deq Fm u them in the program to lock and unlock.
‎2006 Feb 03 10:32 AM
Hello Kiran,
There are two ways you can work this..
1. u can look for a lock objects for the table in SM37.
2. use FM ENQUEUE_E_TABLE where u can specify table name if u r not sure if end and deq objects exists.
Once u find the end & deq Fm u them in the program to lock and unlock.
‎2006 Feb 03 10:33 AM
hi,
You have to mention the lock object name for that table.
You can create a lock on a object of SAP thorugh transaction SE11 and enter any meaningful name start with EZ Example EZTEST_LOCK.
When you create a lock object System automatically creat two function module.
1. ENQUEUE_<Lockobject name>. to insert the object in a queue.
2. DEQUEUE_<Lockobject name>. To remove the object is being queued through above FM.
Regards,
Sailaja.
‎2006 Feb 03 10:42 AM
im trying these with ur help. ill get back when i need some help.
thanks to all...
‎2006 Feb 03 10:36 AM
create lock objects with naming convention ez or ey.
once they are activated they generate fn modules,
enqueue_<lockobjectname> and dequeue_<lockobjectname>.
u call these from ur program.
while debugging only u can set lock