<?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: SAP Script : Calculations with text elements in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-calculations-with-text-elements/m-p/1300389#M158237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gabriel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your reply and code included, This is very helpful. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess, my problem is solved and I will allot full points to you, while closing this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 May 2006 20:02:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-03T20:02:48Z</dc:date>
    <item>
      <title>SAP Script : Calculations with text elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-calculations-with-text-elements/m-p/1300385#M158233</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;How can I do calucations in SAP Script.&lt;/P&gt;&lt;P&gt;Actually I have 2 text elements Total and tax. And I would like to display Sub Total which is Total - Tax. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder how can I do that directely in SAP Script without Editing printprogram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 00:09:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-calculations-with-text-elements/m-p/1300385#M158233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T00:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script : Calculations with text elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-calculations-with-text-elements/m-p/1300386#M158234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot do any calculation in script. &lt;/P&gt;&lt;P&gt;Why you want to do in the form instead of print program.&lt;/P&gt;&lt;P&gt;If the print program is standard and if you decided not to change that program you can call a subroutine from the&lt;/P&gt;&lt;P&gt;form, In that form u can do the necessary calculations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vamshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 00:17:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-calculations-with-text-elements/m-p/1300386#M158234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T00:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script : Calculations with text elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-calculations-with-text-elements/m-p/1300387#M158235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vamshi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for quick info. All points to you. &lt;/P&gt;&lt;P&gt;I will include a Subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 16:06:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-calculations-with-text-elements/m-p/1300387#M158235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T16:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script : Calculations with text elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-calculations-with-text-elements/m-p/1300388#M158236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi...&lt;/P&gt;&lt;P&gt;On your SAP script write:&lt;/P&gt;&lt;P&gt;/: PERFORM subrutine IN PROGRAM Zprogram &lt;/P&gt;&lt;P&gt;/: USING &amp;amp;PAR1&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;PAR2&amp;amp;&lt;/P&gt;&lt;P&gt;/: ENDPERFORM&lt;/P&gt;&lt;P&gt;PS: You can use as many USING AND CHANGING as you need.&lt;/P&gt;&lt;P&gt;And the zprogram goes;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM subrutine TABLES  t_in STRUCTURE itcsy&lt;/P&gt;&lt;P&gt;                       t_out STRUCTURE itcsy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: par1 type n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read the value on PAR1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;READ TABLE t_in WITH KEY 'PAR1'.&lt;/P&gt;&lt;P&gt;CHECK sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAR1 = t_IN-value.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DO WHATEVER YOU NEED TO DO&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ADD 1 TO PAR1.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SEND THE VALUES BACK&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; READ TABLE  t_OUT WITH KEY 'PAR2'.&lt;/P&gt;&lt;P&gt;  t_sal-value = PAR1  .&lt;/P&gt;&lt;P&gt;  MODIFY t_OUT INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 16:40:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-calculations-with-text-elements/m-p/1300388#M158236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T16:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script : Calculations with text elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-calculations-with-text-elements/m-p/1300389#M158237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gabriel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your reply and code included, This is very helpful. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess, my problem is solved and I will allot full points to you, while closing this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 20:02:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-calculations-with-text-elements/m-p/1300389#M158237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T20:02:48Z</dc:date>
    </item>
  </channel>
</rss>

