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

Multiple row selection and re-processing for all selected row

Former Member
0 Likes
753

Hi All,

i made an ALV report and in output i gave a re-process button by which if user select 1 row of ALV then it will re-process the data for selected row by calling another program and it is working fine, but problem is that now user want that if he selects multiple rows in output and click the re-process button then it should be re-process for all selected rows.

can anyone plz help.

regards.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
693

Dear Saurabh,

You are having two options for doing so.

In fieldcatalog choose appropriate field which allows u to select multiple line items and hence in ur called program you would have track to determine the nos of rows selected. and further you can process multiple line items respectvely.

Regards,

Nirav Parekh

6 REPLIES 6
Read only

Former Member
0 Likes
694

Dear Saurabh,

You are having two options for doing so.

In fieldcatalog choose appropriate field which allows u to select multiple line items and hence in ur called program you would have track to determine the nos of rows selected. and further you can process multiple line items respectvely.

Regards,

Nirav Parekh

Read only

0 Likes
693

hello all,

thanks for reply......is there any other way for the row selection? actualy i used 'REUSE_ALV_GRID_DISPLAY'

so that i dont want to use check box also...just user will select the row and do the re-process.

plz help.

saurabh.

Read only

0 Likes
693

In my earlier thread i mentioned a link

within

and check Serdar Simsekler reply

a®

Read only

Former Member
0 Likes
693

Hi,

Add a checkbok field as the first field in the ALV report output. User can check/select any number of check boxes to do re-processing. In the program, process all the records where checkbox field is set as 'X' when re-process button is clicked.

Hope this helps you!!!

Regards,

Ganga

Read only

former_member194669
Active Contributor
0 Likes
693

If you use CL_GUI_ALV_GRID


CALL METHOD cl_gui_alv_grid=>get_selected_rows
      EXPORTING
        it_index_rows = gi_index_rows.

gi_index_rows contains the row index of selected rows

or if u use resuse

a®

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
693

Hi,

Refer wiki code by me on ALV with Checkbox:-

https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/alv%252bgrid%252bdisplay%252bwith%252bch...

Hope this helps you.

Regards,

Tarun