06-19-2008 7:14 AM
06-19-2008 7:25 AM
Hi,
Can you do this in program?
do the sum in internal table and keep that sum in one field.
And displar that field in ALV.
Reward pts. if usefull.
Regards,
Dhan
06-19-2008 7:19 AM
JUst add one more column in the internal table and pass the addition of all the numeric fields in this filed .
Write something like this .
loop at itab.
itab-fieldsum = itab-field1 + itab-field2 + itab-field3.
modify itab.
endloop.
06-19-2008 7:22 AM
HI Manik Dhakate
sorry yar
i wann in the coloum wise can u help me in this please
06-19-2008 7:36 AM
Hi.
To obtain sum for column use do_sum field which was present in fieldcatlog.
while filling field catlog for that particular field check do_sum filed as 'x'.
This do_sum field is presented in slis_fieldcat_main0 include of field catlog
PlZ reward points, if helpful.
Regards.
06-19-2008 7:25 AM
Hi,
Can you do this in program?
do the sum in internal table and keep that sum in one field.
And displar that field in ALV.
Reward pts. if usefull.
Regards,
Dhan
06-19-2008 7:27 AM
Hi,
If you want to add column then its more easy. You get a sum button in the toolbar of alv. Just select the column and click on SUM.
Regards,
Dhan
06-19-2008 7:34 AM
HEY BUDDY
I WAS BOING IN BLOCKED ALVS AND I WANN THE SUM AT THE TIME OF OUTPUT
06-19-2008 7:48 AM
Hi,
use the parameter it_sort from alv function module.
ex: wa_sort-subtotal = 'x'.
similarly for grand total use it_fieldcat
i_fieldcat-do_sum
If found useful
reward mark.............