<?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: Coding at script form side in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/coding-at-script-form-side/m-p/2832796#M663166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any more answers, please tell me the way how can I write code in script forms...&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Oct 2007 10:54:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-03T10:54:27Z</dc:date>
    <item>
      <title>Coding at script form side</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/coding-at-script-form-side/m-p/2832791#M663161</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;I see some forms that have code in them...&lt;/P&gt;&lt;P&gt;The syntax is like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; /:   PERFORM GET_ITEM_PACK IN PROGRAM ZEXPORTSALESFORM       &lt;/P&gt;&lt;P&gt; /:   USING &amp;amp;VBDKA-VBELN&amp;amp;                                     &lt;/P&gt;&lt;P&gt; /:   USING &amp;amp;VBDPA-POSNR&amp;amp;                                     &lt;/P&gt;&lt;P&gt; /:   USING &amp;amp;VBDPA-VRKME&amp;amp;                                     &lt;/P&gt;&lt;P&gt; /:   CHANGING &amp;amp;PACKING1&amp;amp;                                     &lt;/P&gt;&lt;P&gt; /:   CHANGING &amp;amp;PACKING2&amp;amp;                                     &lt;/P&gt;&lt;P&gt; /:   CHANGING &amp;amp;KIMYASAL&amp;amp;                                     &lt;/P&gt;&lt;P&gt; /:   ENDPERFORM        &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the logic of writing code inside script forms...&lt;/P&gt;&lt;P&gt;Do we need it really?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Deniz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 06:39:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/coding-at-script-form-side/m-p/2832791#M663161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T06:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Coding at script form side</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/coding-at-script-form-side/m-p/2832792#M663162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deniz..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can call subroutines in Script Layout set using this PERFORM command.&lt;/P&gt;&lt;P&gt;This is used to perform any operations from the Layout set. Bcoz we cannot directly write any code in a Script Layout set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**These are Text symbols for storing some values&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;PACKING1&amp;amp; = ''&lt;/P&gt;&lt;P&gt;/: DEFINE  &amp;amp;PACKING2&amp;amp; = ''&lt;/P&gt;&lt;P&gt;/: DEFINE   &amp;amp;KIMYASAL&amp;amp; = '' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**Calling subroutine&lt;/P&gt;&lt;P&gt;/: PERFORM GET_ITEM_PACK IN PROGRAM ZEXPORTSALESFORM&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;VBDKA-VBELN&amp;amp; "Using parameters are like Read-Only in subroutine&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;VBDPA-POSNR&amp;amp;&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;VBDPA-VRKME&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;PACKING1&amp;amp; "Using parameters can be modified in subroutine&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;PACKING2&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;KIMYASAL&amp;amp;&lt;/P&gt;&lt;P&gt;/: ENDPERFORM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This subroutine must be defined in the program ZEXPORTSALESFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GET_ITEM_PACK TABLES&lt;/P&gt;&lt;P&gt;           INTAB STRUCTURE ITCSY  "Contains all USING parameters&lt;/P&gt;&lt;P&gt;           OUTTAB STRUCTURE ITCSY " Contains all CHANGING parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**implement the logic here&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;&amp;lt;b&amp;gt;REWARD IF HELPFUL.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 06:51:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/coding-at-script-form-side/m-p/2832792#M663162</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-10-03T06:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Coding at script form side</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/coding-at-script-form-side/m-p/2832793#M663163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Varma@infyTree, your answer is really good for me to understand the background of the work.&lt;/P&gt;&lt;P&gt;However I am not clear at whether we have to define the using variables of the perform statement, that is &amp;amp;VBDPA-POSNR&amp;amp; and USING &amp;amp;VBDPA-VRKME&amp;amp;, must be defined beforehand or not..&lt;/P&gt;&lt;P&gt;Also changing variables need to be defined in advance?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 07:15:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/coding-at-script-form-side/m-p/2832793#M663163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T07:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Coding at script form side</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/coding-at-script-form-side/m-p/2832794#M663164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.. Deniz..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here the Using Parameters like &amp;amp;VBDPA-POSNR&amp;amp; and USING &amp;amp;VBDPA-VRKME&amp;amp; are the Variable in the print program. So they need not to be defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the Changing parameters are the Temporary variables to be created additionally. So they can be declared thru DEFINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;REWARD IF HELPFUL.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 07:22:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/coding-at-script-form-side/m-p/2832794#M663164</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-10-03T07:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Coding at script form side</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/coding-at-script-form-side/m-p/2832795#M663165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks firstly.&lt;/P&gt;&lt;P&gt;I have debugged the form and saw that the vbdka-vbeln field was full of data. When it has been assigned to this variable.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 08:00:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/coding-at-script-form-side/m-p/2832795#M663165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T08:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Coding at script form side</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/coding-at-script-form-side/m-p/2832796#M663166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any more answers, please tell me the way how can I write code in script forms...&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 10:54:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/coding-at-script-form-side/m-p/2832796#M663166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T10:54:27Z</dc:date>
    </item>
  </channel>
</rss>

