2008 Feb 19 8:13 PM
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.
2008 Feb 19 10:43 PM
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.
2008 Feb 19 10:43 PM
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.
2008 Feb 20 5:22 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |