<?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 Sapscript multiply two fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-multiply-two-fields/m-p/10187410#M1823749</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;Someone could help me please, someones knows how to multiply two fields in sapscript, what's the sintax?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/425438" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Apr 2014 22:04:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-04-03T22:04:09Z</dc:date>
    <item>
      <title>Sapscript multiply two fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-multiply-two-fields/m-p/10187410#M1823749</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;Someone could help me please, someones knows how to multiply two fields in sapscript, what's the sintax?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/425438" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 22:04:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-multiply-two-fields/m-p/10187410#M1823749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-03T22:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscript multiply two fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-multiply-two-fields/m-p/10187411#M1823750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Enrique,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Perform ....Endperform statement and try to multiply it in a subroutine program and then pass it to script by changing parameters and use that in your Script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Siva.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 22:06:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-multiply-two-fields/m-p/10187411#M1823750</guid>
      <dc:creator>siva_subramanian2</dc:creator>
      <dc:date>2014-04-03T22:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscript multiply two fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-multiply-two-fields/m-p/10187412#M1823751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Enrique,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need Call Perform block for calculation purpose by making use of parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want multiply qty and price then you pass Qty and Price value and along with storage variable for the output to the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;syntax:&lt;/P&gt;&lt;P&gt;v_qty for Qty &lt;/P&gt;&lt;P&gt;v_price for price&lt;/P&gt;&lt;P&gt;v_temp for storage the output&lt;/P&gt;&lt;P&gt;ztest is the calling program where you will your logic&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM GET_PRODUCT IN PROGRAM ZTEST using &amp;amp;v_qty&amp;amp; using &amp;amp;price&amp;amp; changing &amp;amp;v_temp&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endperform&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the program&amp;nbsp; ZTEST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITCSY is the structure which contains the name field and value field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form GET_PRODUCT &lt;SPAN class="L0S52"&gt;TABLES &lt;STRONG&gt;IN_PAR &lt;SPAN class="L0S52"&gt;STRUCTURE &lt;/SPAN&gt;ITCSY&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;OUT_PAR &lt;SPAN class="L0S52"&gt;STRUCTURE &lt;/SPAN&gt;ITCSY&lt;/STRONG&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare the variable for qty&amp;nbsp; price and temp variable for storing the product inside the subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;READ &lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;IN_PAR &lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;KEY &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'V_QTY'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;if sy-subrc eq 0&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;qty = &lt;/SPAN&gt;&lt;/SPAN&gt;IN_PAR&lt;SPAN class="L0S70"&gt;-&lt;SPAN class="L0S52"&gt;VALUE&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;endif&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;READ &lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;IN_PAR &lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;KEY &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'V_PRICE'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;if sy-subrc eq 0&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;price = &lt;/SPAN&gt;&lt;/SPAN&gt;IN_PAR&lt;SPAN class="L0S70"&gt;-&lt;SPAN class="L0S52"&gt;VALUE&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;endif&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;temp = price * qty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;READ &lt;SPAN class="L0S52"&gt;TABLE OUT&lt;/SPAN&gt;_PAR &lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;KEY &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'V_temp'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;if sy-subrc eq 0&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;OUT_PAR&lt;SPAN class="L0S70"&gt;-&lt;SPAN class="L0S52"&gt;VALUE = temp.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S70"&gt;&lt;SPAN class="L0S52"&gt;modify OUT_PAR index sy-tabix.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;endif&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have any queries please let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 03:51:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-multiply-two-fields/m-p/10187412#M1823751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-04T03:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscript multiply two fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-multiply-two-fields/m-p/10187413#M1823752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 06:50:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-multiply-two-fields/m-p/10187413#M1823752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-04T06:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscript multiply two fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-multiply-two-fields/m-p/10187414#M1823753</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;suppose i found a way to mount and format a disc "in SapScript" - would it still be a sensible idea to try to do so..? &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/684/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt; Calculations are of course entirely different "animals", but still - why does the driver programm need to go to SapScript to perform a calculation (or even perform it itself), why can't the data preparation logic be independent of SapScript and the driver programm (ideally built in such a way, that it can easily be reused in a Print Workbench &lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/33/1d83d08e7911d2b47300609419ed29/frameset.htm"&gt;Form Class&lt;/A&gt;)? That way, should somebody someday wish to replace SapScripts with something else, you have one less concern...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Janis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 10:18:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-multiply-two-fields/m-p/10187414#M1823753</guid>
      <dc:creator>Private_Member_7726</dc:creator>
      <dc:date>2014-04-04T10:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscript multiply two fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-multiply-two-fields/m-p/10187415#M1823754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Madhu, Excellent help, It Works, thanks so much for sharing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 13:42:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-multiply-two-fields/m-p/10187415#M1823754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-04T13:42:23Z</dc:date>
    </item>
  </channel>
</rss>

