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

Refresh ALV Report

Former Member
0 Likes
650

I am using call method cl_salv_table=>factory to display an ALV report. How to add a refresh button and then add functionality to it.

1 ACCEPTED SOLUTION
Read only

former_member191735
Active Contributor
0 Likes
560

There is a method in the same class... called REFRESH.

Use this to refresh your report and if you want to add a button to the output.... use gui status to add the button and in PBO of the screen - use the above method to refresh or rebuild the display. Well, you can have soft refresh or normal refresh.. read class documentation for more information on method REFRESH.

I am using call method cl_salv_table=>factory to display an ALV report. How to add a refresh button and then add functionality to it.

2 REPLIES 2
Read only

former_member191735
Active Contributor
0 Likes
561

There is a method in the same class... called REFRESH.

Use this to refresh your report and if you want to add a button to the output.... use gui status to add the button and in PBO of the screen - use the above method to refresh or rebuild the display. Well, you can have soft refresh or normal refresh.. read class documentation for more information on method REFRESH.

Read only

Former Member
0 Likes
560

Hi,

In ALV, to refresh the table you have to call the method "refresh_table_display".

It has the syntax very similar to creating the table.

It has two parameters. In the first one, you can mention if you want to refresh only the data (the icons are not refreshed)

or

if you want to refresh only the icons around the grid (the data is not refreshed - this option is mostly not used in day to day applications).

the synatx is :-

call method grid (name of grid )->refresh_table_display

exporting

IS_STABLE = <STRUCT OF TYPE LVC_S_STBL> (THIS IS FOR DATA REFRESHING)

I_SOFT_REFRESH = <VARIABLE OF CHAR 01> (THIS IS FOR ICON REFRESHING).

Regards,

Bhaskar