Application Development and Automation 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: 
Read only

Pushbutton on ALV grid.

Former Member
0 Likes
557

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
521

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

4 REPLIES 4
Read only

Former Member
0 Likes
521

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

Read only

Former Member
0 Likes
521

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

Read only

Former Member
0 Likes
522

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

Read only

Former Member
0 Likes
521

thanks to all