01-17-2008 8:24 AM
Hi,
I´m working on an existing program which generates an ALV using several tables. The users are able to change and delete existing entries and to add new entries.
But the problem is, that a parallel editing is possible (several users have the ALV-Grid openend and are changing entries). How can I avoid this by showing the ALV-Grid in a readonly-mode while someone is editing? Any suggestions?
Thanks for help.
Greetings,
Sven
01-17-2008 8:32 AM
Hi Sven,
If the tables used for the ALV have lock-objects you could use these lock objects to prevent parallel editing.
Regards,
John.
01-17-2008 10:33 AM
Hi John.
I have solved the problem already using an appendage similar to yours.
I have enqueued the tables and if an user starts the program and the sy-subrc for the enqueue-function is not null a global variable is set. Later in the program I don´t set lvc_s_layo-edit = 'X' if the global variable is EQ 'X'.
Regards,
Sven