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: 

how to select all check boxes in ALV grid display?

Former Member
0 Kudos

I am displaying ALV report with check box.

If i click on one button all check boxex should be checked.

2 REPLIES 2

former_member188685
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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')