Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with REFRESH_TABLE_DISPLAY & EVENT_TOOLBAR_CLICK

Former Member
0 Likes
1,348

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

4 REPLIES 4
Read only

Former Member
0 Likes
723

Hi,

Where have you written this code? In any event for button click?

Thanks and Regards,

Lakshmi.

Read only

0 Likes
723

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

Read only

Former Member
0 Likes
723

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.

Read only

0 Likes
723

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.