Skip to Content
0
Former Member
Mar 19, 2009 at 12:06 AM

OO ALV modifed subtotals changes on layout change

251 Views

Hi,

I am using OO CL_GU_ALV_GRID for my report which has calculation of certain columns as custom formula instead of subtotals. I have used the GET_SUBTOTALS method of the class to obtain the subtotals at multiple level and modify them as per the custom formula. However

when I alter the layout the calculated subtotals values return to their old values. I have used the AFTER_USER_COMMAND event to repopulate the calculated subtotals in mt_c01, etc

but the values are not reflected. Also I have tried using GR_ALVGRID->REFRESH_TABLE_DISPLAY

Exporting

I_SOFT_REFRESH = 'X' but that is of no help.

however if i use IS_STABLE parameter with row and column selected the values are retained but the layout cant be altered; which ofcourse is not desired.

Any suggestions are welcome.

Thanks.