<?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 Can't we use forms in a function module? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-t-we-use-forms-in-a-function-module/m-p/3483781#M837573</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;I have a extractor based on a function module. In the function module i need a set of lines to be called lot many times.&lt;/P&gt;&lt;P&gt;So , i tried using form and kept the code that needs to be called frequently in it.&lt;/P&gt;&lt;P&gt;The problem is FM is not allowing to keep the form inside the function (showing error).&lt;/P&gt;&lt;P&gt;Is there any other way to call a particular code in the FunctionModule repeatedly?&lt;/P&gt;&lt;P&gt;Can any one help me ASAP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Feb 2008 13:07:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-29T13:07:56Z</dc:date>
    <item>
      <title>Can't we use forms in a function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-t-we-use-forms-in-a-function-module/m-p/3483781#M837573</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;I have a extractor based on a function module. In the function module i need a set of lines to be called lot many times.&lt;/P&gt;&lt;P&gt;So , i tried using form and kept the code that needs to be called frequently in it.&lt;/P&gt;&lt;P&gt;The problem is FM is not allowing to keep the form inside the function (showing error).&lt;/P&gt;&lt;P&gt;Is there any other way to call a particular code in the FunctionModule repeatedly?&lt;/P&gt;&lt;P&gt;Can any one help me ASAP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Feb 2008 13:07:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-t-we-use-forms-in-a-function-module/m-p/3483781#M837573</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-29T13:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can't we use forms in a function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-t-we-use-forms-in-a-function-module/m-p/3483782#M837574</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;Yes, you can do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either move the FROM to after the ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move the FORM to an include of the function group, this will be available to all function modules in the group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Feb 2008 13:11:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-t-we-use-forms-in-a-function-module/m-p/3483782#M837574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-29T13:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can't we use forms in a function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-t-we-use-forms-in-a-function-module/m-p/3483783#M837575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prasad-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can put PERFORM statements inside FUNCTIOn-ENDFUNCTION, whereas all FORMS need to be put only afetr ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also put FORMs inside an Include Program of the respective Function Group. &lt;/P&gt;&lt;P&gt;Go to SE80 and look for the include programs. In one of those programs, u can put ur FORMS..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear to u..&lt;/P&gt;&lt;P&gt;Reward if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheeers&lt;/P&gt;&lt;P&gt;Shakir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Feb 2008 13:21:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-t-we-use-forms-in-a-function-module/m-p/3483783#M837575</guid>
      <dc:creator>abdulazeez12</dc:creator>
      <dc:date>2008-02-29T13:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can't we use forms in a function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-t-we-use-forms-in-a-function-module/m-p/3483784#M837576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When ever u create a FM it will ask for function group and when u create function group it will create following includes by default. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. L&lt;STRONG&gt;Function group name&lt;/STRONG&gt;TOP - Similar to TOP include where we will do our data declarations.&lt;/P&gt;&lt;P&gt;2. L&lt;STRONG&gt;Function group name&lt;/STRONG&gt;U01 - All function module source codes will present here.&lt;/P&gt;&lt;P&gt;3.L&lt;STRONG&gt;Function group name&lt;/STRONG&gt;UXX - Will contain includes equal to number of function module(i.e one include for each FM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U create one more include L&lt;STRONG&gt;Function group name&lt;/STRONG&gt;F01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE ur PERFORM formname. In ur function module source code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just double click on form name. It will ask for creation and display one pop up asking for where to place. Select newly created include  L&lt;STRONG&gt;Function group name&lt;/STRONG&gt;F01. So ur perform will be in FM source code and FORM will be in this include.&lt;/P&gt;&lt;P&gt;Dont forgot to activate this include before u use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Feb 2008 13:30:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-t-we-use-forms-in-a-function-module/m-p/3483784#M837576</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-02-29T13:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can't we use forms in a function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-t-we-use-forms-in-a-function-module/m-p/3483785#M837577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi every one,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created 2 includes , one for all declarations and the other include for the form which contains the code.&lt;/P&gt;&lt;P&gt;I have included them in the my actual program.&lt;/P&gt;&lt;P&gt;And in the actual program, i have a select statement on the internal table delared in the first include and i am looping into that table and assigning values to the fields and calling the form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i am getting error like " the statement is not accessible" starting from the select stmt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i know what is wrong in the code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2008 08:16:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-t-we-use-forms-in-a-function-module/m-p/3483785#M837577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-01T08:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can't we use forms in a function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-t-we-use-forms-in-a-function-module/m-p/3483786#M837578</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;       Your FM always belongs to a function group...... so if u want to create forms then u write the perform stmt and double click on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and create it in a new include......which will be in same FG.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2008 08:45:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-t-we-use-forms-in-a-function-module/m-p/3483786#M837578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-01T08:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can't we use forms in a function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-t-we-use-forms-in-a-function-module/m-p/3483787#M837579</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;       Your FM always belongs to a function group...... so if u want to create forms then u write the perform stmt and double click on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and create it in a new include......which will be in same FG.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2008 08:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-t-we-use-forms-in-a-function-module/m-p/3483787#M837579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-01T08:47:20Z</dc:date>
    </item>
  </channel>
</rss>

