<?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: Script editor...How to write code? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-editor-how-to-write-code/m-p/1472899#M222070</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't do it like that, you will need to do a PERFORM in your sapscript passing the values to the FORM in a "Z" program and doing the calculation and passing the value back to the form.&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>Tue, 25 Jul 2006 20:00:33 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-07-25T20:00:33Z</dc:date>
    <item>
      <title>Script editor...How to write code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-editor-how-to-write-code/m-p/1472898#M222069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Script editor, How can I write code for the below calculation? Because I could not write code in driver program which is standard program .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;B1 &amp;amp;REGUP-BELNR&amp;amp;,,&amp;amp;REGUP-XBLNR&amp;amp;,,&amp;amp;REGUP-BLDAT&amp;amp;,,&lt;/P&gt;&lt;P&gt;   &amp;amp;REGUP-WAERS&amp;amp;,,  &lt;/P&gt;&lt;P&gt;=  net&amp;lt;/b&amp;gt;   &lt;/P&gt;&lt;P&gt;                                              &lt;/P&gt;&lt;P&gt;I mean &amp;lt;b&amp;gt;net&amp;lt;/b&amp;gt; = &amp;lt;b&amp;gt;&amp;amp;REGUP-WRBTR&amp;amp; - &amp;amp;REGUP-QBSHB&amp;amp; - &amp;amp;REGUP-WSKTO&amp;amp;&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to take a variable to catch the value of  &amp;amp;REGUP-WRBTR&amp;amp; - &amp;amp;REGUP-QBSHB&amp;amp; - &amp;amp;REGUP-WSKTO&amp;amp; &lt;/P&gt;&lt;P&gt;Please help me. It is urgent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 19:23:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-editor-how-to-write-code/m-p/1472898#M222069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-25T19:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Script editor...How to write code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-editor-how-to-write-code/m-p/1472899#M222070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't do it like that, you will need to do a PERFORM in your sapscript passing the values to the FORM in a "Z" program and doing the calculation and passing the value back to the form.&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>Tue, 25 Jul 2006 20:00:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-editor-how-to-write-code/m-p/1472899#M222070</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-25T20:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Script editor...How to write code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-editor-how-to-write-code/m-p/1472900#M222071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cant operate text elements in SAP scripts..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the alternate way is copy the standard program into zprogram and add a subroutine for ur calculations and pass it to sap script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 20:06:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-editor-how-to-write-code/m-p/1472900#M222071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-25T20:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Script editor...How to write code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-editor-how-to-write-code/m-p/1472901#M222072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to define a perform in your driver program like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: PERFORM calculate_net  IN PROGRAM &amp;lt;prog&amp;gt;&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;INVAR1&amp;amp;&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;INVAR2&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;OUTVAR1&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;OUTVAR2&amp;amp;&lt;/P&gt;&lt;P&gt;/: ENDPERFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INVAR1 and INVAR2 are variable symbols and may be of any of the four SAPscript symbol types. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUTVAR1 and OUTVAR2 are local text symbols and must therefore be character strings. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ABAP subroutine called via the command line stated above must be defined in the ABAP report prog as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM calculate_net TABLES IN_TAB STRUCTURE ITCSY&lt;/P&gt;&lt;P&gt;OUT_TAB STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;*-Define your logic for Net&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 20:07:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-editor-how-to-write-code/m-p/1472901#M222072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-25T20:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Script editor...How to write code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-editor-how-to-write-code/m-p/1472902#M222073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naresh has show you how to call a PERFORM in your script, since you are working with a standard print program, you can not put this FORM in your driver program,  all you need to do is create a "Z" program and put this FORM in it, and then reference the "Z" program in the PERFORM statement in your sapscript.&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>Tue, 25 Jul 2006 20:10:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-editor-how-to-write-code/m-p/1472902#M222073</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-25T20:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Script editor...How to write code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-editor-how-to-write-code/m-p/1472903#M222074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is a Executable program. Not an Include Program&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 20:55:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-editor-how-to-write-code/m-p/1472903#M222074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-25T20:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Script editor...How to write code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-editor-how-to-write-code/m-p/1472904#M222075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you dont need to do any caluculations, Netamount Which is Standard had a field, Please just use that field. &lt;/P&gt;&lt;P&gt;I guess it is Regud-swnes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know, if your problem is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 21:33:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-editor-how-to-write-code/m-p/1472904#M222075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-25T21:33:26Z</dc:date>
    </item>
  </channel>
</rss>

