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

select multiple rows in a grid

Former Member
0 Likes
758

Hi All,

I want to select multiple rows in a grid on click of a button, there is no checkbox there are multiple rows which need to be selected like we do on pressing shift key on the keyboard. Please suggest how can this be done.

thanks in advance.

Regards,

Anju

6 REPLIES 6
Read only

Former Member
0 Likes
724

Hi Anju,

You can check this link to solve your problem:

https://wiki.sdn.sap.com/wiki/display/Snippets/ALV%2bGrid%2bDisplay%2bwith%2bcheckbox%2bto%2bprocess...

Hope it helps you.

Thanks & Regards,

Sarita Singh Rathour

Read only

0 Likes
724

I do not have a checkbox on my grid. I want to select multiple rows as we do by holding shift key on the keyboard.

Thanks,

Anju

Read only

0 Likes
724

Hi,

Check the final reply of this thread. It is possible by using BOX_FIELDNAME in your ALV Layout Structure.

[]

Regards,

Vik

Read only

Former Member
0 Likes
724

hi,

use the following code


"ITAB is the internal by which you filling the grid
"V_CHK is the check box.
loop at itab where V_CHK = 'X'. 

"wite your desired code here.
end loop.

hope this helps

Regards

Ritesh J

Read only

Former Member
0 Likes
724

Hi,

Define a single char field in your output table as the first field..

and then define the layout as

wa_layout-box_fieldname = 'SEL'.

where SEL is the field name int the output table.

regards,

Archana

Read only

Former Member
0 Likes
724

done