10-17-2008 4:06 PM
HI.
HOW CAN I HAVE THE NUMBER OF SELECTED ROWS IN ALV GRID????
GABRY 😃
10-17-2008 4:09 PM
You must have declared a filed for check box.
LOOP AT ITAB WHERE CHECK = 'X'.
COUNT = COUNT + 1.
ENDLOOP.
10-17-2008 4:20 PM
Hi,
You need to introduce a field 'MARK' in the output table, and assign the field in the layout
layout-box_fieldname = 'MARK'.
then in the user_command you need to loop at your output tab where mark = 'X'.
regards,
Advait
10-17-2008 4:28 PM
You need to use
data : grid1 type ref to cl_gui_alv_grid.
call method grid1->get_selected_rows
importing
et_index_rows = i_sel_alvrows[].
a®