<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2345746#M517405</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is correct only just think in respective of the program as well as as respective of the fn module. Suppose you are exporting some value through fn module from abap editor by call fn. in respect of abap editor you are passing the value from abap editor. Now think in respect of the fn module it will take the value from your prog and do the processing as per the source code of the fm so it must be the import parameter for function module(se37).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jun 2007 12:28:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-15T12:28:02Z</dc:date>
    <item>
      <title>function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2345742#M517401</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;Pls answer my questiion.&lt;/P&gt;&lt;P&gt;" While calling function module , the import parameters become export parameters in a calling program , why this is so"&lt;/P&gt;&lt;P&gt;pls  send me detail explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 12:19:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2345742#M517401</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T12:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2345743#M517402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you take a Func. Module in SE37, there will be import and export parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means 'Import' to the Func. Module &amp;amp; &lt;/P&gt;&lt;P&gt;'Export' from the func. Module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you call the same Func. Module from Program, it is the other way.&lt;/P&gt;&lt;P&gt;You are 'Exporting' somedata to the called function module which is defined as 'Importing' inthe Func. Module  &amp;amp; vice versa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 12:23:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2345743#M517402</guid>
      <dc:creator>former_member150733</dc:creator>
      <dc:date>2007-06-15T12:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2345744#M517403</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;Let suppose -- you wrote a program and calling a function module for summing two variable and result in third variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say you need to do  C = A + B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now from your program you need to send A and B values to Function module&lt;/P&gt;&lt;P&gt;I.E you are exporting these A and B from program to FM..&lt;/P&gt;&lt;P&gt;so A and B becomes Exporting parameters in your program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FM get the Values of A amd B, i.e Fm is importing the values of A and B from the program to itself..and A and B becomes the importing values in FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where as C you are passing a blank values from the program and calculationg c = A + B in FM so C is changing its values and thus C can be changing parameter..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understood&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rewards if useful,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rergards,&lt;/P&gt;&lt;P&gt;nazeer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 12:25:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2345744#M517403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T12:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2345745#M517404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  refer sap help&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/d1/801f50454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/d1/801f50454211d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name&lt;/P&gt;&lt;P&gt;Explanation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import&lt;/P&gt;&lt;P&gt;Values transferred from the calling program to the function module. You cannot overwrite the contents of import parameters at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Export&lt;/P&gt;&lt;P&gt;Values transferred from the function module back to the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changing&lt;/P&gt;&lt;P&gt;Values that act as import and export parameters simultaneously. The original value of a changing parameter is transferred from the calling program to the function module. The function module can alter the initial value and send it back to the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables&lt;/P&gt;&lt;P&gt;Internal tables that can be imported and exported. The internal table's contents are transferred from the calling program to the function module. The function module can alter the contents of the internal table and then send it back to the calling program. Tables are always passed by reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exceptions&lt;/P&gt;&lt;P&gt;Error situations that can occur within the function module. &lt;/P&gt;&lt;P&gt;The calling program uses exceptions to find out if an error has occurred in the function module. It can then react accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 12:26:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2345745#M517404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T12:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2345746#M517405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is correct only just think in respective of the program as well as as respective of the fn module. Suppose you are exporting some value through fn module from abap editor by call fn. in respect of abap editor you are passing the value from abap editor. Now think in respect of the fn module it will take the value from your prog and do the processing as per the source code of the fm so it must be the import parameter for function module(se37).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 12:28:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2345746#M517405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T12:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2345747#M517406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;A function module is required in order to give some output depending upon some data which is supplied to it.&lt;/P&gt;&lt;P&gt;In other words,the parameters it requires to work and give some output are called IMPORTING parameters for the Function Module alone.&lt;/P&gt;&lt;P&gt;The output parameters which the FM gives are called EXPORTING parameters for the FM alone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if you call the FM in any program of yours,then you have to think from the program point of view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case the program is expecting some output from the FM.The output values from the FM are nothing but teh FM EXPORTING parameters,but if you look from the program point of view,the program is trying to import the EXPORTING parameters from FM,hence from program point of view the EXPORTING parameters become the IMPORTING parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same can be said for the IMPORTING parameters of the FM,where the program EXPORTS values to the FM to work on.Hence the diference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it the explanation will be useful to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 12:31:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2345747#M517406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T12:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2345748#M517407</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 FM's we have import and export parameters&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; import - which accepts input to FM's&lt;/P&gt;&lt;P&gt; export - which passes result as o/p to calling area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when we consider in view of reports&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; import - which accepts input . but here we are calling FM&lt;/P&gt;&lt;P&gt; export- generally passing data i/p.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but our input[EXPORT] parameters becomes input [IMPORT] to Fm because we are passing input to FM means pasing data outside outside which is EXPORTING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; and similarly in reports weaccept data from FM [EXPORT] parameters as a resultant o/p [IMPORT] to our reports.&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.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2007 12:32:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2345748#M517407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-15T12:32:13Z</dc:date>
    </item>
  </channel>
</rss>

