<?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 : using Perform to do Arthematic Operation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354097#M177035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from your post you are getting the difference showing it as subtotal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as you are getting the diff , and movig the content to sub_total, after calling the perform, you can use   &amp;amp;S_SUBTOTAL&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 May 2006 19:47:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-10T19:47:36Z</dc:date>
    <item>
      <title>SAP Script : using Perform to do Arthematic Operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354078#M177016</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;I am having a problem in SAP Script. I have 2 fields total and Tax, I have to perform a arthematic operation and get sub-total, Total - Tax. I am using below code but I am getting error as CONVT_NO_NUMBER. UNABLE TO INTERPRET '  01500.00'as a number.&lt;/P&gt;&lt;P&gt;Please help me in this regard. please seee the code ..as I am a new-bie, I might making some silly mistake. Please look at this problem and suggest me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been suggested by my friend to use ..Move but I am not sure ..how to do that. Please kindly spare some time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: PERFORM GET_SUBTOTAL IN PROGRAM ZGET_SUBTOTAL&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;BSEG-WRBTR&amp;amp;     &lt;/P&gt;&lt;P&gt;/: USING &amp;amp;BSEG-WMWST&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;S_SUBTOTAL&amp;amp;&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;&lt;/P&gt;&lt;P&gt;Sub-routine Program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROGRAM  ZGET_SUBTOTAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GET_SUBTOTAL TABLES INT_COND STRUCTURE ITCSY&lt;/P&gt;&lt;P&gt;                         OUT_COND STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : W_WRBTR TYPE BSEG-WRBTR, " Total&lt;/P&gt;&lt;P&gt;       W_WMWST TYPE BSEG-WMWST. " Tax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE INT_COND INDEX 1.&lt;/P&gt;&lt;P&gt;W_WRBTR = INT_COND-VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE INT_COND INDEX 2.&lt;/P&gt;&lt;P&gt;W_WMWST = INT_COND-VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUT_COND-NAME = 'S_SUBTOTAL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUT_COND-VALUE = W_WRBTR  - W_WMWST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY OUT_COND INDEX 1.&lt;/P&gt;&lt;P&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;Thanking you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With kind Regards&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 16:42:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354078#M177016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T16:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script : using Perform to do Arthematic Operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354079#M177017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try this instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA : W_WRBTR TYPE BSEG-WRBTR, " Total
       W_WMWST TYPE BSEG-WMWST. " Tax

READ TABLE INT_COND INDEX 1.
&amp;lt;b&amp;gt;
clear w_wrbtr.
W_WRBTR =  W_WRBTR + INT_COND-VALUE.&amp;lt;/b&amp;gt;

READ TABLE INT_COND INDEX 2.
&amp;lt;b&amp;gt;
clear w_wmwst.
W_WMWST =  W_WMWST + INT_COND-VALUE.&amp;lt;/b&amp;gt;


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 16:47:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354079#M177017</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-05-10T16:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script : using Perform to do Arthematic Operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354080#M177018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your quick response. &lt;/P&gt;&lt;P&gt;I tried that but getting same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess this is conversion error. &lt;/P&gt;&lt;P&gt;Anyway, Please kindly complete the code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;right Now I am using. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROGRAM  ZGET_SUBTOTAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GET_SUBTOTAL TABLES INT_COND STRUCTURE ITCSY&lt;/P&gt;&lt;P&gt;                         OUT_COND STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : W_WRBTR TYPE BSEG-WRBTR,&lt;/P&gt;&lt;P&gt;       W_WMWST TYPE BSEG-WMWST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE INT_COND INDEX 1.&lt;/P&gt;&lt;P&gt;clear w_wrbtr.&lt;/P&gt;&lt;P&gt;W_WRBTR =  W_WRBTR + INT_COND-VALUE. 'I am having small confusion here, both fields are same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE INT_COND INDEX 2.&lt;/P&gt;&lt;P&gt;clear w_wmwst.&lt;/P&gt;&lt;P&gt;W_WMWST =  W_WMWST + INT_COND-VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUT_COND-NAME = 'S_SUBTOTAL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUT_COND-VALUE = W_WRBTR  - W_WMWST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY OUT_COND INDEX 1.&lt;/P&gt;&lt;P&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;Thanking you.&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, 10 May 2006 17:03:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354080#M177018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T17:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script : using Perform to do Arthematic Operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354081#M177019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROGRAM ZGET_SUBTOTAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GET_SUBTOTAL TABLES INT_COND STRUCTURE ITCSY&lt;/P&gt;&lt;P&gt;OUT_COND STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : W_WRBTR TYPE BSEG-WRBTR,&lt;/P&gt;&lt;P&gt;W_WMWST TYPE BSEG-WMWST,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;new_var TYPE BSEG-WMWST.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE INT_COND INDEX 1.&lt;/P&gt;&lt;P&gt;clear w_wrbtr.&lt;/P&gt;&lt;P&gt;W_WRBTR = W_WRBTR + INT_COND-VALUE. 'I am having small confusion here, both fields are same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE INT_COND INDEX 2.&lt;/P&gt;&lt;P&gt;clear w_wmwst.&lt;/P&gt;&lt;P&gt;W_WMWST = W_WMWST + INT_COND-VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUT_COND-NAME = 'S_SUBTOTAL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;new_var = W_WRBTR - W_WMWST.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;write new_var to OUT_COND-VALUE.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY OUT_COND INDEX 1.&lt;/P&gt;&lt;P&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;Hope this&amp;#146;ll give you idea!!&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;P.S award the points.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Good luck &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Saquib Khan&lt;/P&gt;&lt;P&gt;"Some are wise and some are otherwise"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 17:13:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354081#M177019</guid>
      <dc:creator>former_member181966</dc:creator>
      <dc:date>2006-05-10T17:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script : using Perform to do Arthematic Operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354082#M177020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check the value of INT_COND-VALUE right before the execution of the statement.  You will need a break-point here.    If the value of this field contains any non-numerical value, you will get this dump.  I'm thinking that a comma may be causing the problem.  If so, we can take care of that.  First,  check the value of the field at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 17:13:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354082#M177020</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-05-10T17:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script : using Perform to do Arthematic Operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354083#M177021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Delete the &amp;lt;b&amp;gt;BOLD&amp;lt;/b&amp;gt; part and enter &amp;lt;u&amp;gt;&amp;lt;i&amp;gt;Underline and Italic&amp;lt;/i&amp;gt;&amp;lt;/u&amp;gt; part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: PERFORM GET_SUBTOTAL IN PROGRAM ZGET_SUBTOTAL&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;BSEG-WRBTR&amp;amp; &lt;/P&gt;&lt;P&gt;/: USING &amp;amp;BSEG-WMWST&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;S_SUBTOTAL&amp;amp;&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;&lt;/P&gt;&lt;P&gt;Sub-routine Program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROGRAM ZGET_SUBTOTAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GET_SUBTOTAL TABLES INT_COND STRUCTURE ITCSY&lt;/P&gt;&lt;P&gt;OUT_COND STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : W_WRBTR TYPE BSEG-WRBTR, " Total&lt;/P&gt;&lt;P&gt;W_WMWST TYPE BSEG-WMWST. " Tax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE INT_COND INDEX 1.&lt;/P&gt;&lt;P&gt;W_WRBTR = INT_COND-VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE INT_COND INDEX 2.&lt;/P&gt;&lt;P&gt;W_WMWST = INT_COND-VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;OUT_COND-NAME = 'S_SUBTOTAL'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;READ TABEL OUT_COND INDEX 1.&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;OUT_COND-VALUE = W_WRBTR - W_WMWST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY OUT_COND INDEX 1.&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, 10 May 2006 17:13:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354083#M177021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T17:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script : using Perform to do Arthematic Operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354084#M177022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the problem is that the comma is coming in the variable,  then we can strip it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

READ TABLE INT_COND INDEX 1.

&amp;lt;b&amp;gt;translate INT_COND-VALUE using ', '.
condense INT_COND-VALUE no-gaps.&amp;lt;/b&amp;gt;

W_WRBTR = INT_COND-VALUE.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 17:15:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354084#M177022</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-05-10T17:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script : using Perform to do Arthematic Operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354085#M177023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;b&amp;gt;READ TABLE INT_COND INDEX 1.
clear w_wrbtr.
W_WRBTR = W_WRBTR + INT_COND-VALUE. 

READ TABLE INT_COND INDEX 2.
clear w_wmwst.
W_WMWST = W_WMWST + INT_COND-VALUE.&amp;lt;/b&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here you need to change your logic little,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see you will get the data as chars. so you need to move the data to currecncy field.&lt;/P&gt;&lt;P&gt;then do calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; some thing like this..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;READ TABLE INT_COND INDEX 1.
clear w_wrbtr.
write int_cond-value to x_wrbtr . "x_wrbtr of type wrbtr
W_WRBTR = W_WRBTR + x_wrbtr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;now you will not get that error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think &amp;lt;b&amp;gt;clear&amp;lt;/b&amp;gt;  not required. i think you are doing it item wise and printing, in this case one all items over you can print.&lt;/P&gt;&lt;P&gt;can you confirm it ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 17:17:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354085#M177023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T17:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script : using Perform to do Arthematic Operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354086#M177024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich / Khan / Aman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your inputs ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to debug, the value of INT_COND-VALUE is  '       1,500.00'. morever I am getting many blank spaces before '1,500.00'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with old code, error was at arthematic operation but now just after this step, it causes dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advice me further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I guess the problem would be same for Khan's suggestion. however I will try and let you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;looking farward for futher suggestions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you. &lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 17:26:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354086#M177024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T17:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script : using Perform to do Arthematic Operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354087#M177025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The comma is definitly your problem, you can remove it by using the translate statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA : W_WRBTR TYPE BSEG-WRBTR, " Total
W_WMWST TYPE BSEG-WMWST. " Tax



READ TABLE INT_COND INDEX 1.
&amp;lt;b&amp;gt;translate INT_COND-VALUE using ', '.
condense INT_COND-VALUE no-gaps.&amp;lt;/b&amp;gt;
W_WRBTR = INT_COND-VALUE.

READ TABLE INT_COND INDEX 2.
&amp;lt;b&amp;gt;translate INT_COND-VALUE using ', '.
condense INT_COND-VALUE no-gaps.&amp;lt;/b&amp;gt;
W_WMWST = INT_COND-VALUE.



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 17:28:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354087#M177025</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-05-10T17:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script : using Perform to do Arthematic Operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354088#M177026</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;&lt;/P&gt;&lt;P&gt;Thank you very much once again. I will try all your suggestions and get back to you. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, Vijay.. I am getting snytax error with your code.&lt;/P&gt;&lt;P&gt;it says &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;X_WRbtr must be a Charecter-type field (data type C,N,D,T).&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advice me futher.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you .. will allot points to all of you as a token of gratitude. &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, 10 May 2006 17:51:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354088#M177026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T17:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script : using Perform to do Arthematic Operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354089#M177027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, but  you need to make it as currency field with out commas and you will be able to do manipulations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think Rich's suggestion will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 17:58:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354089#M177027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T17:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script : using Perform to do Arthematic Operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354090#M177028</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;&lt;/P&gt;&lt;P&gt;Thanks for your inputs, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich I followed your suggestion but I am unable to get OUT_COND-VALUE. it just shoes blank spaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess that I am doing some silly mistake. &lt;/P&gt;&lt;P&gt;Please have a look at this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROGRAM  ZGET_SUBTOTAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GET_SUBTOTAL TABLES INT_COND STRUCTURE ITCSY&lt;/P&gt;&lt;P&gt;                         OUT_COND STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : W_WRBTR TYPE BSEG-WRBTR,&lt;/P&gt;&lt;P&gt;       W_WMWST TYPE BSEG-WMWST.&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE INT_COND INDEX 1.&lt;/P&gt;&lt;P&gt;translate INT_COND-VALUE using ', '.&lt;/P&gt;&lt;P&gt;condense INT_COND-VALUE no-gaps.&lt;/P&gt;&lt;P&gt;W_WRBTR = INT_COND-VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE INT_COND INDEX 2.&lt;/P&gt;&lt;P&gt;translate INT_COND-VALUE using ', '.&lt;/P&gt;&lt;P&gt;condense INT_COND-VALUE no-gaps.&lt;/P&gt;&lt;P&gt;W_WMWST = INT_COND-VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUT_COND-NAME = 'S_SUBTOTAL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUT_COND-VALUE = W_WRBTR - W_WMWST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY OUT_COND INDEX 1.&lt;/P&gt;&lt;P&gt;&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, 10 May 2006 18:51:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354090#M177028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T18:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script : using Perform to do Arthematic Operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354091#M177029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are you getting any value of the below diff.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*OUT_COND-NAME = 'S_SUBTOTAL'. "this is not required&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUT_COND-VALUE = W_WRBTR - W_WMWST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY OUT_COND INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 18:59:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354091#M177029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T18:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script : using Perform to do Arthematic Operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354092#M177030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, I am unable to get that difference. &lt;/P&gt;&lt;P&gt;I could get values for INT_COND-VALUE for 2 times &lt;/P&gt;&lt;P&gt;as 1500.00 and 0.00 respectively but could not get the difference i,e OUT_COND-VALUE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moreover, if *OUT_COND-NAME = 'S_SUBTOTAL'. &lt;/P&gt;&lt;P&gt;is not required, how can I print on form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry for my ingnorance. Thanking you.&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, 10 May 2006 19:05:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354092#M177030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T19:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script : using Perform to do Arthematic Operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354093#M177031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;some how try to move to some number fields then find the difference , and then use move.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MOVE v_diff TO out_tab-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*OUT_COND-NAME = 'S_SUBTOTAL'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and you are having that already(in index1) then why do you need?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to take some number variables and then convert them to numbers and find diff.&lt;/P&gt;&lt;P&gt;and use move &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 19:12:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354093#M177031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T19:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script : using Perform to do Arthematic Operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354094#M177032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls make the following changes in form routine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROGRAM ZGET_SUBTOTAL.&lt;/P&gt;&lt;P&gt;FORM GET_SUBTOTAL TABLES INT_COND STRUCTURE ITCSY&lt;/P&gt;&lt;P&gt;OUT_COND STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;DATA: STR_AMT(255) TYPE C.&lt;/P&gt;&lt;P&gt;      W_WRBTR TYPE BSEG-WRBTR, " Total&lt;/P&gt;&lt;P&gt;      W_WMWST TYPE BSEG-WMWST. " Tax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE INT_COND INDEX 1.&lt;/P&gt;&lt;P&gt;STR_AMT = INT_COND-VALUE.&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;  WHILE SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    REPLACE ',' WITH ' ' INTO STR_AMT.&lt;/P&gt;&lt;P&gt;  ENDWHILE.&lt;/P&gt;&lt;P&gt;CONDENSE STR_AMT NO-GAPS.&lt;/P&gt;&lt;P&gt;MOVE STR_AMT TO W_WRBTR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE INT_COND INDEX 2.&lt;/P&gt;&lt;P&gt;STR_AMT = INT_COND-VALUE.&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;  WHILE SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    REPLACE ',' WITH ' ' INTO STR_AMT.&lt;/P&gt;&lt;P&gt;  ENDWHILE.&lt;/P&gt;&lt;P&gt;CONDENSE STR_AMT NO-GAPS.&lt;/P&gt;&lt;P&gt;MOVE STR_AMT TO W_WMWST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE OUT_COND INDEX 1.&lt;/P&gt;&lt;P&gt; IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;  OUT_COND-VALUE = W_WRBTR - W_WMWST.&lt;/P&gt;&lt;P&gt;  MODIFY OUT_COND INDEX 1.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this give you some idea!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vikram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls reward points for helpful replies!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 19:23:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354094#M177032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T19:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script : using Perform to do Arthematic Operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354095#M177033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;/: PERFORM GET_SUBTOTAL IN PROGRAM ZGET_SUBTOTAL&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;BSEG-WRBTR&amp;amp; &lt;/P&gt;&lt;P&gt;/: USING &amp;amp;BSEG-WMWST&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;S_SUBTOTAL&amp;amp;&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;As you are already passing the S_SUBTOTAL with the changing paramter and in the Form you have that value in table OUT_COND.&lt;/P&gt;&lt;P&gt;So no need to for this statment OUT_COND-NAME = 'S_SUBTOTAL'. &lt;/P&gt;&lt;P&gt;As you have only 1 value in the CHANGING . If there are multipal values in the CHANGING then you need to READ THE TABLE OUT_COND WITH INDEX.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 19:35:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354095#M177033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T19:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script : using Perform to do Arthematic Operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354096#M177034</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;&lt;/P&gt;&lt;P&gt;Thanks you very much !!!!!!&lt;/P&gt;&lt;P&gt;Finally I got it ... But dont know how to keep it in form. I used a Number field and got the difference, But I wondering ..which field should I keep in form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code. I got the result in debug mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROGRAM  ZGET_SUBTOTAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GET_SUBTOTAL TABLES INT_COND STRUCTURE ITCSY&lt;/P&gt;&lt;P&gt;                         OUT_COND STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : W_WRBTR TYPE BSEG-WRBTR,&lt;/P&gt;&lt;P&gt;       W_WMWST TYPE BSEG-WMWST,&lt;/P&gt;&lt;P&gt;       Num1 type p decimals 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE INT_COND INDEX 1.&lt;/P&gt;&lt;P&gt;translate INT_COND-VALUE using ', '.&lt;/P&gt;&lt;P&gt;condense INT_COND-VALUE no-gaps.&lt;/P&gt;&lt;P&gt;W_WRBTR = INT_COND-VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE INT_COND INDEX 2.&lt;/P&gt;&lt;P&gt;translate INT_COND-VALUE using ', '.&lt;/P&gt;&lt;P&gt;condense INT_COND-VALUE no-gaps.&lt;/P&gt;&lt;P&gt;W_WMWST = INT_COND-VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUT_COND-NAME = 'NUM1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NUM1 = W_WRBTR - W_WMWST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE Num1 TO out_cond-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*OUT_COND-VALUE = W_WRBTR - W_WMWST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY OUT_COND INDEX 1.&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;In SAP script editor my Perform statement is : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: PERFORM GET_SUBTOTAL IN PROGRAM ZGET_SUBTOTAL&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;BSEG-WRBTR&amp;amp;&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;BSEG-WMWST&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;S_SUBTOTAL&amp;amp;&lt;/P&gt;&lt;P&gt;/: ENDPERFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, please suggest me how to populate this on form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much&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, 10 May 2006 19:43:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354096#M177034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T19:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Script : using Perform to do Arthematic Operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354097#M177035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from your post you are getting the difference showing it as subtotal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as you are getting the diff , and movig the content to sub_total, after calling the perform, you can use   &amp;amp;S_SUBTOTAL&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2006 19:47:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-using-perform-to-do-arthematic-operation/m-p/1354097#M177035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-10T19:47:36Z</dc:date>
    </item>
  </channel>
</rss>

