Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with ALV-GRID

Former Member
0 Kudos

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?

1 REPLY 1

ssimsekler
Active Contributor
0 Kudos

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