09-04-2014 11:21 AM
Hi experts,
I have one report which has got 2 alv grids in the output. The first alv grid(grid1) has hyperlinks on two fields( suppose f1 and f2 ). The second grid (grid2) is displayed when we click on the hyperlink of f1. And when we click on f2 hyperlink, it's displaying one more grid in a separate screen.
Issue I am facing here is that, By clicking on the f1 hyperlink the grid2 is displayed perfectly but when clicking the f2 hyperlink(which displays grid in a separate screen) and after coming back and again clicking on the f1 hyperlink the 2nd grid is not displaying correctly.
I am using the below code to refresh the grid2 but looks like I am missing something else also.
l_refresh-row = 'X'.
CALL METHOD grid2->refresh_table_display
EXPORTING
is_stable = l_refresh.
Could you please help me out!!!
09-04-2014 11:32 AM
Hi,
Try with below coding.
Place this code in PBO.
call method g_grid->set_frontend_layout
exporting
is_layout = gs_layout.
call method g_grid->refresh_table_display.
OR
CALL METHOD
<ref.var. to CL_GUI_ALV_GRID>->refresh_table_display
EXPORTING
IS_STABLE = <structure of type LVC_S_STBL >
I_SOFT_REFRESH = <variable of type CHAR01 >.
call method cl_gui_cfw=>flush.
09-04-2014 11:25 AM
09-04-2014 12:09 PM
09-04-2014 12:48 PM
Then Rajesh it's correct, you are missing call method cl_gui_cfw=>flush.
09-04-2014 11:32 AM
Hi,
Try with below coding.
Place this code in PBO.
call method g_grid->set_frontend_layout
exporting
is_layout = gs_layout.
call method g_grid->refresh_table_display.
OR
CALL METHOD
<ref.var. to CL_GUI_ALV_GRID>->refresh_table_display
EXPORTING
IS_STABLE = <structure of type LVC_S_STBL >
I_SOFT_REFRESH = <variable of type CHAR01 >.
call method cl_gui_cfw=>flush.
09-04-2014 2:15 PM