<?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: display total in sapscript in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-total-in-sapscript/m-p/3131638#M743946</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can calculate the total in the separate variable and print it out in the SAPScript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 24 Nov 2007 04:08:08 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2007-11-24T04:08:08Z</dc:date>
    <item>
      <title>display total in sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-total-in-sapscript/m-p/3131637#M743945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sir, i like to know how can print total in sapscript, is it using separate variable for print total and also know how calculation performed in sapscript .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2007 04:03:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-total-in-sapscript/m-p/3131637#M743945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-24T04:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: display total in sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-total-in-sapscript/m-p/3131638#M743946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can calculate the total in the separate variable and print it out in the SAPScript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2007 04:08:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-total-in-sapscript/m-p/3131638#M743946</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-24T04:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: display total in sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-total-in-sapscript/m-p/3131639#M743947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm" target="test_blank"&gt;http://www.esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2007 04:10:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-total-in-sapscript/m-p/3131639#M743947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-24T04:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: display total in sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-total-in-sapscript/m-p/3131640#M743948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 First of all you  have to see wheather any variable/parameter is available in the Main window for printing total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                  If Available then&lt;/P&gt;&lt;P&gt;   You have to fill that by developing subroutine (as a seperate executable progam ) which you can call in the form by PERFORM &amp;lt;FORM NAME&amp;gt; IN PROGRAM &amp;lt;PROGRAM NAME&amp;gt; ENDPERFORM. If your driver program is standard one. If your driver program is Z program then you dont have to develop subroutine, you can develop logic in driver program itself....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 If Not Available then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    You have to define one variable at the end of the loop to add the all values in the total field. This has to be calculated in the subroutine again as stated above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     If any other query please let me know for more clarification ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers....&lt;/P&gt;&lt;P&gt;Sagun Desai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2007 11:20:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-total-in-sapscript/m-p/3131640#M743948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-24T11:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: display total in sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-total-in-sapscript/m-p/3131641#M743949</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;Yes, you can define a variabe in your print program and pass it to the SAPScript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIKE:&lt;/P&gt;&lt;P&gt;Define L_SUM in the Global data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: L_SUM TYPE BSEG-DMBTR.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;  L_SUM = L_SUM + ITAB-AMOUNT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;  WINDOW = 'MAIN'&lt;/P&gt;&lt;P&gt;  ELEMENT = 'TOTAL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, in your SAPScript, create a text element in MAIN window&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/E TOTAL&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Total,, &amp;amp;L_SUM&amp;amp;.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through below link&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap-img.com/sapscripts/sapscript-how-to-calculate-totals-and-subtotals.htm" target="test_blank"&gt;http://sap-img.com/sapscripts/sapscript-how-to-calculate-totals-and-subtotals.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Nov 2007 06:20:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-total-in-sapscript/m-p/3131641#M743949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-25T06:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: display total in sapscript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/display-total-in-sapscript/m-p/3131642#M743950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Naresh, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't copy the code directly from one of the earlier post and just paste it here. It is not fare that you copy my code and without giving any credit just post it here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="639405"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Nov 2007 06:25:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-total-in-sapscript/m-p/3131642#M743950</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-25T06:25:52Z</dc:date>
    </item>
  </channel>
</rss>

