12-02-2004 6:56 PM
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?
12-02-2004 8: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 <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://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</a>.
Regards...
*--Serdar