Hello All,
Hope everyone is doing well.
okay,Iu2019m having 2 custom containers with separate ALVs on 2 screens. The only change is first screen is without header and anther is with header.
I have one button on ALV toolbar with name u201CHeader on/offu201D to switch between both screens. One first screens my all buttons are working as expected. But when I switch first time between screen till here my all buttons on the ALV tool bar are working but once I switch back to initial screen(without header) and again come back to second screen(with header) my all buttons have stop functioning because like below methods does not return any value of selected rows.
IF sy-dynnr = c_0100.
CALL METHOD g_t_grid->get_selected_rows
IMPORTING
et_index_rows = wa_li_rows.
ELSEIF sy-dynnr = c_0101.
CALL METHOD g_t_grid1->get_selected_rows
IMPORTING
et_index_rows = wa_li_rows.
ENDIF.
In method handle user command.
WHEN c_show53.
PERFORM get_show53.
IF sy-dynnr = c_0100.
CALL METHOD g_t_grid->refresh_table_display.
ELSEIF sy-dynnr = c_0101.
CALL METHOD g_t_grid1->refresh_table_display.
ENDIF.
Also on second screen Header is not updating since PBO is not getting called twice.
I know ALV is not getting refreshed once Iu2019m switching between screens twice. It always returns with the old entries and all buttons are stop functioning on second screen.
Can anyone show some lights? Any response will be highly appreciated.
Cheers
Amit