<?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: syntax for subroutine in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-subroutine/m-p/3731168#M898024</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;u declare internal tables as types, and use those refarance type in form statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------" /&gt;&lt;P&gt;as per performace standards u write like this-------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ty_vkorg,&lt;/P&gt;&lt;P&gt;          type...&lt;/P&gt;&lt;P&gt;........&lt;/P&gt;&lt;P&gt;         end of ty_vkorg,&lt;/P&gt;&lt;P&gt;        ty_t_vkorg type standard table of ty_vkotg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_vkorg type ty_vkorg,&lt;/P&gt;&lt;P&gt;         it_vkorg  type table of ty_vkorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform create_range_vkorg using it_vkorg&lt;/P&gt;&lt;P&gt;                                         changing r_vkorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form create_range_vkorg using p_it_vkorg type ty_t_vkorg&lt;/P&gt;&lt;P&gt;                                  changing p_r_vkorg type standard table&lt;/P&gt;&lt;P&gt;&amp;lt;logic&amp;gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;chandu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 25, 2008 5:05 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Apr 2008 12:46:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-25T12:46:59Z</dc:date>
    <item>
      <title>syntax for subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-subroutine/m-p/3731164#M898020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to write a perform statement and then the corresponding form statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ranges: r_vkorg for vbak-vkorg.&lt;/P&gt;&lt;P&gt;Perform create_range_vkorg using table i_vkorg changing r_vkorg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where i_vkorg is an internal table that contains the sales org. &lt;/P&gt;&lt;P&gt;and r_vkorg is a range table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to write the perform statement and the form statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 12:32:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-subroutine/m-p/3731164#M898020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T12:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: syntax for subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-subroutine/m-p/3731165#M898021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES:
  ty_vkorg TYPE STANDARD TABLE OF vbak-vkorg,
  ty_r_vkorg TYPE RANGE OF vbak-vkorg.

PERFORM create_range_vkorg USING i_vkorg[] CHANGING r_vkorg[].

FORM create_range_vkorg USING i_vkorg TYPE ty_vkorg CHANGING r_vkorg TYPE ty_r_vkorg.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 12:40:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-subroutine/m-p/3731165#M898021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T12:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: syntax for subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-subroutine/m-p/3731166#M898022</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;To write the perform statement and the corresponding form statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ranges: r_vkorg for vbak-vkorg.&lt;/P&gt;&lt;P&gt;Perform create_range_vkorg using table i_vkorg changing r_vkorg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;double click on the subroutine name and then u can give the form statement as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form  create_range_vkorg using table &amp;lt;table_name&amp;gt; changing &amp;lt;name&amp;gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;"the process that need to be done.&lt;/P&gt;&lt;P&gt;Endform&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 25, 2008 5:05 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 12:42:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-subroutine/m-p/3731166#M898022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T12:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: syntax for subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-subroutine/m-p/3731167#M898023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Megan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First way nd the Easy way is &lt;/P&gt;&lt;P&gt;1. write &lt;STRONG&gt;PERFORM subroutinename&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;   and double-click on the subroutine name.&lt;/P&gt;&lt;P&gt;2. Then choose the same program name.&lt;/P&gt;&lt;P&gt;   and click enter.&lt;/P&gt;&lt;P&gt;3. Automatically the &lt;STRONG&gt;FORM...ENDFORM&lt;/STRONG&gt; for the Subroutine will be created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 12:42:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-subroutine/m-p/3731167#M898023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T12:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: syntax for subroutine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-subroutine/m-p/3731168#M898024</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;u declare internal tables as types, and use those refarance type in form statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------" /&gt;&lt;P&gt;as per performace standards u write like this-------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ty_vkorg,&lt;/P&gt;&lt;P&gt;          type...&lt;/P&gt;&lt;P&gt;........&lt;/P&gt;&lt;P&gt;         end of ty_vkorg,&lt;/P&gt;&lt;P&gt;        ty_t_vkorg type standard table of ty_vkotg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_vkorg type ty_vkorg,&lt;/P&gt;&lt;P&gt;         it_vkorg  type table of ty_vkorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform create_range_vkorg using it_vkorg&lt;/P&gt;&lt;P&gt;                                         changing r_vkorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form create_range_vkorg using p_it_vkorg type ty_t_vkorg&lt;/P&gt;&lt;P&gt;                                  changing p_r_vkorg type standard table&lt;/P&gt;&lt;P&gt;&amp;lt;logic&amp;gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;chandu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 25, 2008 5:05 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 12:46:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-for-subroutine/m-p/3731168#M898024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T12:46:59Z</dc:date>
    </item>
  </channel>
</rss>

