<?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 hi experts in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-experts/m-p/2831351#M662700</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt; i am not clear with functionmodules and subroutiens&lt;/P&gt;&lt;P&gt;1)what is the diff b/n FM and external subroutine&lt;/P&gt;&lt;P&gt;2)pls explain in detail abt IMPORT, EXPORT,TABLES, AND CHANGING IN FMS&lt;/P&gt;&lt;P&gt;3)is it possble to upload logos to reports&lt;/P&gt;&lt;P&gt;                                                            thanks and regards&lt;/P&gt;&lt;P&gt;                                                                    suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Oct 2007 06:13:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-03T06:13:45Z</dc:date>
    <item>
      <title>hi experts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-experts/m-p/2831351#M662700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt; i am not clear with functionmodules and subroutiens&lt;/P&gt;&lt;P&gt;1)what is the diff b/n FM and external subroutine&lt;/P&gt;&lt;P&gt;2)pls explain in detail abt IMPORT, EXPORT,TABLES, AND CHANGING IN FMS&lt;/P&gt;&lt;P&gt;3)is it possble to upload logos to reports&lt;/P&gt;&lt;P&gt;                                                            thanks and regards&lt;/P&gt;&lt;P&gt;                                                                    suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 06:13:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-experts/m-p/2831351#M662700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T06:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: hi experts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-experts/m-p/2831352#M662701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;main diff in function modules &amp;amp; subroutines as folllows&lt;/P&gt;&lt;P&gt;subroutines for readability , modularization&lt;/P&gt;&lt;P&gt;fms for reusability &amp;amp; encapusalation &lt;/P&gt;&lt;P&gt;u can call fm remotly u can raise exceptions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import &lt;/P&gt;&lt;P&gt;fm imports values from u r abap program and make necessary changes to it and export it to program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables can be passed to fm to make neccessary changes&lt;/P&gt;&lt;P&gt;yes it is possible to upload logos in reports&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Nagesh.Paruchuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 06:19:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-experts/m-p/2831352#M662701</guid>
      <dc:creator>paruchuri_nagesh</dc:creator>
      <dc:date>2007-10-03T06:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: hi experts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-experts/m-p/2831353#M662702</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;Function Module:&amp;lt;/b&amp;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;&amp;lt;b&amp;gt;Subroutine:&amp;lt;/b&amp;gt;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 06:24:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-experts/m-p/2831353#M662702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T06:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: hi experts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-experts/m-p/2831354#M662703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Function modules are for modularization purpose. You can use 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;&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;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harini.S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 06:33:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-experts/m-p/2831354#M662703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T06:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: hi experts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-experts/m-p/2831355#M662704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh,&lt;/P&gt;&lt;P&gt;1)&amp;lt;b&amp;gt;&amp;lt;u&amp;gt;Difference between Function Modules and Ext.subroutines:&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Both are used for modularization as already mentioned.&lt;/P&gt;&lt;P&gt;Function modules are created in a particular function group and is globally available.&lt;/P&gt;&lt;P&gt;Remote Function Modules are function modules that can be called from other SAP or NON-SAP systems. BAPI's are examples of RFC-enabled function modules. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;External Subroutines are subroutines that are called from another program. . &lt;/P&gt;&lt;P&gt;See the below thread: &amp;lt;b&amp;gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="429329"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2)&amp;lt;b&amp;gt;&amp;lt;u&amp;gt;Parameters in FM&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt; : &amp;lt;b&amp;gt;)Import&amp;lt;/b&amp;gt;	Contains a list of the formal parameters that are used to pass data to a function module. For further information, refer to Displaying Information about Interface Parameters &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Export&amp;lt;/b&amp;gt;	Contains a list of the formal parameters that are used to receive data from a function module. &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Changing&amp;lt;/b&amp;gt;	Contains a list of the formal parameters that are used both to pass data to and receive data from a function module. &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;Tables&amp;lt;/b&amp;gt;	Specifies the tables that are to be passed to a function module. Table parameters are always passed by reference. &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Exceptions&amp;lt;/b&amp;gt;	Shows how the function module reacts to exceptions. Actually this is usually used when we want to handle some runtime error...we can catch it using these exceptions .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) &amp;lt;b&amp;gt;&amp;lt;u&amp;gt;Logo In reports&amp;lt;/u&amp;gt;:&amp;lt;/b&amp;gt;Yes a logo can uploaded to reports using..picture control..or even using an fm: REUSE_ALV_COMMENTARY_WRITE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Simy Abraham.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Simi Abraham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 07:28:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-experts/m-p/2831355#M662704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T07:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: hi experts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-experts/m-p/2831356#M662705</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;1-&amp;gt;difference between function module and external subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subroutines&lt;/P&gt;&lt;P&gt;Subroutines are principally for local modularization, that is, they are generally called from the program in which they are defined. You can use subroutines to write functions that are used repeatedly within a program. You can define subroutines in any ABAP program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Modules&lt;/P&gt;&lt;P&gt;Function modules are for global modularization, that is, they are always called from a different program. Function modules contain functions that are used in the same form by many different programs. They are important in the R/3 System for encapsulating processing logic and making it reusable. Function modules must be defined in a function group, and can be called from any program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subroutines executes faster than the fn modules because subroutines are defined within the program and they are executed after they have been called whereas the when u call a fn module, it is defined globally and it is accessed through a fn group in which they are stored. ALso the fn group should be active at the time of calling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3-You cant upload a logo in normal report but you can do the same in ALV Report.&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>Wed, 03 Oct 2007 07:55:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-experts/m-p/2831356#M662705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T07:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: hi experts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-experts/m-p/2831357#M662706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;differencw b/n FM and SUBROUTINE and its  parameters&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 08:06:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-experts/m-p/2831357#M662706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T08:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: hi experts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-experts/m-p/2831358#M662707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Function Modules&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt; a..are created thru SE37 Tcode.&lt;/P&gt;&lt;P&gt; b. FMs have well defined interface for developing and calling them.&lt;/P&gt;&lt;P&gt; ie. IMPORT, EXPORT, CHANGING,TABLES, EXCEPTIONS&lt;/P&gt;&lt;P&gt; c. FMs are avaialble globally.&lt;/P&gt;&lt;P&gt; ie any program can use them.&lt;/P&gt;&lt;P&gt; d. FMs are called using the syntax : CALL FUNCTION&lt;/P&gt;&lt;P&gt; e. FMs can be update task, RFC etc.&lt;/P&gt;&lt;P&gt;whereas subroutines are much limited.&lt;/P&gt;&lt;P&gt; f. FMs can be tested thru se37&lt;/P&gt;&lt;P&gt; whereas for testing subroutines, we have to write some abap code.&lt;/P&gt;&lt;P&gt;g.Can access the global variables of a program only using it&amp;#146;s interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Subroutines&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;a. are created in a program thru se38.&lt;/P&gt;&lt;P&gt;b. they are generally not used by other programs.&lt;/P&gt;&lt;P&gt;(however they can be used thru some special technique)&lt;/P&gt;&lt;P&gt;c. subroutines are called using PERFORM&lt;/P&gt;&lt;P&gt; and defined using FORM keyword.&lt;/P&gt;&lt;P&gt;d.can directly access the global variables of a program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Use :&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 If the requirement is very specific to the&lt;/P&gt;&lt;P&gt;program, a subroutine can be used, other wise FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If the code is to be executed MANY TIMES,&lt;/P&gt;&lt;P&gt;ie in a loop - 5000 - 10000 times,&lt;/P&gt;&lt;P&gt;it is better to use subroutine bcos&lt;/P&gt;&lt;P&gt;they are faster than FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just remember this much only if u want some code to be written for some specific program only then use subroutines..&lt;/P&gt;&lt;P&gt;Write fm's only when u think it can be used in many number of applications.&lt;/P&gt;&lt;P&gt;For eg: date conversion..it can be written as an fm as it can be used in many applications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope u understood this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Simy Abraham.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 09:42:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-experts/m-p/2831358#M662707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T09:42:08Z</dc:date>
    </item>
  </channel>
</rss>

