Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Define an ALV-Grid as read-only

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

Hi Sven,

If the tables used for the ALV have lock-objects you could use these lock objects to prevent parallel editing.

Regards,

John.

0 Kudos

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