Skip to Content
0
Former Member
Dec 03, 2007 at 09:14 AM

Subtotals in ALV Printing incorrectly

92 Views

Hi all,

I am displaying data using alv grid. 3 column in the alv are used as for the addditon of the field's data now. next 3 column are used as average of the row values of the respective cloumn column..

Now when I click on printpreview button of ALV-grid..then it doesn't show the data in the way that was shown in alv_grid.

Just analyse the data..

data: shown in alv_grid is

column1 column2 column3 column4 column5 column6

1 2 3 4 5 6

1 2 3 4 5 6

1 2 3 4 5 6

sum1 3 6 9 4 5 6

sum2 3 6 9 4 5 6

sum3 3 6 9 4 5 6

last 3 columns(column4 column5 column6) are sorted as for taking averages

now when i click on printpreview of alv_grid to display it in alv_list

data will be displayed as following which is different from alv_grid.

column1 column2 column3 column4 column5 column6

1 2 3 4 5 6

1 2 3 4 5 6

1 2 3 4 5 6

sum1 3 6 9 12 15 18

sum2 3 6 9 4 5 6

sum3 3 6 9 4 5 6

when I am debugging the code for the above requirement then for the second and third level of sub-totals citeria is being displayed but for first level criteria is not displayed in the method_subtotal_text.

Please suggest me for the above..

Regards,

Puneet Mehta