2007 Dec 18 11:20 AM
I have done subtotals of two columns. now i want to add these to values and display beside these columns but in the same row where the subtotal gets displayed. Is it possible in ALV? if yes how?
2007 Dec 18 11:26 AM
HI,
You can create a new field and do the necessary things and populate the sum of these columns to newly added column.
Ex :
Loop at it_final.
it_final-newfield = it_final-firstcolumn + it_final-secondcolumn.
modify it_final.
clear it_final.
endloop.
Thanks,
Sriram Ponna.
HI,
You can create a new field and do the necessary things and populate the sum of these columns to newly added column.
Ex :
Loop at it_final.
it_final-newfield = it_final-firstcolumn + it_final-secondcolumn.
modify it_final.
clear it_final.
endloop.
Thanks,
Sriram Ponna.
2007 Dec 18 11:26 AM
HI,
You can create a new field and do the necessary things and populate the sum of these columns to newly added column.
Ex :
Loop at it_final.
it_final-newfield = it_final-firstcolumn + it_final-secondcolumn.
modify it_final.
clear it_final.
endloop.
Thanks,
Sriram Ponna.
2007 Dec 18 12:19 PM
Thanks for reply. But the question is how to dispaly it? how to pass it to field catalogue for grid display?
that I am not getting
2007 Dec 18 11:31 AM
boss what do u want, ur queston is not clear!!!!!!!!
do uwnt to hide the subtotals/totals ??
or u want to hide the fields which u done subtotls???
???????????????????????????????????
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |