09-15-2008 3:53 PM
I am displaying ALV report with check box.
If i click on one button all check boxex should be checked.
09-15-2008 3:57 PM
in the user_command we can do that.
form user_command using ucomm type sy-ucomm
selfield type slis_selfield.
case ucomm.
when '&IC1'.
case selfield-fieldname.
when 'CHECK'.
itab-check = 'X'. "assuming that check is the checkbox field.
modiy itab where check = '' trasnporting check.
endcase.
endcase.
selfield-refresh = 'X'.
endform.
09-15-2008 4:04 PM
I think this is a std. functionality comes with ALV grid. There is a button provided by sap besides col names if u press it all rows will be selected.
For reference check the prog BALVST02_GRID( run with Checkbox active = 'X')