<?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: sapscript: PERFORM USAGE issue#2 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-perform-usage-issue-2/m-p/2181595#M463986</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As advised by&amp;lt;b&amp;gt; SUDHEER,&amp;lt;/b&amp;gt; I changed the variabled type from integer to character. I doubted it because as far as i know, I cant do math operations on character type but it did and it solved my issue. can someone explain this to me? that confuses me dramatically. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks to all of the contributors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 May 2007 13:56:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-02T13:56:30Z</dc:date>
    <item>
      <title>sapscript: PERFORM USAGE issue#2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-perform-usage-issue-2/m-p/2181586#M463977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont get the expected value 5 from the PERFORM command. I tested explicitly putting value '123456' right on the OUT_PAR-VALUE and it showed on the report. but when I assign the VAR3 (which is the summation of VAR1 and VAR2) on OUT_PAR-VALUE, it wont realy appear. Where did i go wrong. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested the value of V3 on the debugger and it is giving me value 5. OUT_PAR-VALUE on the debugger is blank. I wonder why. &amp;lt;b&amp;gt;pls help. thanks. &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;screenshot of the sapscript code:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://i150.photobucket.com/albums/s116/painkiller2007/SAP/sapscript23.jpg" target="test_blank"&gt;http://i150.photobucket.com/albums/s116/painkiller2007/SAP/sapscript23.jpg&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------" /&gt;&lt;P&gt;code of the called program&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------" /&gt;&lt;PRE&gt;&lt;CODE&gt;data: V1 type I,
      V2 type I,
      V3 type I.

form CALLSUB1 tables  IN_PAR structure ITCSY
                     OUT_PAR structure ITCSY.

      read table IN_PAR with key 'VAR1'.
      if SY-SUBRC = 0.
        V1 = IN_PAR-VALUE.
      endif.

      read table IN_PAR with key 'VAR2'.
      if SY-SUBRC = 0.
        V2 = IN_PAR-VALUE.
      endif.

      V3 = V1 + V2.

      read table OUT_PAR with key 'OUTPUT1'.
      CHECK SY-SUBRC = 0.
      OUT_PAR-VALUE = V3.
MODIFY OUT_PAR INDEX SY-TABIX.

endform. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 13:15:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-perform-usage-issue-2/m-p/2181586#M463977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T13:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript: PERFORM USAGE issue#2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-perform-usage-issue-2/m-p/2181587#M463978</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;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;form CALLSUB1 tables  IN_PAR structure ITCSY
                     OUT_PAR structure ITCSY.
 
data: V1 type I,   " Inside the Form and Endform
      V2 type I,
      V3 type I.


      read table IN_PAR with key 'VAR1'.
      if SY-SUBRC = 0.
        V1 = IN_PAR-VALUE.
      endif.
 
      read table IN_PAR with key 'VAR2'.
      if SY-SUBRC = 0.
        V2 = IN_PAR-VALUE.
      endif.
 
      V3 = V1 + V2.
 
      read table OUT_PAR with key 'OUTPUT1'.
      CHECK SY-SUBRC = 0.
      OUT_PAR-VALUE = V3.
MODIFY OUT_PAR INDEX SY-TABIX.
 
endform.&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 13:20:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-perform-usage-issue-2/m-p/2181587#M463978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T13:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript: PERFORM USAGE issue#2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-perform-usage-issue-2/m-p/2181588#M463979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use tranporting value in modify statement,,&lt;/P&gt;&lt;P&gt;also is the data local or global???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope solves your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jayant &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please award if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        JAYANT KUMAR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 13:20:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-perform-usage-issue-2/m-p/2181588#M463979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T13:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript: PERFORM USAGE issue#2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-perform-usage-issue-2/m-p/2181589#M463980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you define the OUTPUT1 variable also in the script itself?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 13:24:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-perform-usage-issue-2/m-p/2181589#M463980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T13:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript: PERFORM USAGE issue#2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-perform-usage-issue-2/m-p/2181590#M463981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;SUDHEER:&amp;lt;/b&amp;gt; I put the variable declaration inside just like you said but still the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;RAVI: &amp;lt;/b&amp;gt; I defined the OUTPUT1 too. the code is at the top. in fact, when you hardcode a value on OUT_PAR-VALUE, the value will be displayed on the sapscript report page.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 13:32:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-perform-usage-issue-2/m-p/2181590#M463981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T13:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript: PERFORM USAGE issue#2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-perform-usage-issue-2/m-p/2181591#M463982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;  Without touching the Print Program, we can change the sap script by using&lt;/P&gt;&lt;P&gt;Perform statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using ITCSY structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sreeram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 13:33:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-perform-usage-issue-2/m-p/2181591#M463982</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2007-05-02T13:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript: PERFORM USAGE issue#2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-perform-usage-issue-2/m-p/2181592#M463983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Everything ooks ok to me.&lt;/P&gt;&lt;P&gt;is there enough space in the window to print?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 13:40:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-perform-usage-issue-2/m-p/2181592#M463983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T13:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript: PERFORM USAGE issue#2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-perform-usage-issue-2/m-p/2181593#M463984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Declare all the fields as TYPE C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: V1(2) type C,&lt;/P&gt;&lt;P&gt;      V2(2) type C,&lt;/P&gt;&lt;P&gt;      V3(2) type C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 13:45:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-perform-usage-issue-2/m-p/2181593#M463984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T13:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript: PERFORM USAGE issue#2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-perform-usage-issue-2/m-p/2181594#M463985</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;   as u have written in u r form endperform as a command line, write like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/:  perform callsub1 in program z_sub&lt;/P&gt;&lt;P&gt;= using &amp;amp;var1&amp;amp;&lt;/P&gt;&lt;P&gt;= using &amp;amp;var2&amp;amp;&lt;/P&gt;&lt;P&gt;= changing &amp;amp;output1&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;Reward points if useful..&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;Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 13:45:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-perform-usage-issue-2/m-p/2181594#M463985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T13:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: sapscript: PERFORM USAGE issue#2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-perform-usage-issue-2/m-p/2181595#M463986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As advised by&amp;lt;b&amp;gt; SUDHEER,&amp;lt;/b&amp;gt; I changed the variabled type from integer to character. I doubted it because as far as i know, I cant do math operations on character type but it did and it solved my issue. can someone explain this to me? that confuses me dramatically. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks to all of the contributors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2007 13:56:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-perform-usage-issue-2/m-p/2181595#M463986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-02T13:56:30Z</dc:date>
    </item>
  </channel>
</rss>

