07-27-2010 12:42 PM
Hi,
I am displaying the list of entries in my ALV table ( project specific table entries).
On click opf one row, it will display the details in my screen programing.
I can edit a particular row and update the table. When I am in edit mode of a particular row then other user shoudnt use the same row.
This has to be handled as SM12 lock.
How to use enqueue or dequeue to do this...
Any help is appreciated.Thanks
07-27-2010 12:52 PM
The data which you are showing are from a database right? go to se11, and create an lock.While creating the locks, please specify the fields .
For each lock, its automatically create 2 function module.
ENQUEUE and DEQUEUE .
If you use the function module ENQUEUE_<LOCK NAME> before showing the ,screen from your alv automatically the records will come in SM12.
Regards,
Nikhil
Edited by: Nikhil V Kumar on Jul 27, 2010 5:22 PM
07-27-2010 12:46 PM
Hi Sumithra,
Create ENqueu/ Dequeue for the table as below.
call function 'ENQUEUE_ZSDAR'
EXPORTING
NAME = 'TABLE'.
07-27-2010 12:48 PM
07-27-2010 1:02 PM
ENqueue_ZSDAR where "ZSDAR" is the table name for which we create Locks.
Hope this helps.
07-27-2010 12:52 PM
The data which you are showing are from a database right? go to se11, and create an lock.While creating the locks, please specify the fields .
For each lock, its automatically create 2 function module.
ENQUEUE and DEQUEUE .
If you use the function module ENQUEUE_<LOCK NAME> before showing the ,screen from your alv automatically the records will come in SM12.
Regards,
Nikhil
Edited by: Nikhil V Kumar on Jul 27, 2010 5:22 PM