Skip to Content
author's profile photo Former Member
Former Member

getting sum in grid..

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2009 at 05:55 AM

    Hi,

    open any session and then system - User profile - own data.

    it will open a new session where you can maintain the defaults, date formats, currency formats,

    now go to defaults tab,

    decimal notification field will be there. you can select the exact format there. and save it

    Now run the program and see the o/p

    Regards,

    Venkatesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2009 at 05:53 AM

    Hi,

    Check the Amount formart selected in the Tcode SU01 userprofile.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 27, 2009 at 05:59 AM

    Hi,

    Check these settings.

    SPRO->SAP Ref IMg->SAP Netweaver->General Settings->Define Contires In mySAP Systems

    There find out the country from which the records are coming.

    Check the decimal point format.

    Regards,

    Surendar Reddy.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2009 at 06:12 AM

    Thanks and I got good replies.

    Problem solved.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.