Skip to Content
author's profile photo Former Member
Former Member

Define an ALV-Grid as read-only


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.



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 17, 2008 at 08:32 AM

    Hi Sven,

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



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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'.



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.