<?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: subroutine &amp; FM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-fm/m-p/2797041#M652985</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;Subroutine &amp;lt;b&amp;gt;cannot have OPTIONAL&amp;lt;/b&amp;gt; parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subroutine is &amp;lt;b&amp;gt;not a seperate reposiotry&amp;lt;/b&amp;gt; object.(&amp;lt;b&amp;gt;No TADIR entry&amp;lt;/b&amp;gt; for routines)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subroutine &amp;lt;b&amp;gt;cannot be Remote&amp;lt;/b&amp;gt; enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subroutine &amp;lt;b&amp;gt;cannot have Exceptions&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create as many subroutines as you want in a Function group but you can create only &amp;lt;b&amp;gt;99 Function modules.&amp;lt;/b&amp;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>Fri, 07 Sep 2007 10:12:14 GMT</pubDate>
    <dc:creator>seshatalpasai_madala</dc:creator>
    <dc:date>2007-09-07T10:12:14Z</dc:date>
    <item>
      <title>subroutine &amp; FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-fm/m-p/2797034#M652978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody tell me about the main difference between subroutine and a function module???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance!&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 10:04:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-fm/m-p/2797034#M652978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-07T10:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: subroutine &amp; FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-fm/m-p/2797035#M652979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;SUBROUTINE&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM GET_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * FROM ..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;FM&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;COMMIT_WORK&lt;/P&gt;&lt;P&gt;GUI_DOWNLOAD&lt;/P&gt;&lt;P&gt;GUI_UPLOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM can be used in different programs.&lt;/P&gt;&lt;P&gt;Subroutine can be used only in a single program&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 10:06:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-fm/m-p/2797035#M652979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-07T10:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: subroutine &amp; FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-fm/m-p/2797036#M652980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;function modules are mainlu useful n case of global declaration. and function modules return values whee as subroutines doex not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 10:07:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-fm/m-p/2797036#M652980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-07T10:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: subroutine &amp; FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-fm/m-p/2797037#M652981</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;Sunroutines and function modules does the same work..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subroutines are with in a program and Function modules are global across SAP..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can call FM in any program but Subroutine you can call with in a program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;they can both return values. &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;Subroutines are defined locally in the program and FMs are globally defined in SAP system.&lt;/P&gt;&lt;P&gt;You cant upload data or remotely access data using Subroutines, its possible in FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rewads if useful,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;nazeer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 10:08:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-fm/m-p/2797037#M652981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-07T10:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: subroutine &amp; FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-fm/m-p/2797038#M652982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Subroutine can be used in the same program and it is not global.&lt;/P&gt;&lt;P&gt;FM can be used by any number of programs and are global.&lt;/P&gt;&lt;P&gt;You can create your own FMs too and use existing FMs which are defined for different puposes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 10:08:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-fm/m-p/2797038#M652982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-07T10:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: subroutine &amp; FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-fm/m-p/2797039#M652983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Module:&lt;/P&gt;&lt;P&gt;   These are for Global modularizaiton. Name of  a FM is unique within SAP. &lt;/P&gt;&lt;P&gt;   Can be independently tested&lt;/P&gt;&lt;P&gt;   Can be Remote enabled.&lt;/P&gt;&lt;P&gt;   Can have exceptions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subroutine:&lt;/P&gt;&lt;P&gt;   These are for Local modularizaiton. Name of  a subroutine is unique within a PROGRAM.&lt;/P&gt;&lt;P&gt;   Cannot be independently tested&lt;/P&gt;&lt;P&gt;   Cannot be remote enabled&lt;/P&gt;&lt;P&gt;   Cannot have exceptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 10:08:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-fm/m-p/2797039#M652983</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-09-07T10:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: subroutine &amp; FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-fm/m-p/2797040#M652984</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;Go through the below link&lt;/P&gt;&lt;P&gt;&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://help.sap.com/saphelp_nw04/helpdata/en/c8/19764143b111d1896f0000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/c8/19764143b111d1896f0000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if u find useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 10:10:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-fm/m-p/2797040#M652984</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-09-07T10:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: subroutine &amp; FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-fm/m-p/2797041#M652985</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;Subroutine &amp;lt;b&amp;gt;cannot have OPTIONAL&amp;lt;/b&amp;gt; parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subroutine is &amp;lt;b&amp;gt;not a seperate reposiotry&amp;lt;/b&amp;gt; object.(&amp;lt;b&amp;gt;No TADIR entry&amp;lt;/b&amp;gt; for routines)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subroutine &amp;lt;b&amp;gt;cannot be Remote&amp;lt;/b&amp;gt; enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subroutine &amp;lt;b&amp;gt;cannot have Exceptions&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create as many subroutines as you want in a Function group but you can create only &amp;lt;b&amp;gt;99 Function modules.&amp;lt;/b&amp;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>Fri, 07 Sep 2007 10:12:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-fm/m-p/2797041#M652985</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-09-07T10:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: subroutine &amp; FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-fm/m-p/2797042#M652986</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;&lt;/P&gt;&lt;P&gt;Sub routine is local with in the program... Ofcourse there are ways to access subroutines from other programs...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Modules are global throughout the system... And one more advantage is we can make function module remote enable to access data from ohter clients/systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Returning values means for a subroutine or a function module u will exporting some values and based on that values the subroutine or fm will perform some logic, based on that logic the values which u have send may change so they will be returned to ur program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex: to a function module u have exported a and b values and importing c in the function module &lt;/P&gt;&lt;P&gt;c = a + b. So here it will return the sum of a and b through c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is what is called as returning the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 10:15:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-fm/m-p/2797042#M652986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-07T10:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: subroutine &amp; FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-fm/m-p/2797043#M652987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Differences between subroutine and FM r as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Function&amp;lt;/b&amp;gt; : Stored in the central library and has a global presence.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Subroutine&amp;lt;/b&amp;gt; : It is confined to a particular program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Function&amp;lt;/b&amp;gt; : It can return values.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Subroutine&amp;lt;/b&amp;gt; : It cannot return values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Function&amp;lt;/b&amp;gt; : Can handle exceptions.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Subroutine&amp;lt;/b&amp;gt; : Can't handle exceptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Function&amp;lt;/b&amp;gt; : The way the parameters are passed will differ from that subroutine.&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;Arun.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 10:19:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-fm/m-p/2797043#M652987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-07T10:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: subroutine &amp; FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-fm/m-p/2797044#M652988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Compared to Subroutines, FMs have a well defined Interface and exception handling mechanism. All the global data within a Function group can be accessed by all the FMs in that group.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2007 10:33:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subroutine-fm/m-p/2797044#M652988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-07T10:33:09Z</dc:date>
    </item>
  </channel>
</rss>

