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

SUM icon issue in ALV Report

HI all,

I have developed an ALV Report. In the ALV display, i would like to sum see the Sum (Total) of few fields like Qty, Net value etc when i select that particular column and click the 'SUM" icon.

In my Report when i do so, the Program is displaying Runtime Error.

How to resolve this issue?

Any idea?

Regards

Pavan

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jan 15, 2008 at 01:07 PM

    You must make sure that these columns are defined correctly in the field catalog and in the internal table. For example, make sure that the quantity field is typed as such in the internal table.

    
    data: begin of itab occurs 0,
            .....
            qty type p decimals 2,
            .....
            end of itab.
    
    

    And then in your field catalog, make sure that the DATATYPE is set correctly.

    
    ...
    ls_fcat-datatype = 'QUAN'.
    ....
    

    Do this may help your situation. Also make sure that the data in these columns is all numeric.

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 22, 2008 at 06:21 AM

    Thank You

    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.