Grid Refresh Issue After Screen Switch - SAP Blogs
Grid Refresh Issue After Screen Switch - SAP Blogs
Community Topics Groups Answers Blogs Events Programs Resources What's New Explore SAP
Follow
Technical Articles
At vendor master screen enhancement, I create several customized screens to achieve the below purposes:
Screen 100- The main screen holds 1st/2nd level key fields along with Vendor no. and purchase org, provides buttons to create/modify/view address, etc.
Screen 200- Single address maintenance screen
Screen 300-View already maintained addresses using grid refer to cl_gui_alv_grid
1. Button ‘Create/Modify Address’ will call screen 200 to support single address maintenance.
2. Button ‘View Address’ will call screen 300 to display lists of already maintained addresses.
3. Call screen 200 when double-click a single line at screen 300, and the user can modify already existed address details at 200 and click return then get
back to screen 300.
At above point 3, the newest modification at screen 200 will not be reflected when back to screen 300 (already update the global data used by ALV grid at
screen 300), now an extra ‘Refresh’ button has been created to achieve this refreshment. But it’s quite annoying and not user-friendly. Many very similar
issues had been brought out like the below questions:
https://blogs.sap.com/2021/09/03/grid-refresh-issue-after-screen-switch/ 1/3
15/09/23, 11.15 Grid refresh Issue after screen switch | SAP Blogs
Call refresh method at end of double click Event for screen 300 is triggered, but not working.
Call refresh method at PAI of screen 200 is triggered, but not working.
Call refresh method at PBO of screen 200 is not triggered at all.
Functionality
This module simulates user input in the command field. This enables you
to run screen sequences without user input.
Example
Notes
One blog explains how to force Enter event by using this FM.
I’m not a master of the screen painter, please kindly let me know if any wrong
https://blogs.sap.com/2021/09/03/grid-refresh-issue-after-screen-switch/ 2/3
15/09/23, 11.15 Grid refresh Issue after screen switch | SAP Blogs
Alert Moderator
Assigned Tags
ABAP Development | ALV refresh | cl_gui_alv_grid | GRID refresh | SAPGUI_SET_FUNCTIONCODE | screen switch
ALV with radio button using OOPS concept in module pool program
By Former Member Dec 09, 2013
Related Questions
ALV report for 5 Grids using Objects and Method ALV .....uregent plzz (some error message while executing)
By Former Member Apr 17, 2008 By Former Member May 02, 2008
2 Comments
Sandra Rossi
September 3, 2021 at 7:14 am
refresh_table_display SHOULD work, unless you are doing something wrong, but It's difficult to understand the situation without the code (but it would be better to prepare a distinct
minimal reproducible code and to discuss based on it). You wouldn't need to have a REFRESH button. And so, you shouldn't need to execute a function code programatically.
In your case, theoretically, there could be an unlimited number of screen calls switching between 200 and 300, but it's limited to 50 CALL SCREEN. Either you agree on that limit, if a
user does more than 50 screen calls, that will short dump, and the user will have to restart. Otherwise, I would suggest that you use SET SCREEN instead. If needed, you can internally
stack the situation in memory.
Like 2 | Share
Sandra Rossi
Thanks for your comments, it's very helpful! Get your point, going to recheck my code and try to use SET SCREEN instead! I'll not list messy code here as too many screens
are involved : D
Like 1 | Share
Find us on
Newsletter Support
https://blogs.sap.com/2021/09/03/grid-refresh-issue-after-screen-switch/ 3/3