<?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: function module and perform in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-and-perform/m-p/3413271#M819776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;perform can be called from other programs , FM can also be called in any program...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM have function group... perform doesn't have...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exceptions can be handled in FM... in performs we cant..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Feb 2008 16:28:51 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2008-02-12T16:28:51Z</dc:date>
    <item>
      <title>function module and perform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-and-perform/m-p/3413269#M819774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the main difference between function module and perform?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 16:19:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-and-perform/m-p/3413269#M819774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T16:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: function module and perform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-and-perform/m-p/3413270#M819775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The main difference between a function module and a normal ABAP/4 subroutine is as follows:&lt;/P&gt;&lt;P&gt;Function is stored in central library and has global presence while subroutines are confined to a particular program.  Subroutine cannot return values while functions can return values. Unlike functions, subroutine cannot handle exceptions. And last but not least, the difference in the way the parameters are passed to functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declaring data as common parts is not possible for function modules.  The calling program and the called function module have separate work in ABAP/4 Dictionary tables.&lt;/P&gt;&lt;P&gt;You use the ABAP/4 Workbench to call, create, and maintain function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can combine several function modules to form a function group in the function library.  Since you can define global data that can be accessed from all function modules of one function group, it is reasonable to include function modules that operate with the same data, for example internal table for sales module can be grouped, in one function group.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 16:26:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-and-perform/m-p/3413270#M819775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T16:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: function module and perform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-and-perform/m-p/3413271#M819776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;perform can be called from other programs , FM can also be called in any program...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM have function group... perform doesn't have...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exceptions can be handled in FM... in performs we cant..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 16:28:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-and-perform/m-p/3413271#M819776</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-02-12T16:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: function module and perform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-and-perform/m-p/3413272#M819777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&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;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 16:45:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-and-perform/m-p/3413272#M819777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T16:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: function module and perform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-and-perform/m-p/3413273#M819778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Sub routines&lt;/STRONG&gt; : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Sub routines doesn't return any values.&lt;/P&gt;&lt;P&gt;2. Sub routines in one R/3 can't be accessed by another R/3 systems.&lt;/P&gt;&lt;P&gt;3. Sub routines for local programs and current client only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Function modules&lt;/STRONG&gt; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Function modules are global for all programd and all clients.&lt;/P&gt;&lt;P&gt;2. Function modules are accessed by same R/3 another R/3 and non R/3 systems also.&lt;/P&gt;&lt;P&gt;3. Function modules should return a value(more than one also)&lt;/P&gt;&lt;P&gt;4. Function modules are used at Module pool programs, BDCs, Scripts and smart forms.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 18:12:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-and-perform/m-p/3413273#M819778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T18:12:30Z</dc:date>
    </item>
  </channel>
</rss>

