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

alv selected rows problem

alejandro_romero2
Participant
0 Likes
458

hi gurus i use this method to get the selected rows from an alv

CALL METHOD g_grid->get_selected_rows

IMPORTING

et_row_no = sel_rows.

when i do it for the first time everything is ok, but if i pres the back button and i want to select any set of rows again it doesnt work the method g_grid->get_selected_rows get 0 rows , what should i do.

thanks

3 REPLIES 3
Read only

Former Member
0 Likes
431

Snapshot of your coding would help here but I am assuming you are calling a second ALV screen after selecting a row in the first ALV.

Check if you are using a different instance of g_grid i.e. g_grid1 & g_grid2 this will enable you to select the rows back again when you go back to the first ALV.

Regards,

Harish

Read only

Former Member
0 Likes
431

use this

REFRESH: selected_rows.

CALL METHOD grid->get_selected_rows

IMPORTING

et_index_rows = selected_rows.

this will solve your problem

tnx

Read only

alejandro_romero2
Participant
0 Likes
431

thanks i solve the problem