<?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: adding numbers in report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-numbers-in-report/m-p/3560485#M856749</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;Try adding the field "&lt;STRONG&gt;GMNGA&lt;/STRONG&gt;" at the end of your internal table data and define the field catalog for the fields of the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it should work accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do the above step and let me know whether it has worked for you or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vishnu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Mar 2008 05:55:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-18T05:55:12Z</dc:date>
    <item>
      <title>adding numbers in report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-numbers-in-report/m-p/3560484#M856748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guru,&lt;/P&gt;&lt;P&gt;i developed a report.&lt;/P&gt;&lt;P&gt;IF S_BGPRO = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT AUFNR GMNGA FROM&lt;/P&gt;&lt;P&gt;AFRU INTO CORRESPONDING FIELDS OF TABLE IT_AFRU12 WHERE WERKS = 'PD01'&lt;/P&gt;&lt;P&gt;AND BUDAT IN S_BUDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT IT_AFRU12[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT AUFNR KTEXT PLNBEZ INTO CORRESPONDING FIELDS OF&lt;/P&gt;&lt;P&gt;TABLE IT_CAUFV1 FROM CAUFV&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN IT_AFRU12&lt;/P&gt;&lt;P&gt;WHERE AUFNR = IT_AFRU12-AUFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC 0.&lt;/P&gt;&lt;P&gt;MESSAGE E000(ZPP) WITH 'VALUE NOT EXISTING '.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_AFRU12 INTO WA_AFRU12.&lt;/P&gt;&lt;P&gt;LOOP AT IT_CAUFV1 INTO WA_CAUFV1 WHERE AUFNR = WA_AFRU12-AUFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WA_AFRU12-KTEXT = WA_CAUFV1-KTEXT.&lt;/P&gt;&lt;P&gt;WA_AFRU12-PLNBEZ = WA_CAUFV1-PLNBEZ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY IT_AFRU12 FROM WA_AFRU12.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN THE ABOVE COADING :&lt;/P&gt;&lt;P&gt;GMNGA value is in numbers . i want to add all the no.s and &lt;/P&gt;&lt;P&gt;displayed to last in my alv report.how to do this..&lt;/P&gt;&lt;P&gt;please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 05:32:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-numbers-in-report/m-p/3560484#M856748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T05:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: adding numbers in report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-numbers-in-report/m-p/3560485#M856749</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;Try adding the field "&lt;STRONG&gt;GMNGA&lt;/STRONG&gt;" at the end of your internal table data and define the field catalog for the fields of the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it should work accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do the above step and let me know whether it has worked for you or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vishnu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 05:55:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-numbers-in-report/m-p/3560485#M856749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T05:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: adding numbers in report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-numbers-in-report/m-p/3560486#M856750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a variable sum and initialize it to 0.&lt;/P&gt;&lt;P&gt;then add the contents of  gmnga to it and then display the sum at the end in ur ALV report&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT AUFNR GMNGA FROM&lt;/P&gt;&lt;P&gt;AFRU INTO CORRESPONDING FIELDS OF TABLE IT_AFRU12 WHERE WERKS = 'PD01'&lt;/P&gt;&lt;P&gt;AND BUDAT IN S_BUDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT IT_AFRU12[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT AUFNR KTEXT PLNBEZ INTO CORRESPONDING FIELDS OF&lt;/P&gt;&lt;P&gt;TABLE IT_CAUFV1 FROM CAUFV&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN IT_AFRU12&lt;/P&gt;&lt;P&gt;WHERE AUFNR = IT_AFRU12-AUFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC 0.&lt;/P&gt;&lt;P&gt;MESSAGE E000(ZPP) WITH 'VALUE NOT EXISTING '.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_AFRU12 INTO WA_AFRU12.&lt;/P&gt;&lt;P&gt;sum  = sum +  WA_AFRU12-gmnga&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_CAUFV1 INTO WA_CAUFV1 WHERE AUFNR = WA_AFRU12-AUFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WA_AFRU12-KTEXT = WA_CAUFV1-KTEXT.&lt;/P&gt;&lt;P&gt;WA_AFRU12-PLNBEZ = WA_CAUFV1-PLNBEZ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY IT_AFRU12 FROM WA_AFRU12.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 07:14:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-numbers-in-report/m-p/3560486#M856750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T07:14:09Z</dc:date>
    </item>
  </channel>
</rss>

