<?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: FORMS/SUBROUTINES in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/forms-subroutines/m-p/1417947#M200900</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through the below link on subroutines,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/9f/db975c35c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/9f/db975c35c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also go through the sample programs &amp;lt;b&amp;gt;demo_mod_tech_describe&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;demo_mod_tech_example_1&lt;/P&gt;&lt;P&gt;demo_mod_tech_example_2&lt;/P&gt;&lt;P&gt;demo_mod_tech_example_3&lt;/P&gt;&lt;P&gt;demo_mod_tech_example_4&lt;/P&gt;&lt;P&gt;demo_mod_tech_example_5&lt;/P&gt;&lt;P&gt;demo_mod_tech_example_6&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;in your abap editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Azaz Ali.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Azaz Ali&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Azaz Ali&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Jul 2006 03:48:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-19T03:48:36Z</dc:date>
    <item>
      <title>FORMS/SUBROUTINES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/forms-subroutines/m-p/1417944#M200897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Type group : CNTL.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------" /&gt;&lt;P&gt;TYPES: BEGIN OF CNTL_SIMPLE_EVENT,&lt;/P&gt;&lt;P&gt;         EVENTID TYPE I,&lt;/P&gt;&lt;P&gt;         APPL_EVENT TYPE C,&lt;/P&gt;&lt;P&gt;       END OF CNTL_SIMPLE_EVENT.&lt;/P&gt;&lt;P&gt;TYPES: CNTL_SIMPLE_EVENTS TYPE TABLE OF CNTL_SIMPLE_EVENT.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program: ZPROGRAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: event_tab_main TYPE cntl_simple_events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to pass this event_tab_main (which is define in the type group:CNTL) to a subroutine/form(syntax).when i am using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM xyz tables event_tab_main.&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;its giving an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 03:37:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/forms-subroutines/m-p/1417944#M200897</guid>
      <dc:creator>ravi_sirigiri</dc:creator>
      <dc:date>2006-07-19T03:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: FORMS/SUBROUTINES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/forms-subroutines/m-p/1417945#M200898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF T_X, &lt;/P&gt;&lt;P&gt;         INCLUDE STRUCTURE SFLIGHT. &lt;/P&gt;&lt;P&gt;TYPES:   ADDITION(8) TYPE C, &lt;/P&gt;&lt;P&gt;       END OF T_X. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:  X TYPE STANDARD TABLE OF T_X WITH NON-UNIQUE DEFAULT KEY &lt;/P&gt;&lt;P&gt;              INITIAL SIZE 0, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;PERFORM U TABLES X. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;FORM U TABLES X STRUCTURE SFLIGHT. &lt;/P&gt;&lt;P&gt;  WRITE: X-FLDATE. &lt;/P&gt;&lt;P&gt;ENDFORM. &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;P.S. Please award points for useful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 03:40:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/forms-subroutines/m-p/1417945#M200898</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-07-19T03:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: FORMS/SUBROUTINES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/forms-subroutines/m-p/1417946#M200899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM xyz tables event_tab_main &amp;lt;b&amp;gt;STRUCTURE CNTL_SIMPLE_EVET &amp;lt;/b&amp;gt;.&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;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note : Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 03:43:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/forms-subroutines/m-p/1417946#M200899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T03:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: FORMS/SUBROUTINES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/forms-subroutines/m-p/1417947#M200900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through the below link on subroutines,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/9f/db975c35c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/9f/db975c35c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also go through the sample programs &amp;lt;b&amp;gt;demo_mod_tech_describe&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;demo_mod_tech_example_1&lt;/P&gt;&lt;P&gt;demo_mod_tech_example_2&lt;/P&gt;&lt;P&gt;demo_mod_tech_example_3&lt;/P&gt;&lt;P&gt;demo_mod_tech_example_4&lt;/P&gt;&lt;P&gt;demo_mod_tech_example_5&lt;/P&gt;&lt;P&gt;demo_mod_tech_example_6&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;in your abap editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Azaz Ali.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Azaz Ali&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Azaz Ali&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 03:48:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/forms-subroutines/m-p/1417947#M200900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T03:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: FORMS/SUBROUTINES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/forms-subroutines/m-p/1417948#M200901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can pass an internal table into a Function Module.&lt;/P&gt;&lt;P&gt;Just go through my post in this SDN link...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="133515"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think similar case should work with Subroutines also.&lt;/P&gt;&lt;P&gt;Just try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: event_tab_main TYPE TABLE OF CNTL_SIMPLE_EVENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After filling the internal table with values, you can pass the internal table as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM CALL_FORM USING event_tab_main.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Form statement, do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM call_form TABLES itab TYPE CNTL_SIMPLE_EVENTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;Create a local structure like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data wa_itab type cntl_simple_events.&lt;/P&gt;&lt;P&gt;loop at wa_itab into wa_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;By the way, what kind of error is occuring...?&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 03:52:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/forms-subroutines/m-p/1417948#M200901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T03:52:52Z</dc:date>
    </item>
  </channel>
</rss>

