<?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 Function module Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error/m-p/1053193#M89686</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 created FM using Se37. I didn't put any code inside that FM. But While Activating that FM i am getting error like "program SAPLYMATERIAL "Report/Program statement missing, or program type is include". If i double click that program name then it's going to this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  *******************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  System-defined Include-files.                                 *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*******************************************************************&lt;/P&gt;&lt;P&gt;  INCLUDE LYMATERIALTOP.                     " Global Data&lt;/P&gt;&lt;P&gt;  INCLUDE LYMATERIALUXX.                     " Function Modules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  User-defined Include-files (if necessary).                    *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*******************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;INCLUDE LYMATERIALF...                     " Subprograms&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;INCLUDE LYMATERIALO...                     " PBO-Modules&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;INCLUDE LYMATERIALI...                     " PAI-Modules&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i try to activate this telling me syntax error "The main program of the function "YMAT" does not begin with FUNCTION_POOL". Kind of strange....... B'cos i didn't write any code in FM. Why i am getting this error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Dec 2005 17:51:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-01T17:51:00Z</dc:date>
    <item>
      <title>Function module Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error/m-p/1053193#M89686</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 created FM using Se37. I didn't put any code inside that FM. But While Activating that FM i am getting error like "program SAPLYMATERIAL "Report/Program statement missing, or program type is include". If i double click that program name then it's going to this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  *******************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  System-defined Include-files.                                 *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*******************************************************************&lt;/P&gt;&lt;P&gt;  INCLUDE LYMATERIALTOP.                     " Global Data&lt;/P&gt;&lt;P&gt;  INCLUDE LYMATERIALUXX.                     " Function Modules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  User-defined Include-files (if necessary).                    *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*******************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;INCLUDE LYMATERIALF...                     " Subprograms&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;INCLUDE LYMATERIALO...                     " PBO-Modules&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;INCLUDE LYMATERIALI...                     " PAI-Modules&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i try to activate this telling me syntax error "The main program of the function "YMAT" does not begin with FUNCTION_POOL". Kind of strange....... B'cos i didn't write any code in FM. Why i am getting this error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 17:51:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error/m-p/1053193#M89686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T17:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Function module Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error/m-p/1053194#M89687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Subhashini,&lt;/P&gt;&lt;P&gt;   When you create a FMyou need to create it with reference to a function group.&lt;/P&gt;&lt;P&gt;the function group will have a main program attached to it and there will be several include in it(One for global data , one for the form rouitines etc).&lt;/P&gt;&lt;P&gt;So when you have the code and see if you get the error still.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 17:55:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error/m-p/1053194#M89687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T17:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Function module Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error/m-p/1053195#M89688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something went wrong when creating the function group.  You can delete it and try creating it again or you can check that all of your code matches mine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAPLYMAT should look like....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*******************************************************************
*   System-defined Include-files.                                 *
*******************************************************************
  INCLUDE LYMATTOP.                          " Global Data
  INCLUDE LYMATUXX.                          " Function Modules

*******************************************************************
*   User-defined Include-files (if necessary).                    *
*******************************************************************
* INCLUDE LYMATF...                          " Subprograms
* INCLUDE LYMATO...                          " PBO-Modules
* INCLUDE LYMATI...                          " PAI-Modules&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The LYMATTOP include should have ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

FUNCTION-POOL YMAT.                         "MESSAGE-ID ..

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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>Thu, 01 Dec 2005 17:56:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error/m-p/1053195#M89688</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-01T17:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Function module Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error/m-p/1053196#M89689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For more info, see any existing function module,&lt;/P&gt;&lt;P&gt;Go to got0-&amp;gt;Main program for any function module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 17:56:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error/m-p/1053196#M89689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T17:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Function module Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error/m-p/1053197#M89690</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;It seems to be an issue with the function group you used.&lt;/P&gt;&lt;P&gt;Try repairing the function group .&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;Kalpana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 17:58:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error/m-p/1053197#M89690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T17:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Function module Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error/m-p/1053198#M89691</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;Exactly My function is looks like Urs. ALso I created Function group &amp;amp; linked that Function Group to FM. But still it's giving me error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 18:01:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error/m-p/1053198#M89691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T18:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Function module Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error/m-p/1053199#M89692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Initially delete the FM which u have created. Recreate a new FM from SE37. While creating the FM attach a valid function group and save the FM. It automatically creates various include programs. Try activating the main program.&lt;/P&gt;&lt;P&gt;This will solve ur problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 18:03:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error/m-p/1053199#M89692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T18:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Function module Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error/m-p/1053200#M89693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Function Group Problem, There is some other Programs having some problem, because of that you are getting this message.&lt;/P&gt;&lt;P&gt;try to Correct that FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you will not get any errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 18:04:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error/m-p/1053200#M89693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T18:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Function module Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error/m-p/1053201#M89694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First make sure that the TOP include is activated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is then something is wrong.  I would start over.  Delete the function group.  Go to SE80,  pull the listbox down to "Function Group", enter the name and hit enter.   System will ask you if you want to create it,  say yea, and give a description.  Click save,  enter dev class.&lt;/P&gt;&lt;P&gt;Now you have you funciton group.  Go ahead and activate it, by right clicking on the function group name and "Activate".  Select the TOP include as well as the main program and click green check.  Now all should be activated,  now start adding function modules.&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>Thu, 01 Dec 2005 18:07:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error/m-p/1053201#M89694</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-01T18:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Function module Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error/m-p/1053202#M89695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok i will try this. But When i create FM as YMAT1, If i save this telling me warning that " Function Module name is reserved for SAP"?.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that ok. or b'cos this it's causeing the error "Report/Program statment missing Error"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 18:14:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error/m-p/1053202#M89695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T18:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Function module Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error/m-p/1053203#M89696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you creating a function group or just a function module?  In my example, I was creating the group YMAT.  This is within the customer name space.  If you are creating a funciton module, you need ot use Z_ or Y_.&lt;/P&gt;&lt;P&gt;&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>Thu, 01 Dec 2005 18:19:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error/m-p/1053203#M89696</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-01T18:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Function module Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error/m-p/1053204#M89697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to SE38 and enter your main program SAPLYMATERIAL. Click activate there. Then in the menu, Utilities--&amp;gt;Update Navigation Index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now go to SE37 and check if your function module is active. Try activating it again, if not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 18:19:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error/m-p/1053204#M89697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T18:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Function module Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error/m-p/1053205#M89698</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; Thanks guys. Now it's activating Without any errors. I activated through SE80. Great help guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Subashini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 18:28:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-error/m-p/1053205#M89698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T18:28:53Z</dc:date>
    </item>
  </channel>
</rss>

