05-02-2007 9:24 AM
IN ALVS instead of clicking on sigma to get totalling,is there any other alternative?
05-02-2007 9:25 AM
in the field catalog for that field add this
wa_fieldcat-do_sum = 'X'.
05-02-2007 9:26 AM
Hi Reddy ..
try exploring type pool slis...
you will field a field sum put it as 'X' while you declare the fieldcalalogs...
that will do
05-02-2007 9:26 AM
Hi,
You can do that from the field catalog it self. in the field catalog, there is a field DO_SUM , use that field then that will do the sum
Regards
Sudheer
05-02-2007 9:36 AM
hi r k,
just try this code,
data: l_wa_fieldcatlog type slis_fieldcat_alv.
add 1 to u_pos.
if l_wa_fieldcatlog-fieldname = 'total'. " here total is your sum field
l_wa_fieldcatlog-do_sum = 'X'.
endif.
l_wa_fieldcatlog-col_pos = u_pos.
l_wa_fieldcatlog-tabname = u_0348.
l_wa_fieldcatlog-fieldname = u_0349.
l_wa_fieldcatlog-outputlen = u_0350.
l_wa_fieldcatlog-reptext_ddic = u_text.
append l_wa_fieldcatlog to l_tab_fieldcatlog.
Message was edited by:
maddipatla Seshu chowdary
05-02-2007 9:39 AM
In your program please add the following line before calling alv display to add all corresponding field values without using summation symbol....
d_fieldcat_wa-matnr = 'MATNR'.
d_fieldcat_wa-seltext_l='material number'.
d_fieldcat_wa-do_sum='X'.
append d_fieldcat_wa.
clear d_fieldcat_wa.
PLEASE REWARD......!!!!