‎2006 Sep 11 4:23 PM
Dear experts,
I have used REUSE_ALV_GRID_DISPLAY to display some data of an internal table. I modified it and I need to display the refreshed data again.
How can I do that?
Thank you...
Roxani
‎2006 Sep 11 4:31 PM
Hi,
In the user command subroutine modify the parameter for the structure slis_selfield with the field
REFRESH = 'X'.
Thanks,
Naren
‎2006 Sep 11 4:30 PM
‎2006 Sep 11 4:31 PM
Hi,
In the user command subroutine modify the parameter for the structure slis_selfield with the field
REFRESH = 'X'.
Thanks,
Naren
‎2006 Sep 11 4:33 PM
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 :-
<b>call method grid (name of grid )->refresh_table_display
exporting
IS_STABLE = <STRUCT OF TYPE LVC_S_STBL> (THIS IS FOR DATA REFRESHING)</b>
<b>I_SOFT_REFRESH = <VARIABLE OF CHAR 01> (THIS IS FOR ICON REFRESHING).</b>
<b>Refresh grid display</b>
Use the grid method REFRESH_TABLE_DISPLAY
<b>Sample code:-</b>
http://www.erpgenie.com/sap/abap/controls/alvgrid.htm#Refresh%20grid%20display
TO refresh the ALV Lsit :
http://www.sap-basis-abap.com/abap/auto-refresh-alv-list.htm
Regards
Sudheer
‎2006 Sep 11 4:38 PM
Hi,
ALV :
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = SY-REPID
i_callback_pf_status_set = 'SET_PF_STATUS'
<b>i_callback_user_command = 'USER_COMMAND'</b>
i_structure_name = 'ITAB_DISPLAY'
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE r_ucomm.
WHEN '&DEALL'.
Message for reselection of lines
IF itab_display-kalab LE 0.
MESSAGE i101.
EXIT.
To refresh...
rs_selfield-refresh = 'X'.
regards,
vin