09-12-2008 6:39 AM
HI
I am using REUSE_ALV_GRID_DISPLAY and after some changes in data i want to refresh it. is there any function module to refresh it or i have to call that FM again.
Thanks and Regards
Aditya
09-12-2008 6:47 AM
09-12-2008 6:43 AM
hi,
You better refresh the internal table you are passing to the ALV and call REUSE_ALV_GRID_DISPLAY again.
Regards,
Anirban
09-12-2008 6:43 AM
09-12-2008 6:47 AM
Hi,
Please See the link.
http://www.sap-img.com/abap/how-to-refresh-alv-list-grid-once-it-is-displayed.htm
Regards
Sumit Agarwal
09-12-2008 6:47 AM
09-12-2008 6:51 AM
Hi,
could you please elaborate the changes in data,
if the data (obtained from database) is changed ,then refresh the internal table and call the perform (consisting of FM REUSE_ALV_GRID_DISPLAY) again..
if you are using select all/deselct all then use
rs-selfield-refresh = X
Regards,
Rohan
09-12-2008 6:52 AM
Hi,
The following method call is used to refresh the data displayed within an ALV object grid:
CALL method gd_tree->REFRESH_TABLE_DISPLAY.
CALL METHOD gd_tree->set_table_for_first_display
EXPORTING
is_layout = gd_layout
CHANGING
it_fieldcatalog = gd_fieldcat
it_sort = it_sortcat
it_outtab = it_report.
CALL method gd_tree->REFRESH_TABLE_DISPLAY.
CALL METHOD cl_gui_cfw=>flush.
Hope this helps.
Regards,
Sipra
09-12-2008 7:20 AM
Demo program BCALV_GRID_03 in development class SLIS uses this method to refresh the output table after a new selection.
Features
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 >.
regards
anil chaudhary