‎2008 Apr 18 7:57 AM
Hello
I have two customcontainers on one dynpro, one at the left side of the dynpro, one at the right side. Each of it assigned with an ALV-grid of class cl_salv_table.
Now, when data in one grid is clicked, I change the number of rows in the other grid and call the refresh method( full ) for this second grid.
This works fine, when I click data in the left grid. New data appears in the right grid. But strangely, when clicking in the right grid, which should change data in the left one, nothing happens, the screen does not change.
Then, when I click a function at this second grid (for example get layout) the new data selection appears.
Is there any method to get the refresh work? The event at grid one ought to change data at grid two and refresh it on the screen.
Regards,
Herbert
‎2008 Apr 18 8:43 AM
Hi,
Try this
data: gr_selections type ref to cl_salv_selections,
gt_rows type salv_t_row.
refresh : gt_rows. " clear out selections
clear : gt_rows.
gr_selections = gr_table->get_selections( ).
gr_selections->set_selected_rows( gt_rows ).
Regards,
Raj.
‎2008 Apr 18 8:43 AM
Hi,
Try this
data: gr_selections type ref to cl_salv_selections,
gt_rows type salv_t_row.
refresh : gt_rows. " clear out selections
clear : gt_rows.
gr_selections = gr_table->get_selections( ).
gr_selections->set_selected_rows( gt_rows ).
Regards,
Raj.
‎2008 Apr 18 8:53 AM
Hi,
I coded this, but it doesn't work. I did it before doing the refresh and as a second try after doing the refresh, but either did change anything.
‎2008 Apr 18 10:03 AM
Ok, I found it!
I accidentally left a 'LEAVE TO SCREEN...' in my handle_user_command. This seems to have destroyed something.
Now I removed this line and everything works fine.
Thanks
Herbert
‎2011 Jun 09 8:38 PM
Hi,
Thank you for sharing the solution. I've spent hours to figure out how to making the Refresh works but without success.
Best regards
LNC
‎2008 Apr 19 11:25 AM