Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV REFESH

Former Member
0 Likes
391

Hi ,

I have displayed a ALV grid using reusue_alv fm, need to refresh the gird to display the current data.

Thanks,

Vind.

3 REPLIES 3
Read only

RemiKaimal
Active Contributor
0 Likes
367

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

Read only

Former Member
0 Likes
367

Hi

Check this code and change accordingly

http://www.sap-basis-abap.com/abap/auto-refresh-alv-list.htm

regards

Shiva

Read only

Former Member
0 Likes
367

Hi,

It is easy to refresh the internal table that u pass to the reuse-alv FM.

Hope this helps.

Regards,

Ramya