<?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: sapscripts in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1434112#M207151</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;   The Internal Table values will be given from the driver program only. So what you can do is calculate the total value in the program like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_tab.&lt;/P&gt;&lt;P&gt;sum.&lt;/P&gt;&lt;P&gt;  ws_value = i_tab-total.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now your entire value of all the line items will be in ws_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can display this variable in your script. This variable will have the total value of all the line items in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reply back if you have any doubts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tushar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Jun 2006 09:53:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-23T09:53:31Z</dc:date>
    <item>
      <title>sapscripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1434110#M207149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam working with scripts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to give totals for my line items.i have to write a code in my form painter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See if there is one item then one total price value is displaying,if there is 2 or 3 means then also the total price values are coming,but the problem i need the code for summing of all the line items at the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is one value then the total has to come.&lt;/P&gt;&lt;P&gt;if the values are two means then also the total has to come for the two values. When ever the item nos. are increasing the total price values are also increasing. I need totals for this all the line items when ever it is increasing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls send me the Pseudo code.&lt;/P&gt;&lt;P&gt;Urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank You.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2006 06:46:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1434110#M207149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-23T06:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: sapscripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1434111#M207150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi you can't write code in form painter you have to write in a print program. &lt;/P&gt;&lt;P&gt;Or you can call a form from the form editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For SUMMING, use SUM statement.&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;AT LAST.&lt;/P&gt;&lt;P&gt; SUM.&lt;/P&gt;&lt;P&gt;     call your text element to write values.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&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;Wasim Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2006 07:07:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1434111#M207150</guid>
      <dc:creator>dani_mn</dc:creator>
      <dc:date>2006-06-23T07:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: sapscripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1434112#M207151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;   The Internal Table values will be given from the driver program only. So what you can do is calculate the total value in the program like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_tab.&lt;/P&gt;&lt;P&gt;sum.&lt;/P&gt;&lt;P&gt;  ws_value = i_tab-total.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now your entire value of all the line items will be in ws_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can display this variable in your script. This variable will have the total value of all the line items in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reply back if you have any doubts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tushar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2006 09:53:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1434112#M207151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-23T09:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: sapscripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1434113#M207152</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; loop at itab.&lt;/P&gt;&lt;P&gt; call the finction module (to display line items)&lt;/P&gt;&lt;P&gt; with Element ex: ELE1&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; at last.&lt;/P&gt;&lt;P&gt; sum.&lt;/P&gt;&lt;P&gt; call the finction module (to display line items total)&lt;/P&gt;&lt;P&gt; with Element ex: ELE2&lt;/P&gt;&lt;P&gt; endat. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2006 10:10:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1434113#M207152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-23T10:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: sapscripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1434114#M207153</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 simply needs to add the statement sum in at-last. Here is the pseudo code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt; //to display line items&lt;/P&gt;&lt;P&gt; at last.&lt;/P&gt;&lt;P&gt;  sum.&lt;/P&gt;&lt;P&gt;  //Display line items total&lt;/P&gt;&lt;P&gt;endat. &lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this info is useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Richa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2006 10:14:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1434114#M207153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-23T10:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: sapscripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1434115#M207154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  I think that you put the sum value in loop.Please check your code once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Bujji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2006 10:18:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1434115#M207154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-23T10:18:36Z</dc:date>
    </item>
  </channel>
</rss>

