Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV Problem

Former Member
0 Likes
385

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?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
368

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.

3 REPLIES 3
Read only

Former Member
0 Likes
369

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.

Read only

0 Likes
368

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

Read only

Former Member
0 Likes
368

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???

???????????????????????????????????