Skip to Content
0
Former Member
Jan 14, 2008 at 10:01 PM

Subtotal rows of internal table

635 Views

Hi ,

I need to subtotal certain lines in an internal table.

eg.

Line 11 * Line 12* Val 1

Line 21* Line 22* Val 2

Line 31* Line 32* Val 3

SubT 11-31 subT 12-31

Line 41* Line 42* Val 4

Line 51* Line 52* Val 5

SubT 41-51 Subt 42-52

Line 61* Line 62* Val 6

Subt 41-61 Subt 42-62

Totals 11-61 Totals 12-62

How do i do this? Also I need the sum of the rows, i.e. line 11+ line 12.

Any sample code would be great!

Thanks,

MJ