<?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 scripts in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/scripts/m-p/997027#M75503</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have copied the standard script F140_DOCU_EXC_01 into ZFI_F140_DOCU_EX. i need to make some changes in the main window.In the main window there is a text element 521&lt;/P&gt;&lt;P&gt;i have aded a new field &amp;amp;RF140-WRSHB&amp;amp; for Net Amount in the text elmt 521.i need to caluculate the Net amount, for that do i need to write the subrouitne, if that is so what is the subroutine.&lt;/P&gt;&lt;P&gt; Thanks in advance.&lt;/P&gt;&lt;P&gt;Srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Aug 2005 15:34:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-08-04T15:34:11Z</dc:date>
    <item>
      <title>scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scripts/m-p/997027#M75503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have copied the standard script F140_DOCU_EXC_01 into ZFI_F140_DOCU_EX. i need to make some changes in the main window.In the main window there is a text element 521&lt;/P&gt;&lt;P&gt;i have aded a new field &amp;amp;RF140-WRSHB&amp;amp; for Net Amount in the text elmt 521.i need to caluculate the Net amount, for that do i need to write the subrouitne, if that is so what is the subroutine.&lt;/P&gt;&lt;P&gt; Thanks in advance.&lt;/P&gt;&lt;P&gt;Srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2005 15:34:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scripts/m-p/997027#M75503</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-04T15:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scripts/m-p/997028#M75504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shrikanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at these links:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.idocs.de/www3/cookbooks/sapscript/sapscript_7/docu.htm" target="test_blank"&gt;http://www.idocs.de/www3/cookbooks/sapscript/sapscript_7/docu.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.henrikfrank.dk/abapexamples/SapScript/calling_abap_subroutines.htm" target="test_blank"&gt;http://www.henrikfrank.dk/abapexamples/SapScript/calling_abap_subroutines.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what these examples show is that you pass values to your subroutine from your sapscript and then retieve the value from subroutine back to your sapscript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;Ville&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2005 15:43:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scripts/m-p/997028#M75504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-04T15:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scripts/m-p/997029#M75505</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;If u need to calculate the net amount use the following statement before displaying the value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM &amp;lt;routine_name&amp;gt; IN PROGRAM &amp;lt;program_name&amp;gt; &lt;/P&gt;&lt;P&gt;USING &amp;lt;parameters&amp;gt;&lt;/P&gt;&lt;P&gt;CHANGING &amp;lt;parameters&amp;gt;&lt;/P&gt;&lt;P&gt;ENDPERFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u need to declare the &amp;lt;program_name&amp;gt; as type &lt;/P&gt;&lt;P&gt;sub-routine pool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this should solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vamsi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2005 16:03:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scripts/m-p/997029#M75505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-04T16:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scripts/m-p/997030#M75506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srikanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below links might help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_45b/helpdata/en/65/897415dc4ad111950d0060b03c6b76/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_45b/helpdata/en/65/897415dc4ad111950d0060b03c6b76/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm" target="test_blank"&gt;http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2005 16:06:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scripts/m-p/997030#M75506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-04T16:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scripts/m-p/997031#M75507</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;You need to write a piece of code in a sub-routine to fill the value in this field. For this call:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM &amp;lt;subroutin_name&amp;gt; IN PROGRAM &amp;lt;prog_name&amp;gt;&lt;/P&gt;&lt;P&gt;USING &amp;lt;parms&amp;gt;&lt;/P&gt;&lt;P&gt;CHANGING &amp;lt;parms&amp;gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare the program &amp;lt;prog_name&amp;gt; of type sub-routine pool.&lt;/P&gt;&lt;P&gt;And in the FORM... ENDFORM of the subroutine, declare the local variables as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM &amp;lt;form_name&amp;gt; TABLES in_var type ITCSY&lt;/P&gt;&lt;P&gt;                       out_var type ITCSY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You get the table in_var do the modifications and send the final value to out_var. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should solve the problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vamsi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2005 18:57:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scripts/m-p/997031#M75507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-04T18:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scripts/m-p/997032#M75508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vamsi..&lt;/P&gt;&lt;P&gt;           i have gone thru the ITCSY stru, could u please tell me how write the code for caluculating the net amount, i mean have written the code as u said, i have seen the struc RF140(i need to caluculate the field WRSHB, i need the code in se38.&lt;/P&gt;&lt;P&gt;the standard sap script is F140_DOCU_EXC_01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; cheers&lt;/P&gt;&lt;P&gt;srikanth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2005 14:37:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scripts/m-p/997032#M75508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-05T14:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: scripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scripts/m-p/997033#M75509</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;Yu just need to pass the field(eg: &amp;amp;W_WRSHB&amp;amp;) to the NAME and the value to VALUE of structure ITCSY. Just write your code of select statements to retreive the data in the subroutine pool and pass back the value to the structure OUT_VAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: PERFORM ..... USING &amp;amp;RF140-WRSHB&amp;amp;&lt;/P&gt;&lt;P&gt;    ENDPERFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    FORM ..... IN_VAR STRUCTURE ITCSY&lt;/P&gt;&lt;P&gt;               OUT_VAR STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     select....&lt;/P&gt;&lt;P&gt;     read out_var with key name = &amp;amp;RF140-WRSHB&amp;amp;&lt;/P&gt;&lt;P&gt;      if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;       out_var-value = (value you retrieved).&lt;/P&gt;&lt;P&gt;       and modify the table accordingly.&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;    While form printing, the system will get the value from the out_var and displays it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vamsi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2005 20:54:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scripts/m-p/997033#M75509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-05T20:54:44Z</dc:date>
    </item>
  </channel>
</rss>

