Application Development 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: 

ALVS

Former Member
0 Kudos

IN ALVS instead of clicking on sigma to get totalling,is there any other alternative?

5 REPLIES 5

Former Member
0 Kudos

in the field catalog for that field add this

wa_fieldcat-do_sum = 'X'.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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......!!!!