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

importing

e_valid = lf_valid.

if lf_valid = 'X'.

call method grid->set_ready_for_input

exporting

i_ready_for_input = 1.

endif.

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">www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/an%20easy%20reference%20for%20alv%20grid%20control.pdf">An Easy Reference for ALV Grid Control.

    Regards...

    *--Serdar

    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.