<?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/1262126#M147977</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sinthu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if u have mentioned next page correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While looping through the internal table.&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
              Loop at itab.
                 ....WRITE_FORM
              AT LAST.
                 SUM. 
                 CALL FUNCTION 'WRITE_FORM'
                EXPORTING
                    element  = 'SUM' " A new text element
                    window   = 'MAIN'.
              ENDAT.
              ENDLOOP.
      &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Mar 2006 05:58:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-28T05:58:45Z</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/1262123#M147974</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;How will i display total in sapscript. if i get 1 or more pages,the total is getting displayed in the first page itself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2006 05:17:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-total-in-sapscript/m-p/1262123#M147974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-28T05:17:00Z</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/1262124#M147975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai Sinthu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. write the total &lt;/P&gt;&lt;P&gt;in a text element (separate from item element)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Then in your driver program,&lt;/P&gt;&lt;P&gt;after printing all the items (using text elements)&lt;/P&gt;&lt;P&gt;one by one,&lt;/P&gt;&lt;P&gt;after the loop is over,&lt;/P&gt;&lt;P&gt;write code to print the text element for TOTALS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it doesnt work,use write_form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link out...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1269668"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srikanth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2006 05:32:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-total-in-sapscript/m-p/1262124#M147975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-28T05:32:53Z</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/1262125#M147976</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;  You want to display the total in the first page or the next page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In which scenario you want to display the total.If it the value of some items than you can calculate them and can display them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mrutyunjaya Tripathy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2006 05:55:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-total-in-sapscript/m-p/1262125#M147976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-28T05:55:10Z</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/1262126#M147977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sinthu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if u have mentioned next page correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While looping through the internal table.&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
              Loop at itab.
                 ....WRITE_FORM
              AT LAST.
                 SUM. 
                 CALL FUNCTION 'WRITE_FORM'
                EXPORTING
                    element  = 'SUM' " A new text element
                    window   = 'MAIN'.
              ENDAT.
              ENDLOOP.
      &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2006 05:58:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-total-in-sapscript/m-p/1262126#M147977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-28T05:58:45Z</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/1262127#M147978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sinthu,&lt;/P&gt;&lt;P&gt; at the end of the main Window ..&lt;/P&gt;&lt;P&gt; create &lt;/P&gt;&lt;P&gt;  /E TOTAL&lt;/P&gt;&lt;P&gt; /: &amp;amp;total&amp;amp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; calculate this total in the driver program like this..&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab.
 ....
 at last.
 sum.
 total = itab-&amp;lt;f&amp;gt;.
 CALL FUNCTION 'WRITE_FORM'.
 EXPORTING 
  window = 'MAIN'
  elements = 'TOTAL'
 .
 endat.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;this total is displyed only once that too at the end..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2006 06:03:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/display-total-in-sapscript/m-p/1262127#M147978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-28T06:03:15Z</dc:date>
    </item>
  </channel>
</rss>

