<?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/1296246#M156902</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;Me again.... &lt;/P&gt;&lt;P&gt;How will i convert a variable with value 50,000.00 to 50000 inside sapscript ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Awaiting your immediate response...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;sinthu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 May 2006 05:27:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-25T05:27:59Z</dc:date>
    <item>
      <title>Sapscripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1296237#M156893</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;How will I define an integer variable inside my sapscript.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;sinthu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2006 04:41:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1296237#M156893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-25T04:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1296238#M156894</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;You can use the keyword DEFINE &amp;amp;VAR&amp;amp; = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will declare a variable in sapscript.&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;Sumit Bhutani&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ps reward pts if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2006 04:46:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1296238#M156894</guid>
      <dc:creator>sbhutani1</dc:creator>
      <dc:date>2006-05-25T04:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1296239#M156895</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;You can define an integer variable using the keyword &amp;lt;b&amp;gt;DEFINE&amp;lt;/b&amp;gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;var1&amp;amp; = '0'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2006 04:47:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1296239#M156895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-25T04:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1296240#M156896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;If I need to initilize the variable to 0,&lt;/P&gt;&lt;P&gt;can i write&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;WATOT&amp;amp; = 0  ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2006 04:49:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1296240#M156896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-25T04:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1296241#M156897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAP online documentation on window types:&lt;/P&gt;&lt;P&gt;Variable window content is regenerated on every new page. The content of a&lt;/P&gt;&lt;P&gt;constant window is generated once and printed on every page.&lt;/P&gt;&lt;P&gt;This means that, for better performance, windows that contain different&lt;/P&gt;&lt;P&gt;information on different pages must be VAR; all others are CONST. The content&lt;/P&gt;&lt;P&gt;of the window is defined in the SAPscript editor.&lt;/P&gt;&lt;P&gt;EXAMPLE....&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;VAR&amp;amp; = 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2006 04:50:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1296241#M156897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-25T04:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1296242#M156898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;GUD&lt;/P&gt;&lt;P&gt;Note the length specifications of the different fields. For integer types (INT1, INT2, INT4), it must not necessarily be the length defined in the ABAP Dictionary, but can also be the output length specified in the domain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;P&gt;MRUTYUN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2006 04:59:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1296242#M156898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-25T04:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1296243#M156899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;I'll put my question more clearly.&lt;/P&gt;&lt;P&gt;I need to modify the standard program for withholding tax. (J_1IEWT_CERT). In the standard pgm, the totals are not getting displayed right now but the amount in words is getting displayed.Our user wants it in figures too.&lt;/P&gt;&lt;P&gt;So, I am doing a perform in the sapscript,without modifying the standard pgm j_1iewt_cert in se38.&lt;/P&gt;&lt;P&gt;I am passing 2 varaibales as follows in the perform statment.&lt;/P&gt;&lt;P&gt;/:DEFINE &amp;amp;WA_TOTAL1&amp;amp; = 0&lt;/P&gt;&lt;P&gt;/:PERFORM TOT1 IN PROGRAM ZEWT&lt;/P&gt;&lt;P&gt;/:USING &amp;amp;PRINTTAB-WT_QSSHH(IC)&amp;amp;  &amp;amp;WA_TOTAL1&amp;amp;&lt;/P&gt;&lt;P&gt;/:CHANGING &amp;amp;TOTAL1&amp;amp;&lt;/P&gt;&lt;P&gt;/:ENDPERFORM&lt;/P&gt;&lt;P&gt;For eg, if the value of &amp;amp;PRINTTAB-WT_QSSHH(IC)&amp;amp; = 50,000.00 and &amp;amp;wa_total1&amp;amp; = 0.&lt;/P&gt;&lt;P&gt;Now, when the program ZEWT is being executed, it throws an exception&lt;/P&gt;&lt;P&gt;Unable to interpret "50,000.00 " as a number&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Any help will be highly appreciated...&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;sinthu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2006 05:00:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1296243#M156899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-25T05:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1296244#M156900</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;The syntax of PERFORM statement is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: PERFORM &amp;lt;form&amp;gt; IN PROGRAM &amp;lt;prog&amp;gt;&lt;/P&gt;&lt;P&gt;/: USING &amp;lt;invar1&amp;gt;&lt;/P&gt;&lt;P&gt;/: USING &amp;lt;invar2&amp;gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;lt;outvar1&amp;gt;&lt;/P&gt;&lt;P&gt;/: ENDPERFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't used two parameters in the same USING statement...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2006 05:05:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1296244#M156900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-25T05:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1296245#M156901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry SP, that was a typo error. I have used 2 parameters separately by "USING".&lt;/P&gt;&lt;P&gt;But when my perform statement gets executed i get the error &lt;/P&gt;&lt;P&gt;Unable to interpret "50,000.00 " as a number.&lt;/P&gt;&lt;P&gt;My perform programs is as follows.&lt;/P&gt;&lt;P&gt;FORM TOT1 TABLES INTAB STRUCTURE ITCSY&lt;/P&gt;&lt;P&gt;                 OUTTAB STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;READ TABLE INTAB INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INPUT = INTAB-VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE INTAB INDEX 2.&lt;/P&gt;&lt;P&gt;INPUT1 = INTAB-VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WATOT1 = INPUT1 + INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'Z_CHAR_CURR_CONVERSION'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      AMOUNT  = WATOT1&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      AMOUNT1 = WATOT1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE OUTTAB INDEX 1.&lt;/P&gt;&lt;P&gt;OUTTAB-VALUE = WATOT1.&lt;/P&gt;&lt;P&gt;MODIFY OUTTAB INDEX 1.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2006 05:14:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1296245#M156901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-25T05:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1296246#M156902</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;Me again.... &lt;/P&gt;&lt;P&gt;How will i convert a variable with value 50,000.00 to 50000 inside sapscript ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Awaiting your immediate response...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;sinthu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2006 05:27:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1296246#M156902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-25T05:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1296247#M156903</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;The reason for the error is because &lt;/P&gt;&lt;P&gt;1) the summation you are doing is on an integer value or a currency value&lt;/P&gt;&lt;P&gt;2) OUTTAB-VALUE is of type C. There will be  compatibility issues...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To eliminate that, just do like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) define the INPUT1 and INPUT as type N like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: INPUT1(10) TYPE N,&lt;/P&gt;&lt;P&gt;      INPUT(10) TYPE N.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;2) define another variable (say var1) of type c and assign the summed output to this variable so that there won't be any issues in the statement&lt;/P&gt;&lt;P&gt;OUTTAB-VALUE = var1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt; I have tried out integer values in my system.. It is working properly.. &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM ADD_INCOME TABLES IN_TAB STRUCTURE ITCSY OUT_TAB STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: INPUT1(10) TYPE N,&lt;/P&gt;&lt;P&gt;      INPUT2(10) TYPE N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT IN_TAB .&lt;/P&gt;&lt;P&gt;      IF IN_TAB-NAME = 'VAR'.&lt;/P&gt;&lt;P&gt;      INPUT1 = IN_TAB-VALUE.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;      INPUT2 = IN_TAB-VALUE.&lt;/P&gt;&lt;P&gt;      INPUT1 = INPUT1 + INPUT2.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      READ TABLE OUT_TAB INDEX 1.&lt;/P&gt;&lt;P&gt;      OUT_TAB-VALUE = VAR.&lt;/P&gt;&lt;P&gt;      MODIFY OUT_TAB INDEX 1.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SAPScript, write this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: PERFORM ADD_INCOME IN PROGRAM ZSHAIL_BASIC&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;VAR&amp;amp;&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;ITAB-MY_INCOME&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;VAR&amp;amp;&lt;/P&gt;&lt;P&gt;/: ENDPERFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;amp;ITAB-MY_ID(Z)&amp;amp;,,&amp;amp;ITAB-MY_INCOME(Z)&amp;amp;,,&amp;amp;ITAB-MY_NAME(Z)&amp;amp; &amp;amp;VAR(Z)&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just try it out...&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2006 06:39:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1296247#M156903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-25T06:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1296248#M156904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SP,&lt;/P&gt;&lt;P&gt;Sorry for the delayed response. I tried as you told but how can i sum the variables of type n?&lt;/P&gt;&lt;P&gt;I have defined DATA: INPUT(10) TYPE N,&lt;/P&gt;&lt;P&gt;      INPUT1(10) TYPE N,&lt;/P&gt;&lt;P&gt;      WATOT1 TYPE N.&lt;/P&gt;&lt;P&gt;as you suggested.&lt;/P&gt;&lt;P&gt;now when i add input + input1 to watot1.&lt;/P&gt;&lt;P&gt;the value of watot1 = 0 where as it should give me 50000.&lt;/P&gt;&lt;P&gt;input = 50000 and input1 = 0.&lt;/P&gt;&lt;P&gt;any solutions ????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2006 07:24:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1296248#M156904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-25T07:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1296249#M156905</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;Just go through the code that I have sent you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM ADD_INCOME TABLES IN_TAB STRUCTURE ITCSY OUT_TAB STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: INPUT1(10) TYPE N,&lt;/P&gt;&lt;P&gt;INPUT2(10) TYPE N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IN_TAB .&lt;/P&gt;&lt;P&gt;IF IN_TAB-NAME = 'VAR'.&lt;/P&gt;&lt;P&gt;INPUT1 = IN_TAB-VALUE.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;INPUT2 = IN_TAB-VALUE.&lt;/P&gt;&lt;P&gt;INPUT1 = INPUT1 + INPUT2.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE OUT_TAB INDEX 1.&lt;/P&gt;&lt;P&gt;OUT_TAB-VALUE = INPUT1.&lt;/P&gt;&lt;P&gt;MODIFY OUT_TAB INDEX 1.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SAPScript, write this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: PERFORM ADD_INCOME IN PROGRAM ZSHAIL_BASIC&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;VAR&amp;amp;&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;ITAB-MY_INCOME&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;VAR&amp;amp;&lt;/P&gt;&lt;P&gt;/: ENDPERFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;amp;ITAB-MY_ID(Z)&amp;amp;,,&amp;amp;ITAB-MY_INCOME(Z)&amp;amp;,,&amp;amp;ITAB-MY_NAME(Z)&amp;amp; &amp;amp;VAR(Z)&amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2006 07:36:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1296249#M156905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-25T07:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1296250#M156906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot SP.It works now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sinthu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2006 09:23:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/1296250#M156906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-25T09:23:42Z</dc:date>
    </item>
  </channel>
</rss>

