‎2008 Mar 19 3:43 PM
Hi ,
I have displayed a ALV grid using reusue_alv fm, need to refresh the gird to display the current data.
Thanks,
Vind.
‎2008 Mar 20 5:51 AM
Hi,
With the Assumptions:
1) alv_rec = ALV Grid with data, it_spfli from the Table SPFLI
2) User selects Load from the menu, to load fresh data
WHEN 'LOAD'.
DATA: g_stable TYPE lvc_s_stbl.
SELECT * FROM spfli INTO TABLE it_spfli
WHERE carrid = 'AA'.
*== Refresh the screen without changing the view ==
g_stable-row = '1'.
CALL METHOD alv_rec->refresh_table_display
EXPORTING
is_stable = g_stable.
Refreshes the contents of the ALV Grid with current data.
Cheers,
Remi
‎2008 Mar 20 5:55 AM
Hi
Check this code and change accordingly
http://www.sap-basis-abap.com/abap/auto-refresh-alv-list.htm
regards
Shiva
‎2008 Mar 20 5:55 AM
Hi,
It is easy to refresh the internal table that u pass to the reuse-alv FM.
Hope this helps.
Regards,
Ramya