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

ALV grid row mark

How can I create an alv without creating it with edit mode? I only want to have the columns to mark the rows but without editing function.

I don't find it in structure LVC_S_LAYO. At the moment I take

gs_layout-edit = 'X'.

but then I can edit all data, I only want to select with the row column, is that possible?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Dec 22, 2008 at 02:09 PM

    Use:

    LVC_S_LAYO-SEL_MODE = 'A',

    You have to switch editing off, otherwise it may overwrite this setting.

    Then, to get what is selected use one of the methods:

    GET_SELECTED_CELLS

    GET_SELECTED_CELLS_ID

    GET_SELECTED_ROWS

    GET_SELECTED_COLUMNS

    Regards

    Marcin

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 02:12 PM

    You can use field SEL_MODE of the same structure.

    Marcin already posted the correct answer.

    Regards,

    John.

    Edited by: John Heutmekers on Dec 22, 2008 3:13 PM

    Add a comment
    10|10000 characters needed characters exceeded

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.