Skip to Content
0
Former Member
Feb 27, 2009 at 05:51 AM

getting sum in grid..

33 Views

Hi all,

Iam displaying by grid using classes.

Requrement is to get the sum of a partcular column and i used the following code

to populate the fieldcat.

clear wa_fieldcat.

wa_fieldcat-fieldname = 'SUM'.

wa_fieldcat-do_sum = 'X'.

wa_fieldcat-inttype = 'P' .

wa_fieldcat-key = space.

wa_fieldcat-col_pos = v_f_count.

wa_fieldcat-coltext = ' Total Spend '.

append wa_fieldcat to i_fieldcat.

Iam getting the sum value but syntax is like 1.000,00 , 3.300,00

mean ',' in place of '.' .

please help me out.