‎2006 Jul 21 2:33 PM
Hi All,
I'm using "REUSE_ALV_GRID_DISPLAY"
I want to refresh ALV grid after a SUBMIT statement. I'm deleting the data in SUBMIT statement and when I come back to the screen I'm getting the deleted record also.
How can I refresh the grid?
Thanks in advance.
Bhavana
‎2006 Jul 21 2:57 PM
Hi Bhavana,
Try this-
DATA: LC_GLAY TYPE LVC_S_GLAY.
LC_GLAY-EDT_CLL_CB = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_GRID_SETTINGS = lc_glay
IT_FIELDCAT = l_fialdcattab
TABLES
T_OUTTAB = t_itab.
hope this helps u.
Regards,
Seema.
‎2006 Jul 21 2:48 PM
‎2006 Jul 21 2:54 PM
‎2006 Jul 21 2:57 PM
Hi Bhavana,
Try this-
DATA: LC_GLAY TYPE LVC_S_GLAY.
LC_GLAY-EDT_CLL_CB = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_GRID_SETTINGS = lc_glay
IT_FIELDCAT = l_fialdcattab
TABLES
T_OUTTAB = t_itab.
hope this helps u.
Regards,
Seema.
‎2006 Jul 21 3:04 PM
‎2006 Jul 21 3:08 PM
I tried the below code but still its not refreshing the grid.
Any other way?
DATA: LC_GLAY TYPE LVC_S_GLAY.
LC_GLAY-EDT_CLL_CB = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_GRID_SETTINGS = lc_glay
IT_FIELDCAT = l_fialdcattab
TABLES
T_OUTTAB = t_itab.
Thanks,
Bhavana
‎2006 Jul 21 3:15 PM
hi bhavana,
just use
SUBMIT <REPORTNAME>.
this will refresh the grid display
‎2006 Jul 21 3:15 PM
Hi,
Can you please go through this links ....
http://www.sap-img.com/abap/alv-grid.htm
http://www.sap-img.com/abap/how-to-refresh-alv-list-grid-once-it-is-displayed.htm
http://www.sapgenie.com/abap/controls/alvgrid.htm#Refresh%20grid%20display
Thanks
Sudheer
‎2006 Jul 21 3:17 PM
if your submit is dane after command triggered from alv do that:
FORM alv_commander USING ex_comm TYPE sy-ucomm
ex_field TYPE slis_selfield.
CASE ex_comm. "alv - command
WHEN 'your_command'.
......
...... "you code.
ex_field-refresh = 'X'.
endcase.
BR, JAcek