Skip to Content
0
Former Member
Feb 19, 2009 at 09:58 PM

Grand total (of all columns) in ALV grid

940 Views

Hi Experts,

I have developed one custom ALV report in GRID format. Now Report output is displaying like below.

COL1 | COL2 | COL3 | COL4 |

TYPE1 | 10 | 44 | 05 |

TYPE2 | 01 | 20 | 35 |

TYPE3 | 05 | 10 | 20 |

=============================

sum | 16 | 74 | 50 |

But I need Grand Total for COL2 and COL3 and COL4 (i.e 16 + 74 + 50 )

This grand total line should be at the end of the internal table -- 140 .

The report output should be like below.....

COL1 | COL2 | COL3 | COL4 |

TYPE1 | 10 | 44 | 05 |

TYPE2 | 01 | 20 | 35 |

TYPE3 | 05 | 10 | 20 |

=============================

sum | 16 | 74 | 50 | ====> this sum will displayed when user select sum button on the Grid toolbar.

=============================

Grand Total 😭 140 |

Suppose when I press sum button on the COL2. it should not change grand total. I mean Grand total should be like footer always.

Please advise

Thanks in advance.

Raghu