<?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 fun mod in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fun-mod/m-p/3366888#M807978</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to handle errors in function modules&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;what is defference between function modules and subroutines&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Feb 2008 14:04:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-01T14:04:19Z</dc:date>
    <item>
      <title>fun mod</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fun-mod/m-p/3366888#M807978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to handle errors in function modules&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;what is defference between function modules and subroutines&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2008 14:04:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fun-mod/m-p/3366888#M807978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-01T14:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: fun mod</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fun-mod/m-p/3366889#M807979</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;difference between function module and subroutine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fun modules are global programs &lt;/P&gt;&lt;P&gt;where as subroutines are LOCAL to a program&lt;/P&gt;&lt;P&gt;fun modules return values where as subroutines are not&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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBROUTINES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;definition&lt;/P&gt;&lt;P&gt;PERFORM FETCH_DATA using p1 p2&lt;/P&gt;&lt;P&gt;tables itab&lt;/P&gt;&lt;P&gt;changing p_v1&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;FORM FETCH_DATA using...tables...changing..&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;&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>Fri, 01 Feb 2008 14:09:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fun-mod/m-p/3366889#M807979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-01T14:09:46Z</dc:date>
    </item>
  </channel>
</rss>

