‎2008 Apr 29 9:42 AM
Hi,
I have a problem with data refreshing.
I have ALV Grid with modified subtotals . They are not SUM or AVG totals.
When I want refresh totals I will write:
CALL METHOD p_grid->refresh_table_display
EXPORTING
is_stable = lvc_s_stbl
i_soft_refresh = '1' " ! ! ! refresh just totals
Problem appears, when I want to press some button (from toolbar) in ALV grid, EVENT_TOOLBAR_CLICK is started and It evokes above mentioned code, but it leads to looped by itself.
Thanks
‎2008 Apr 29 9:48 AM
Hi,
Where have you written this code? In any event for button click?
Thanks and Regards,
Lakshmi.
‎2008 Apr 29 10:18 AM
REFRESH .. code is in EVENT_TOOLBAR_CLICK body.
When I press standard button of ALV from toolbar, EVENT_TOOLBAR_CLICK is started.
Problem is that this deletes me values in subtotals, wchich I was created.
Thanks
‎2008 Apr 29 10:32 AM
Hi,
Before refreshing the table, call method -> Check_changed_data.
This will refresh your table with the changed values in your internal table.
This will work assuming that Sub totals and average are edited in the alv itself and available as a row in the output internal table.
Thanks and Regards,
Lakshmi.
‎2008 Apr 29 10:46 AM
When I have press toolbar button I do not change the values.
When I have this in event_toolbar_click :
CALL METHOD go_grid->refresh_table_display
EXPORTING
is_stable = lvc_s_stbl
i_soft_refresh = '1'.
loopping occur,
when I will write:
CALL METHOD go_grid->refresh_table_display
EXPORTING
is_stable = lvc_s_stbl.
only data will be refreshed, not the totals, there will be deleted.