‎2009 Dec 29 4:41 PM
hello there,
i have a refresh button on my alv grid.when it clicked the report should be updated.Now the problem is , its not working for the first time but its working for the second time.I mean data is updating when we press the refresh button for the second time.
In the debugging its going through the same process both the times I cant figure out where its going wrong.
My code is like this
for that bit
FORM pf_status_set USING ut_extab TYPE slis_t_extab. "#EC CALLED
DATA:us_selfield TYPE slis_selfield.
DELETE ut_extab WHERE fcode = gc_refresh.
SET PF-STATUS 'STANDARD_FULLSCREEN' OF PROGRAM 'SAPLKKBL'
EXCLUDING ut_extab.
**click on refresh
IF sy-ucomm = gc_refresh.
REFRESH: gt_output,
gt_bin_output,
gt_fcat,
gt_event_exit,
gt_totals.
CLEAR: gs_output,
gs_bin_output,
gs_fcat,
gs_event_exit,
gs_totals.
PERFORM get_report. " Refresh data
ENDIF.
plz advise...
Thanks.
‎2009 Dec 29 4:47 PM
Hi
Why are u managing the refresh button in the form to set the status?
Max
‎2009 Dec 29 9:42 PM
I have no idea why u r using the refresh button seperately, but sal alv provide the provision of automatic refresh when using an user command, just need to set the paramater refresh = 'X'.
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
refresh : (exporting) list is to be refreshed
‎2009 Dec 30 2:26 AM
Hi,
Use this method : REFRESH_TABLE_DISPLAY from Class : CL_GUI_ALV_GRID.
If need more details let me know.
Regards,
Venu Madhav
‎2009 Dec 30 7:33 AM