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

Problem with ALV-GRID

I have to show an ALV_GRID,and then the user have to select one line, but i can`t know what line is selected,

i use for the field flag:

gs_fieldcat-checkbox = 'X'.

gs_fieldcat-edit = 'X'.

gs_fieldcat-NO_OUT = 'X'.

modify gt_fieldcat from gs_fieldcat transporting checkbox edit no_out where fieldname = 'FLAG'.

In the PAI i use:

call method grid->check_changed_data


e_valid = lf_valid.

if lf_valid = 'X'.

call method grid->set_ready_for_input


i_ready_for_input = 1.


can anybody help me?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Dec 02, 2004 at 08:33 PM

    Hi Carl

    You can use the method "GET_SELECTED_ROWS" to get indices of selected rows.

    For more information, you can have a look at the tutorial An" target="_blank">">An Easy Reference for ALV Grid Control.



    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.