<?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: Runtime Error while summing a column in ALV output in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-summing-a-column-in-alv-output/m-p/5905929#M1328966</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF we mention wrong field name in the field catalog, such error occurs in the report execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Aug 2009 12:19:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-13T12:19:59Z</dc:date>
    <item>
      <title>Runtime Error while summing a column in ALV output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-summing-a-column-in-alv-output/m-p/5905927#M1328964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have developed an ALV Report and the report is giving output without any flaws.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have defined proper field catalog and displaying the results using REUSE_ALV_GRID function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the report is generating Runtime Error while the user selects a column and click the SUM icon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fields like Qty, or amounts are also theowing runtime error while summing up their column in the ALV output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What might be the reason and how to resolve this issu?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 11:54:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-summing-a-column-in-alv-output/m-p/5905927#M1328964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-29T11:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Error while summing a column in ALV output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-summing-a-column-in-alv-output/m-p/5905928#M1328965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how you have write  down the code but follow the below coding example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR TOTAL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is a property of fieldcatalog, that is do_sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USE COED LIKE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM fieldcat USING:&lt;/P&gt;&lt;P&gt;'1' 'MATNR' 'I_MARD' 'MATERIAL NO' 'MARD' 'MATNR ' ' ',&lt;/P&gt;&lt;P&gt;'2' 'NETWR' 'I_MARD' 'PLANT' 'MARD' 'WERKS' ' ',&lt;/P&gt;&lt;P&gt;..............................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM fieldcat USING value(p_0029)&lt;/P&gt;&lt;P&gt;value(p_0030)&lt;/P&gt;&lt;P&gt;value(p_0031)&lt;/P&gt;&lt;P&gt;value(p_0032)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fieldcat-col_pos = p_0029.&lt;/P&gt;&lt;P&gt;wa_fieldcat-fieldname = p_0030.&lt;/P&gt;&lt;P&gt;wa_fieldcat-tabname = p_0031.&lt;/P&gt;&lt;P&gt;wa_fieldcat-reptext = p_0032.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fieldcat-do_sum = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND wa_fieldcat TO i_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. " FIELDCAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in final output you will get the total of currency field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR SUB TOTAL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;decleare: i_sort type standard table of slis_sortinfo_alv,&lt;/P&gt;&lt;P&gt;          wa_sort type slis_t_sortinfo_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_sort-spos = '1'.&lt;/P&gt;&lt;P&gt;wa_sort-fieldname = 'field1'.&lt;/P&gt;&lt;P&gt;wa_sort-subtot = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append wa_tab to i_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_callback_program = sy-repid&lt;/P&gt;&lt;P&gt;it_fieldcat = it_fieldcat&lt;/P&gt;&lt;P&gt;it_sort = i_sort&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this can solve your pbs.&lt;/P&gt;&lt;P&gt;If you need more inputs let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tutun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 12:40:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-summing-a-column-in-alv-output/m-p/5905928#M1328965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-29T12:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Error while summing a column in ALV output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-summing-a-column-in-alv-output/m-p/5905929#M1328966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF we mention wrong field name in the field catalog, such error occurs in the report execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2009 12:19:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-summing-a-column-in-alv-output/m-p/5905929#M1328966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-13T12:19:59Z</dc:date>
    </item>
  </channel>
</rss>

