07-06-2013 12:31 AM
Hi SAP Guru,
I'm a beginner in the SAP ABAP world and i have been asked to look into whether the result of a selection screen can be update automatically every 5 minutes instead of the user manually refreshing the screen via the selection criteria search screen or using a refresh button.
Any advice would be helpful.
Thanks.
07-07-2013 10:21 AM
Hi Charles,
Try these -
http://scn.sap.com/thread/1513206
http://sample-code-abap.blogspot.in/2010/12/auto-refresh-alv-list-clguitimer.html
http://www.sapdev.co.uk/reporting/rep_autorefresh.htm
Disclaimer :- I am away from ECC so i have not tested any of above methods.
BR.
07-07-2013 9:42 AM
Hi Charles
You have to do following steps:
1. Add a Icon (Refresh) in your application tool bar using PF_STATUS
2. Capture the sy-ucomm (upon user pressing the refresh button )
3. In your code check for the sy-ucomm = Refresh then you re process your internal table that you used for displaying the ALV.
4. call again CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
Regards,
Venkat
07-07-2013 10:21 AM
Hi Charles,
Try these -
http://scn.sap.com/thread/1513206
http://sample-code-abap.blogspot.in/2010/12/auto-refresh-alv-list-clguitimer.html
http://www.sapdev.co.uk/reporting/rep_autorefresh.htm
Disclaimer :- I am away from ECC so i have not tested any of above methods.
BR.
07-07-2013 11:19 AM
Hi,
http://scn.sap.com/thread/1513206
Contain my solution .
Also look at program SAP_TIMER_DEMO
Regards.
07-07-2013 2:12 PM
Hi Charles,
Check this code.
http://wiki.sdn.sap.com/wiki/display/ABAP/Automatic+refresh+of+List++Report