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

Problem Faced In ALV Grid Row Selection

Former Member
0 Likes
786

Hi Experts,

I am displaying the output in ALV grid format.

Now i am using cl_gui_alv_grid->Get_selected_ROWS to get the row index selected by User and on clicking a button it will take us to another screen which will hold the values of the selected row.

<b>Problem Faced</b>: But when we again go back to the first screen and select another row and click this button the selected row’s index remains initial, that value is not getting captured.

please help me if a am missing something.

Hi Experts,

I am displaying the output in ALV grid format.

Now i am using cl_gui_alv_grid->Get_selected_ROWS to get the row index selected by User and on clicking a button it will take us to another screen which will hold the values of the selected row.

<b>Problem Faced</b>: But when we again go back to the first screen and select another row and click this button the selected row’s index remains initial, that value is not getting captured.

please help me if a am missing something.

4 REPLIES 4
Read only

Former Member
0 Likes
693

Check for refresh command. You might have used before calling the next screen.

Regards,

Prakash.

Read only

0 Likes
693

Hi experts,

I have already called the method : gridinstance->refresh_table_display aswellas refreshed those variables also.

Could you all please help me out.

Thanks in advance.

Message was edited by: Simy Abraham

Message was edited by: Simy Abraham

Read only

0 Likes
693

Hi,

Can you please tel me how this problem is solved for you.

Even I'm facing the same problem.

Regards,

Kumar

Read only

Former Member
0 Likes
693

Hi,

Before calling the cl_gui_alv_grid->Get_selected_ROWS

refresh the two params

<b> ET_INDEX_ROWS

ET_ROW_NO</b>

now call the method and check .

Regards

vijay