<?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 modules in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2178126#M462857</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Modules are Global ABAP programs created by SAP for reusable purpose. They have IMPORT, EXPORT and TABLE parameters, and EXCEPTIONS to through when error occurs.&lt;/P&gt;&lt;P&gt;You can create them from TCode SE37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through the following doc:&lt;/P&gt;&lt;P&gt;Function modules are cross-program, reusable procedures that are organized into function groups, and whose functions are implemented between the statements FUNCTION and ENDFUNCTION. Function modules and their interfaces are created in the Function Builder. &lt;/P&gt;&lt;P&gt;Function Module Interfaces &lt;/P&gt;&lt;P&gt;The parameter interface of a function module is defined in the Function Builder. It includes the definition of interface parameters and the specification of exceptions that can be triggered by a function module. The Function Builder automatically generates comment lines below the FUNCTION statement in the source code of the function module, which represent the interface of the function module with the following syntax: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;... [IMPORTING parameters] &lt;/P&gt;&lt;P&gt;[EXPORTING parameters] &lt;/P&gt;&lt;P&gt;[CHANGING parameters] &lt;/P&gt;&lt;P&gt;[TABLES table_parameters] &lt;/P&gt;&lt;P&gt;[{RAISING|EXCEPTIONS} exc1 exc2 ...] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax and semantics of IMPORTING, EXPORTING, CHANGING, RAISING, and EXCEPTIONS mainly correspond to the definition of method interfaces with [CLASS-]METHODS. The additional option of defining table parameters using TABLES is obsolete. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interface parameters &lt;/P&gt;&lt;P&gt;The interface parameters are defined on the relevant tab pages in the Function Builder. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORTING parameters are input parameters. When the function module is called, a suitable actual parameter must be specified for every non-optional input parameter. The content of the actual parameter is passed to the input parameter when the call is made. The content of an input parameter for which 'pass by reference' is defined cannot be changed in the function module. &lt;/P&gt;&lt;P&gt;EXPORTING parameters are output parameters. When the function module is called, a suitable actual parameter can be specified for every output parameter. The content of an output parameter that is defined for 'pass by value' is transferred to the actual parameter if the function module is completed without errors. An output parameter that is defined for pass by reference is not initialized when the function module is called. &lt;/P&gt;&lt;P&gt;CHANGING parameters are input and output parameters. When the function module is called, a suitable actual parameter must be specified for every non-optional input or output parameter. When the function module is called, the content of the actual parameter is passed to the input/output parameter, and when the function module is completed, the content of the input/output parameter is passed to the actual parameter. &lt;/P&gt;&lt;P&gt;TABLES parameters are table parameters. Table parameters are obsolete CHANGING parameters that are typed as standard tables with a header line. If an internal table without a header line or a table body is passed as an actual parameter to a formal parameter of this type, an empty local header line is generated in the function module. If an internal table with a header line is used as an actual parameter, both the table body and the header line are passed to the function module. Pass by value is not possible in formal parameters defined using TABLES. Formal parameters defined with TABLES can be replaced by formal parameters defined with CHANGING. A local work area can be created for the internal table in the function module by using the addition LIKE LINE OF itab of the DATA statement. &lt;/P&gt;&lt;P&gt;Exceptions &lt;/P&gt;&lt;P&gt;The exceptions of a function module are defined on the Exceptions tab page in the Function Builder. Here you can select exception classes to define whether class-based exceptions are declared or non-class-based exception is defined. Class-based exceptions are represented in the above syntax by RAISING, and non-class-based exceptions are represented by EXCEPTIONS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALLING A FUNCTION MODULE:&lt;/P&gt;&lt;P&gt;1)In U ABAP Editor --&amp;gt; Click "Patter" ---&amp;gt; Selection Option Button "Call Function"&lt;/P&gt;&lt;P&gt;--&amp;gt; Write the Corresponding FM name --&amp;gt; Hit Enter&lt;/P&gt;&lt;P&gt;2)The appropriate import ,export Parameters will be displayed in ur editor&lt;/P&gt;&lt;P&gt;3)Pass the Values Here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/d94b78ebf811d295b100a0c94260a5/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/d94b78ebf811d295b100a0c94260a5/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this resolves your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward all the helpful answers.&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>Wed, 09 May 2007 06:37:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-09T06:37:19Z</dc:date>
    <item>
      <title>function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2178123#M462854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the function module? what is the use of functin module in abap?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 05:44:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2178123#M462854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T05:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2178124#M462855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Function Module is one of the modularization techniques.&lt;/P&gt;&lt;P&gt;similar to funstions in C, C++&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is some code which is getting repeated many no. of times in ur code. then u will write that code in a FM and u will call tat FM where ever that code is getting repeated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Funtion Modules, Routines, Includes are all comes under the modularization techniques.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Award if uesful,&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 05:47:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2178124#M462855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T05:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2178125#M462856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sandya, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Function modules in ABAP are one of the modularization techniques . Here you write a block of code for a specific function or operation. You have import parameters , export parameters, tables , exceptions involved in function modules .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Function modules are reusable in programs .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Ranjita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 06:16:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2178125#M462856</guid>
      <dc:creator>former_member196299</dc:creator>
      <dc:date>2007-05-09T06:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2178126#M462857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Modules are Global ABAP programs created by SAP for reusable purpose. They have IMPORT, EXPORT and TABLE parameters, and EXCEPTIONS to through when error occurs.&lt;/P&gt;&lt;P&gt;You can create them from TCode SE37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through the following doc:&lt;/P&gt;&lt;P&gt;Function modules are cross-program, reusable procedures that are organized into function groups, and whose functions are implemented between the statements FUNCTION and ENDFUNCTION. Function modules and their interfaces are created in the Function Builder. &lt;/P&gt;&lt;P&gt;Function Module Interfaces &lt;/P&gt;&lt;P&gt;The parameter interface of a function module is defined in the Function Builder. It includes the definition of interface parameters and the specification of exceptions that can be triggered by a function module. The Function Builder automatically generates comment lines below the FUNCTION statement in the source code of the function module, which represent the interface of the function module with the following syntax: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;... [IMPORTING parameters] &lt;/P&gt;&lt;P&gt;[EXPORTING parameters] &lt;/P&gt;&lt;P&gt;[CHANGING parameters] &lt;/P&gt;&lt;P&gt;[TABLES table_parameters] &lt;/P&gt;&lt;P&gt;[{RAISING|EXCEPTIONS} exc1 exc2 ...] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax and semantics of IMPORTING, EXPORTING, CHANGING, RAISING, and EXCEPTIONS mainly correspond to the definition of method interfaces with [CLASS-]METHODS. The additional option of defining table parameters using TABLES is obsolete. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interface parameters &lt;/P&gt;&lt;P&gt;The interface parameters are defined on the relevant tab pages in the Function Builder. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORTING parameters are input parameters. When the function module is called, a suitable actual parameter must be specified for every non-optional input parameter. The content of the actual parameter is passed to the input parameter when the call is made. The content of an input parameter for which 'pass by reference' is defined cannot be changed in the function module. &lt;/P&gt;&lt;P&gt;EXPORTING parameters are output parameters. When the function module is called, a suitable actual parameter can be specified for every output parameter. The content of an output parameter that is defined for 'pass by value' is transferred to the actual parameter if the function module is completed without errors. An output parameter that is defined for pass by reference is not initialized when the function module is called. &lt;/P&gt;&lt;P&gt;CHANGING parameters are input and output parameters. When the function module is called, a suitable actual parameter must be specified for every non-optional input or output parameter. When the function module is called, the content of the actual parameter is passed to the input/output parameter, and when the function module is completed, the content of the input/output parameter is passed to the actual parameter. &lt;/P&gt;&lt;P&gt;TABLES parameters are table parameters. Table parameters are obsolete CHANGING parameters that are typed as standard tables with a header line. If an internal table without a header line or a table body is passed as an actual parameter to a formal parameter of this type, an empty local header line is generated in the function module. If an internal table with a header line is used as an actual parameter, both the table body and the header line are passed to the function module. Pass by value is not possible in formal parameters defined using TABLES. Formal parameters defined with TABLES can be replaced by formal parameters defined with CHANGING. A local work area can be created for the internal table in the function module by using the addition LIKE LINE OF itab of the DATA statement. &lt;/P&gt;&lt;P&gt;Exceptions &lt;/P&gt;&lt;P&gt;The exceptions of a function module are defined on the Exceptions tab page in the Function Builder. Here you can select exception classes to define whether class-based exceptions are declared or non-class-based exception is defined. Class-based exceptions are represented in the above syntax by RAISING, and non-class-based exceptions are represented by EXCEPTIONS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALLING A FUNCTION MODULE:&lt;/P&gt;&lt;P&gt;1)In U ABAP Editor --&amp;gt; Click "Patter" ---&amp;gt; Selection Option Button "Call Function"&lt;/P&gt;&lt;P&gt;--&amp;gt; Write the Corresponding FM name --&amp;gt; Hit Enter&lt;/P&gt;&lt;P&gt;2)The appropriate import ,export Parameters will be displayed in ur editor&lt;/P&gt;&lt;P&gt;3)Pass the Values Here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/d94b78ebf811d295b100a0c94260a5/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/d94b78ebf811d295b100a0c94260a5/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this resolves your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward all the helpful answers.&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>Wed, 09 May 2007 06:37:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2178126#M462857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T06:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2178127#M462858</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 Modules&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;Function modules are procedures that are defined in special ABAP programs only, so-called function groups, but can be called from all ABAP programs. Function groups act as containers for function modules that logically belong together. You create function groups and function modules in the ABAP Workbench using the Function Builder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function modules allow you to encapsulate and reuse global functions in the SAP System. They are managed in a central function library. The SAP System contains several predefined functions modules that can be called from any ABAP program. Function modules also play an important role during updating  and in interaction between different SAP systems, or between SAP systems and remote systems through remote communications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unlike subroutines, you do not define function modules in the source code of your program. Instead, you use the Function Builder. The actual ABAP interface definition remains hidden from the programmer. You can define the input parameters of a function module as optional. You can also assign default values to them. Function modules also support exception handling. This allows you to catch certain errors while the function module is running. You can test function modules without having to include them in a program using the Function Builder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Function Builder  also has a release process for function modules. This ensures that incompatible changes cannot be made to any function modules that have already been released. This applies particularly to the interface. Programs that use a released function module will not cease to work if the function module is changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps u..&lt;/P&gt;&lt;P&gt;****reward points if useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 06:46:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2178127#M462858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T06:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2178128#M462859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; hope, it will be useful for u..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function modules are ABAP routines that are stored in a central function library.The ABAP Workbench comes with a large number of standard function modules.The function modules encapsulate program code, and provide an interface for data exchange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Function modules must belong to a pool called a function group.  &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;They possess a fixed interface for data exchange. This makes it easier for you to pass   input and output parameters to and from the function module&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;You call a function module by its name (which must be unique) in a CALL FUNCTION   statement.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function modules play an important role in the modularization of applications. You can use them to encapsulate a particular function or group of related functions.The Modularization allows you to avoid redundancy. It also makes your programs easier to read and understand.Modularized programs are easier to maintain and keep up-to-date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt; Gopinathan.T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 07:06:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2178128#M462859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T07:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2178129#M462860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandhya&lt;/P&gt;&lt;P&gt;      Function modules are mainly used for "Code Reusability"....If once you wrote a peice of code for a particular program say&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//sum&lt;/P&gt;&lt;P&gt;int a ,b,result.&lt;/P&gt;&lt;P&gt;result =a+b.&lt;/P&gt;&lt;P&gt;print result.&lt;/P&gt;&lt;P&gt;if suppose you want to use the same code in some other program,u no need to write it again,you can save the memory capacity as well as time.&lt;/P&gt;&lt;P&gt;Same way ABAP also has function modules which performs many functions which is used in other programs too...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD PLEASE...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 08:32:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2178129#M462860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T08:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2178130#M462861</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;U have to &amp;lt;b&amp;gt;award points for useful answers&amp;lt;/b&amp;gt; and u have to mention it as &amp;lt;b&amp;gt;Solved&amp;lt;/b&amp;gt; if ur question is solved. Dont forget. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 09:32:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2178130#M462861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T09:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2178131#M462862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function module is just like a procedure to call from a report program.&lt;/P&gt;&lt;P&gt;It does very imp roles in SAP-ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For that you need to go through the whole link below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rama chary.Pammi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 12:46:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2178131#M462862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T12:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2178132#M462863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Function modules are procedures that are defined in function groups (special ABAP programs with type F) and can be called from any ABAP program. Function groups act as containers for function modules that logically belong together. You create function groups and function modules in the ABAP Workbench using the Function Builder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function modules allow you to encapsulate and reuse global functions in the R/3 System. They are stored in a central library. The R/3 System contains a wide range of predefined function modules that you can call from any ABAP program. 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;Unlike subroutines, you do not define function modules in the source code of your program. Instead, you use the Function Builder. The actual ABAP interface definition remains hidden from the programmer. You can define the input parameters of a function module as optional. You can also assign default values to them. Function modules also support exception handling. This allows you to catch certain errors while the function module is running. You can test function modules without having to include them in a program using the Function Builder. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Function Builder also has a release process for function modules. This ensures that incompatible changes cannot be made to any function modules that have already been released. This applies particularly to the interface. Programs that use a released function module will not cease to work if the function module is changed. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Function Builder: Transaction code SE37: The Function Builder allows you to create, test, and administer function modules in an integrated environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. A sample program to use function module in ABAP code&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;PROGRAM CALL_FUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: TEXT(10) TYPE C VALUE '0123456789',&lt;/P&gt;&lt;P&gt;      TEXT1(6) TYPE C,&lt;/P&gt;&lt;P&gt;      TEXT2(6) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS POSITION TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'STRING_SPLIT_AT_POSITION'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          STRING            =  TEXT&lt;/P&gt;&lt;P&gt;          POS               =  POSITION&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;          STRING1           =  TEXT1&lt;/P&gt;&lt;P&gt;          STRING2           =  TEXT2&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;          STRING1_TOO_SMALL = 1&lt;/P&gt;&lt;P&gt;          STRING2_TOO_SMALL = 2&lt;/P&gt;&lt;P&gt;          POS_NOT_VALID     = 3&lt;/P&gt;&lt;P&gt;          OTHERS            = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE SY-SUBRC.&lt;/P&gt;&lt;P&gt;  WHEN 0.&lt;/P&gt;&lt;P&gt;    WRITE: / TEXT, / TEXT1, / TEXT2.&lt;/P&gt;&lt;P&gt;  WHEN 1.&lt;/P&gt;&lt;P&gt;    WRITE 'Target field 1 too short!'.&lt;/P&gt;&lt;P&gt;  WHEN 2.&lt;/P&gt;&lt;P&gt;    WRITE 'Target field 2 too short!'.&lt;/P&gt;&lt;P&gt;  WHEN 3.&lt;/P&gt;&lt;P&gt;    WRITE 'Invalid split position!'.&lt;/P&gt;&lt;P&gt;  WHEN 4.&lt;/P&gt;&lt;P&gt;    WRITE 'Other errors!'.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this sort out your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS If the answer solves your query, plz close the thread by rewarding each reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 13:17:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2178132#M462863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T13:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2178133#M462864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The basic functions in all other languages is the same concept for function modules also..One thing here when we call the function modules means it will itself come up wth the values what we want give(Export and import)along with the exceptions which we defined in it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once we have created a function module it can be used in all abap pgms&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 04:11:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2178133#M462864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-10T04:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2178134#M462865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 05:37:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules/m-p/2178134#M462865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T05:37:55Z</dc:date>
    </item>
  </channel>
</rss>

