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

Percentage in alv grid

Hi Friends,

I have to display an ALV Grid report with percentage feilds. Everything is fine but the problem arises when the standard ALV sum functionality is used. It simply adds up all the percentage columns. Making do_sum = 'C' wont help either as it would simple give an average of all the percentage. My requirement is to show them through calculation.

Eg: A B C

10 5 50% (B/A * 100)

20 10 50%

Subtotal 30 15 100 Here instead of 100 i need 50 like 15/30*100.

Please help me how to solve this issue.

Thanks in advance

M.Rajendran

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Jul 01, 2008 at 04:20 AM

    when building field catalog giv data type as 'c'.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 01, 2008 at 04:24 AM

    Hi,

    Here you can not give likethat, before the column (in build_field_catlog), write code as per you caliculations, then pass this value into fldcat_fieldname column.

    Definatly it will work.

    Regs

    Rams

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 02, 2008 at 02:53 PM

    Hi,

    I solved this issue........

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 24, 2008 at 02:34 PM

    Hi Rajendran,

    I am facing the same problem in ALV GRID , Could you please provide the code....

    Thanks for you kind help...

    Thanks

    Raju

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 25, 2016 at 05:52 AM

    This message was moderated.

    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.