<?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: How to write function modules in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-function-modules/m-p/3424471#M822406</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Welcome to SDN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer the link -&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/d1/801ee8454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/d1/801ee8454211d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Feb 2008 12:51:32 GMT</pubDate>
    <dc:creator>amit_khare</dc:creator>
    <dc:date>2008-02-21T12:51:32Z</dc:date>
    <item>
      <title>How to write function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-function-modules/m-p/3424470#M822405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I m a beginner in ABAP .Any one please help me with some tutorials with minimum theory  on how to write simple function modules?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 12:46:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-function-modules/m-p/3424470#M822405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-21T12:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to write function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-function-modules/m-p/3424471#M822406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Welcome to SDN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer the link -&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/d1/801ee8454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/d1/801ee8454211d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 12:51:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-function-modules/m-p/3424471#M822406</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2008-02-21T12:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to write function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-function-modules/m-p/3424472#M822407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check ABAPDOCU for more details...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 12:55:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-function-modules/m-p/3424472#M822407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-21T12:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to write function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-function-modules/m-p/3424473#M822408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Function modules are special external subroutines(program type F)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function modules are classified in function groups and stored in the Function Library. Function groups act as containers for function modules that logically belong together. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function modules allow us to encapsulate and reuse global functions in the R/3 System. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function modules also play an important role in database updates and in remote communications between R/3 Systems or between an R/3 System and a non-SAP system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The R/3 System provides numerous predefined function modules that we can call from your ABAP/4 programs. We can also create your own function modules using Function Builder. (Transaction Code SE 37)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function groups are containers for function modules. &lt;/P&gt;&lt;P&gt;We cannot execute a function group. When we call a function module, the system loads the whole of its function group into the internal session of the calling program (if it has not already been loaded). &lt;/P&gt;&lt;P&gt;Function group names are freely definable up to a maximum length of 26 alphanumeric characters. &lt;/P&gt;&lt;P&gt;When we create a function group or function module in the Function Builder , the main program and include programs are generated automatically. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New function groups can be created from the menu  Goto - Function Group -  Create&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To program a function module, we must include our statements between the FUNCTION and ENDFUNCTION  statements as follows:&lt;/P&gt;&lt;P&gt;Syntax : FUNCTION &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;		&amp;lt;statements&amp;gt;&lt;/P&gt;&lt;P&gt;	   ENDFUNCTION &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An existing Function Module can be inserted into ABAP Code using Edit - Pattern&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;components of fm:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import:	Values transferred from the calling program to the function module.You cannot&lt;/P&gt;&lt;P&gt; overwrite the contents of import parameters at runtime.&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;Export:	Values transferred from the function module back to the calling program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changing :Values that act as import and export parameters simultaneously. The original &lt;/P&gt;&lt;P&gt;value of a changing parameter is transferred from the calling program to the function module.&lt;/P&gt;&lt;P&gt; 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:	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:Error situations that can occur within the function module.  The calling program uses exceptions to find out if an error has occurred in the &lt;/P&gt;&lt;P&gt;function module. It can then react accordingly.	&lt;/P&gt;&lt;P&gt;CREATING FM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check whether a suitable function module already exists. &lt;/P&gt;&lt;P&gt;	If not, create one as follows. &lt;/P&gt;&lt;P&gt;Create a function group, if no appropriate group exists yet. &lt;/P&gt;&lt;P&gt;Create the function module. &lt;/P&gt;&lt;P&gt;Define the function module interface by entering its parameters and&lt;/P&gt;&lt;P&gt; 	exceptions. &lt;/P&gt;&lt;P&gt;Write the actual ABAP code for the function module, adding any relevant &lt;/P&gt;&lt;P&gt;     global data to the TOP include. &lt;/P&gt;&lt;P&gt;Activate the module. &lt;/P&gt;&lt;P&gt;Test the module. &lt;/P&gt;&lt;P&gt;Document the module and its parameters for other users. &lt;/P&gt;&lt;P&gt;Release the module for general use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Function Builder allows us to create, test, and administer function modules in an integrated environment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOPE IT IS USEFUL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS,&lt;/P&gt;&lt;P&gt;SREELAKSHMI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 12:57:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-function-modules/m-p/3424473#M822408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-21T12:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to write function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-function-modules/m-p/3424474#M822409</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;see this link for function modules creation.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;for internal tables and work areas.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3660358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3660358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 21, 2008 11:14 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 13:10:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-function-modules/m-p/3424474#M822409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-21T13:10:10Z</dc:date>
    </item>
  </channel>
</rss>

