hey in the below code i can sum all the amounts which are in the internal table. there is another field hkont(g/l account) . at this time i want to make sub totals for every g/l account and want write it on the report...
i sorted the table based on hkont and used at new(infact used all the control break statements) i just dont why i acnt get the sub totals... can anyone come up witht he possibilities?
loop at itab_sub.
sum.
at last.
sum.
skip.
FORMAT COLOR 3.
write: sy-uline(188).
write: /1 sy-vline, 'GRAND TOTAL',
68 sy-vline, 69(12) itab_sub-samt1,
81 sy-vline, 82(12) itab_sub-samt2,
94 sy-vline, 95(12) itab_sub-samt3,
107 sy-vline, 108(12) itab_sub-samt4,
120 sy-vline, 121(12) itab_sub-samt5,
133 sy-vline, 134(12) itab_sub-samt6,
146 sy-vline, 147(12) itab_sub-samtt,
160 sy-vline, 161(12) itab_sub-samt_sp,
174 sy-vline, 175(12) itab_sub-snet,
188 sy-vline.
write: / sy-uline(188).
FORMAT COLOR OFF.
endat.
endloop.