<?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: Difference between Subroutine and Functionmodule in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-subroutine-and-functionmodule/m-p/2577239#M589030</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;In contrast to normal subroutines function modules have uniquely defined interface.  Declaring data as common parts is not possible for function modules.  Function modules are stored in a central library.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Aug 2007 16:26:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-07T16:26:04Z</dc:date>
    <item>
      <title>Difference between Subroutine and Functionmodule</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-subroutine-and-functionmodule/m-p/2577237#M589028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dears,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i post one question, even though it is simple for you people, plz answer for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajesh.N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 16:15:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-subroutine-and-functionmodule/m-p/2577237#M589028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T16:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Subroutine and Functionmodule</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-subroutine-and-functionmodule/m-p/2577238#M589029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the notes of differences bet. FM and Subroutines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Function modules are for modularization urpose. You can the Function Module in any program. That is available all over in the SAP system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where as subroutine is program specific. Once you create a subroutine in one program then you can use that in that program and related programs like includes in the program or you have to call the subroutine specifically using the main program name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally subroutines are for program modularization. Not for generic use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM's are for generic use. Not program dependent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FMs are mainly used when a routine is to be performed by many programs. &lt;/P&gt;&lt;P&gt;Subroutines (forms) are generally only executed within one program.&lt;/P&gt;&lt;P&gt;You can perform routines from other programs, but it's not often done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;both forms and FMs are reusable modularization units. &lt;/P&gt;&lt;P&gt;To distinguish we generally say that forms are used for internal modularization and &lt;/P&gt;&lt;P&gt;FMs are used for external modularization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To decide on which to implement, consider whether you need the content to be used just for a limited program&lt;/P&gt;&lt;P&gt;or wheteher it can be called from many independent programs. &lt;/P&gt;&lt;P&gt;For the first purpose it is better to implement a form whereas for the second we implement an FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, ABAP does not isolate the usage context. &lt;/P&gt;&lt;P&gt;That is; you can call a form from another program within whose code the form is not actually implemented.&lt;/P&gt;&lt;P&gt;However, this requires attention since the form may utilize global variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same issue holds for FMs.&lt;/P&gt;&lt;P&gt;FMs are encapsulated in function groups and function groups may have global variables that can be globally &lt;/P&gt;&lt;P&gt;used by all FMs inside it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Award Points...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 16:24:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-subroutine-and-functionmodule/m-p/2577238#M589029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T16:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Subroutine and Functionmodule</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-subroutine-and-functionmodule/m-p/2577239#M589030</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;In contrast to normal subroutines function modules have uniquely defined interface.  Declaring data as common parts is not possible for function modules.  Function modules are stored in a central library.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 16:26:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-subroutine-and-functionmodule/m-p/2577239#M589030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T16:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Subroutine and Functionmodule</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-subroutine-and-functionmodule/m-p/2577240#M589031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer this link...&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapbrainsonline.com/FAQs/TECHNICAL/SAP_ABAP_MODULARIZATION_FAQ.html" target="test_blank"&gt;http://www.sapbrainsonline.com/FAQs/TECHNICAL/SAP_ABAP_MODULARIZATION_FAQ.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://abapcode.blogspot.com/2007/05/modularization-techniques.html" target="test_blank"&gt;http://abapcode.blogspot.com/2007/05/modularization-techniques.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U will find all the differences in above links...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 16:26:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-subroutine-and-functionmodule/m-p/2577240#M589031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T16:26:44Z</dc:date>
    </item>
  </channel>
</rss>

