<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: alv % total in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-total/m-p/820913#M42693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abap Gurus,&lt;/P&gt;&lt;P&gt;in my catalog i hv marked field with do_sum = 'x'.&lt;/P&gt;&lt;P&gt;But then also i dont get total in alv display. &lt;/P&gt;&lt;P&gt;Wht shld be the data types of field, if v want to show its total in ALV. My fields has type Curr 15...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggestion are welcome....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Feb 2005 06:29:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-02-25T06:29:39Z</dc:date>
    <item>
      <title>alv % total</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-total/m-p/820905#M42685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;i have a field , field , field in alv grid .&lt;/P&gt;&lt;P&gt;           field3 =  ( field1 / field2 ) * 100 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to display the field3 sum ???? any thoughts ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2004 20:27:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-total/m-p/820905#M42685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-14T20:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: alv % total</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-total/m-p/820906#M42686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What would you like to do? Should the end-user be able to perform the calculation or do want to program it in your ABAP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dick Krijger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2004 20:32:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-total/m-p/820906#M42686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-14T20:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: alv % total</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-total/m-p/820907#M42687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i can calculate the avg in abap , i do not know how to modify the results line ??&lt;/P&gt;&lt;P&gt;anyways when i set the display-totals , the sum should be displayed ..???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2004 20:43:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-total/m-p/820907#M42687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-14T20:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: alv % total</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-total/m-p/820908#M42688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiv,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have certain questions, if you can answer, them probably the picture might get clearer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) When you click on the sum(sigma) button, for column field3, are you getting a total, or are you getting a message in the status bar saying "Totals available only for integer values".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) What is type of field3 ? Have you specified any type for field3 ? Have you use the &amp;lt;b&amp;gt;INTTYPE&amp;lt;/b&amp;gt; or &amp;lt;b&amp;gt;DATATYPE&amp;lt;/b&amp;gt; fields for that entry of fieldcatalog(field3) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For grid related issues, there is an excellent tutorial available from Serdar. You may refer that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/an" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/an&lt;/A&gt; easy reference for alv grid control.pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2004 04:00:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-total/m-p/820908#M42688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-15T04:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: alv % total</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-total/m-p/820909#M42689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i made that field as char, so that i can display totals ,&lt;/P&gt;&lt;P&gt;if i hit sum , it will literally diplays SUM(in which case it's wrong..coz my sum is sum/no of rows(avg)..as i said i can calculate the avg in abap ,but how to display it in grid ??&lt;/P&gt;&lt;P&gt;when you hit sum , end of the report ...i want to modify the final Line(display line--yellow line). i tried EVENT BEFORE_LINE_OUTPUT ,for some reason it's not working...any help will be greatly appreciated.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;shiv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2004 14:34:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-total/m-p/820909#M42689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-15T14:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: alv % total</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-total/m-p/820910#M42690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry i said CHAR, but it's a CURR field&lt;/P&gt;&lt;P&gt;Shiv.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2004 14:37:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-total/m-p/820910#M42690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-15T14:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: alv % total</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-total/m-p/820911#M42691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiv,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you have to do is in the field catalog set DO_SUM to 'X' for the field3 and for others set it as blank. This will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before you are calling the output before that you can do the calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case if you want to use BEFORE_LINE_OUTPUT. There are function modules that you have to call for refreshing the same at the output screen.&lt;/P&gt;&lt;P&gt;REUSE_ALV_GRID_LAYOUT_INFO_SET - For Grid&lt;/P&gt;&lt;P&gt;REUSE_ALV_LIST_LAYOUT_INFO_SET - For List&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I doubt if you will be able to use BEFORE_LINE_OUTPUT event with GRID display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2004 14:47:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-total/m-p/820911#M42691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-15T14:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: alv % total</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-total/m-p/820912#M42692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the same problem in one of my ALV reports. I also calculate a percentage ((field1/field2) * 100) and show this field on each row. However, my sub-total value cannot just be summed up like suggested but needs to be calculated on sub-total and grand-total level again. Thus, the do_sum nor the Sigma icon would work.&lt;/P&gt;&lt;P&gt;Further is there an option on sub-total and grand-total level that allows me to average the field values?&lt;/P&gt;&lt;P&gt;Just for your information all my fields are type p with 2 decimals&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2004 19:05:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-total/m-p/820912#M42692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-15T19:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: alv % total</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-total/m-p/820913#M42693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abap Gurus,&lt;/P&gt;&lt;P&gt;in my catalog i hv marked field with do_sum = 'x'.&lt;/P&gt;&lt;P&gt;But then also i dont get total in alv display. &lt;/P&gt;&lt;P&gt;Wht shld be the data types of field, if v want to show its total in ALV. My fields has type Curr 15...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggestion are welcome....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2005 06:29:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-total/m-p/820913#M42693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-25T06:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: alv % total</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-total/m-p/820914#M42694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, can you put your code here, i'll try to find something wrong, ok?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 11:37:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-total/m-p/820914#M42694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T11:37:00Z</dc:date>
    </item>
  </channel>
</rss>

