<?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 Difference b/w Include and Function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-include-and-function-module/m-p/2667809#M615776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Difference b/w Include and Function module?&lt;/P&gt;&lt;P&gt; I need brief explanation don't give any links.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Aug 2007 04:58:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-22T04:58:34Z</dc:date>
    <item>
      <title>Difference b/w Include and Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-include-and-function-module/m-p/2667809#M615776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Difference b/w Include and Function module?&lt;/P&gt;&lt;P&gt; I need brief explanation don't give any links.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 04:58:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-include-and-function-module/m-p/2667809#M615776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-22T04:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Difference b/w Include and Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-include-and-function-module/m-p/2667810#M615777</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;&amp;lt;b&amp;gt;INCLUDE &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;INCLUDE incl [IF FOUND]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Effect &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;The statement INCLUDE includes the Include program incl at this position in a source text. During syntax checking and generation of the program by the ABAP Compiler, the application is replaced by the source text of the Include program. The included INCLUDE program must consist of full statements. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the specified Include program does not exist, a syntax error will be triggered. This error message can be suppressed as of Release 6.40 by specifiying the addition IF FOUND. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Notes &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;The statement INCLUDE is the only statement that can be used instead of a statement that introduces a program at the first position of a program. The requirement is that, after execution of the Include program, a statement that introduces a program is at the beginning of the including program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ABAP Workbench supports the automatic creation of Include programs for certain program parts, such as Top Include for global declarative statements. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the service report RSINCL00, reference lists can be created for INCLUDE programs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;These lines display the framework program of the function group ABAP_DOCU, which represents the ABAP keyword documentation on the SAP NetWeaver Application Server ABAP. It contains solely INCLUDE statements that include the actual source text. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------" /&gt; &lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;System plus User-defined Include-files.                * &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------" /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;  INCLUDE labap_docutop.       " Global Data &lt;/P&gt;&lt;P&gt;  INCLUDE labap_docuf01.       " Class for docu display &lt;/P&gt;&lt;P&gt;  INCLUDE labap_docuuxx.       " Function Modules &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------" /&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;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------" /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;  INCLUDE labap_docuo01.       " PBO Modules &lt;/P&gt;&lt;P&gt;  INCLUDE labap_docui01.       " PAI Modules &lt;/P&gt;&lt;P&gt;  INCLUDE labap_docue01.       " Handling of Runtime Events &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;Function module &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;A procedure that can only be defined in function group and outside of classes. It can be called from any program. Begins with FUNCTION and ends with ENDFUNCTION. &lt;/P&gt;&lt;P&gt;Function modules are cross-program, reusable procedures that are organized into function groups, and whose functions are implemented between the statements FUNCTION and ENDFUNCTION. Function modules and their interfaces are created in the Function Builder. &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;&lt;/P&gt;&lt;P&gt;Ravish&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;Reward if useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 05:01:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-include-and-function-module/m-p/2667810#M615777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-22T05:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Difference b/w Include and Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-include-and-function-module/m-p/2667811#M615778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1.INCLUDE is one of the type of the reports and FM is technique of modularization.&lt;/P&gt;&lt;P&gt;2.FM has Impoting, Exporting, Table, Exception as properties of parameters , INCLUDE doesnt have. &lt;/P&gt;&lt;P&gt;3.INCLUDE cant execute, FM you can execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 05:02:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-include-and-function-module/m-p/2667811#M615778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-22T05:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Difference b/w Include and Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-include-and-function-module/m-p/2667812#M615779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;INCLUDE program : &lt;/P&gt;&lt;P&gt;It is  a  code that cannot be run on its own. You call them from another program using INCLUDE statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Module : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is a reusable procedure that can be executed from any program by calling it. any number times in the same program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear . if found useful Please reward points&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Sarath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 05:07:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-include-and-function-module/m-p/2667812#M615779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-22T05:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Difference b/w Include and Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-include-and-function-module/m-p/2667813#M615780</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;An INCLUDE is a kind of program that cannot be executed. This needs to be INCLUDED in any kind of executable program like REPORT or MODULE POOL program which can be executed using a transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE AS a Function module is a reusable procedure with PARAMTERS and EXCEPTIONS and capable of being called from a REMOTE System if it is remote enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internally in ABAP each Function module is created in a INCLUDE program , check any function group and its includes that end with U01, U02 etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 05:10:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-include-and-function-module/m-p/2667813#M615780</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-08-22T05:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Difference b/w Include and Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-include-and-function-module/m-p/2667814#M615781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;include gives the link to your code, its like you are maintaining your program in parts,&lt;/P&gt;&lt;P&gt;like you can define data in one include, suppose DEF, write forms of your performs in another include, suppose FRMS, and include em both in you main program.&lt;/P&gt;&lt;P&gt;So now you write your program, suppose REPORT1. you write:&lt;/P&gt;&lt;P&gt;include DEF.&lt;/P&gt;&lt;P&gt;include FRMS.&lt;/P&gt;&lt;P&gt;now you define all data in DEF, and when you write a perform in REPORT1, you create its form in FRMS. I hope u got the logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while FM's are written when there is a need to write some code that is used frequently by developers, for e.g UPLOAD, now this FM can be used by any developer in any report.&lt;/P&gt;&lt;P&gt;Hope it is clear now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful, get back in case of query...&lt;/P&gt;&lt;P&gt;Cheers!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 05:13:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-include-and-function-module/m-p/2667814#M615781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-22T05:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Difference b/w Include and Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-include-and-function-module/m-p/2667815#M615782</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;include programs can't be executed by itself. they should be linked some  other programs. and when system executes that line which has key word INLCLUDE ............... then control transfers to that include and it is executed. there is no restrictions for includes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include prgs are of type 'I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;includes are of single type. they can be called in prgs using keyword INCLUDE Prgmname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function moudles can be executed by itself. we can test n debug function modules. in function modules we cant use INCLUDE prgms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function modules are of difffff types&lt;/P&gt;&lt;P&gt;        1. remote-enabled FM&lt;/P&gt;&lt;P&gt;        2. normal FM&lt;/P&gt;&lt;P&gt;        3. Update Fm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function modules can be called in prgs using Keyword CALL FUNCTION fmname........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Suresh Aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 05:18:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-include-and-function-module/m-p/2667815#M615782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-22T05:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Difference b/w Include and Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-include-and-function-module/m-p/2667816#M615783</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;Include does not execute on its own, it has to be included in any other object or program to use the functionality in it. That is the reason it is named "Include". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Module is like an executable function which gets the desired output to our program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this info helps.&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;Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2007 05:38:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-w-include-and-function-module/m-p/2667816#M615783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-22T05:38:33Z</dc:date>
    </item>
  </channel>
</rss>

