‎2006 Jun 19 4:16 PM
hi to all,
I have created a push button on ALV grid. The ALV is not created in OO.
Can anybody tell me how to select a row or multiple row and relate it to fuction attached to that push button. I have followed all links in forum but that all are for ALV created in OO.
The row should be selected on basis of grid available on left hand of grid or I have also putted checkbox in grid.
plz do the needful.
thanks
regards,
sachin d.
‎2006 Jun 19 4:41 PM
Hi,
if you want multiple selection all lines. then
case r_ucomm.
when 'BUTTONCODE'.
loop at itab.
itab-check = 'X'. "Check is checkbox field
modify itab index sy-tabix.
endloop.
selfield-refresh = 'X'.
endcase.Regards
vijay
‎2006 Jun 19 4:34 PM
For push botton.
1) add extra field in to data_tab of char1
2) in the layout there is field called boxfield name.
3) assign the name of the column of lenght char1( mentined above 1.e extra field which u have added) to the boxfieldname
<b>
Mark Helpful Answers</b>
Message was edited by: Manoj Gupta
‎2006 Jun 19 4:39 PM
Hi,
on what basis the Rows will be selected , or is it multiple selection means selecting all the rows ,only few row.can you make it clear.
Regards
vijay
‎2006 Jun 19 4:41 PM
Hi,
if you want multiple selection all lines. then
case r_ucomm.
when 'BUTTONCODE'.
loop at itab.
itab-check = 'X'. "Check is checkbox field
modify itab index sy-tabix.
endloop.
selfield-refresh = 'X'.
endcase.Regards
vijay
‎2008 Feb 26 7:32 AM