<?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: Creating Function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-function-module/m-p/1924811#M383891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi KP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this links perhaps they may help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/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/9f/db98fc35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm&lt;/A&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Feb 2007 18:25:29 GMT</pubDate>
    <dc:creator>ferry_lianto</dc:creator>
    <dc:date>2007-02-16T18:25:29Z</dc:date>
    <item>
      <title>Creating Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-function-module/m-p/1924805#M383885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi can anybody give me the steps to create a function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;KP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 16:57:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-function-module/m-p/1924805#M383885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T16:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-function-module/m-p/1924806#M383886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI KP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to SE37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the menu..GOTO -&amp;gt; FUNCTION GROUPS -&amp;gt; CREATE GROUP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the function group name as z_group_name ..give the description..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( function modules are grouped together which r related to one project or object to pass the data )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create a FM with z_name in se37 initial screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to &amp;lt;b&amp;gt;Import&amp;lt;/b&amp;gt; Parameter tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;provide details:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;parameter  type  Associated type    default&lt;/P&gt;&lt;P&gt;a          type        i              10&lt;/P&gt;&lt;P&gt;b          type        i              20&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to &amp;lt;b&amp;gt;export&amp;lt;/b&amp;gt; tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;parameter  type  Associated type&lt;/P&gt;&lt;P&gt;res        type        i&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to &amp;lt;b&amp;gt;source code&amp;lt;/b&amp;gt; tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;write res = a + b.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;save , activate and execute...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is simple program to build FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;according to ur requirement u can explore urself&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;SAB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 17:02:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-function-module/m-p/1924806#M383886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T17:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-function-module/m-p/1924807#M383887</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;1)&lt;/P&gt;&lt;P&gt;First create a function group..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to se37..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the menu..GOTO -&amp;gt; FUNCTION GROUPS -&amp;gt; CREATE GROUP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the function group name Ex: Z_TEST_FGROUP ..And then give the description..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) FM creation..&lt;/P&gt;&lt;P&gt;Go to SE37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the function module name..Example. Z_TEST_FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Press create..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the FUnction group name..And then description..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the import parameters tab, give the input parameters.  &lt;/P&gt;&lt;P&gt;Exa. P_MATNR  TYPE MATNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In th exporting parameters tab, give the output parameters.. &lt;/P&gt;&lt;P&gt;Ex: S_MARA TYPE MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the exceptions tab, give the list of exceptions.&lt;/P&gt;&lt;P&gt;EX: NO_MATERIAL_FOUND Material not found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the source code tabl. Use the INput parameter to get the value and place in the output parameters.&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt; SELECT SINGLE * FROM MARA&lt;/P&gt;&lt;P&gt;               INTO S_MARA    " output parameter&lt;/P&gt;&lt;P&gt;               WHERE MATNR = P_MATNR . " Input parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;   RAISE NO_MATERIAL_FOUND.  " Exception..&lt;/P&gt;&lt;P&gt; ENDIF.&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;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 17:03:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-function-module/m-p/1924807#M383887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T17:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-function-module/m-p/1924808#M383888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this...&amp;lt;a href="http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm"&amp;gt;Creating a Function module&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 17:03:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-function-module/m-p/1924808#M383888</guid>
      <dc:creator>former_member187255</dc:creator>
      <dc:date>2007-02-16T17:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-function-module/m-p/1924809#M383889</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;first a function griup is to be created and thena function module..&lt;/P&gt;&lt;P&gt;below is the link which is self_explanatory..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps u a bit,&lt;/P&gt;&lt;P&gt;all the best,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sampath&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;mark helpful answers&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 17:05:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-function-module/m-p/1924809#M383889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T17:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-function-module/m-p/1924810#M383890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi KP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Documentation&lt;/P&gt;&lt;P&gt;The documentation describes the purpose of the function module, lists the parameters&lt;/P&gt;&lt;P&gt;for passing data to and from the module, and the exceptions. It tells you how you can&lt;/P&gt;&lt;P&gt;pass data to and from the function module, and which errors it handles.&lt;/P&gt;&lt;P&gt;2) Interface parameters and exceptions&lt;/P&gt;&lt;P&gt;This section provides further information about the interface parameters and exceptions,&lt;/P&gt;&lt;P&gt;and how to use the function module. For further information, refer to Displaying&lt;/P&gt;&lt;P&gt;Information about Interface Parameters [Ext.] in the ABAP Workbench documentation.&lt;/P&gt;&lt;P&gt;Function modules can have the following interface parameters:  &lt;/P&gt;&lt;P&gt;3) Import parameters. These must be supplied with data when you call the function module,&lt;/P&gt;&lt;P&gt;unless they are flagged as optional. You cannot change them in the function module.&lt;/P&gt;&lt;P&gt;4) Export parameters. These pass data from the function module back to the calling program.&lt;/P&gt;&lt;P&gt;Export parameters are always optional. You do not have to receive them in your program.&lt;/P&gt;&lt;P&gt;5) Changing parameters. These must be supplied with data when you call the function module,&lt;/P&gt;&lt;P&gt;unless they are flagged as optional. They can be changed in the function module. The&lt;/P&gt;&lt;P&gt;changed values are then returned to the calling program.&lt;/P&gt;&lt;P&gt;6) Tables parameters. You use these to pass internal tables. They are treated like CHANGING&lt;/P&gt;&lt;P&gt;parameters. However, you can also pass internal tables with other parameters if you specify&lt;/P&gt;&lt;P&gt;the parameter type appropriately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the EXCEPTIONS option to handle the exceptions of the function module. If an&lt;/P&gt;&lt;P&gt;exception &amp;lt;ei&amp;gt; is raised while the function module is running, the system terminates the function&lt;/P&gt;&lt;P&gt;module and does not pass any values from the function module to the program, except those that&lt;/P&gt;&lt;P&gt;were passed by reference. If &amp;lt;ei&amp;gt; is specified in the EXCEPTION option, the calling program&lt;/P&gt;&lt;P&gt;handles the exception by assigning &amp;lt;ri&amp;gt; to SY-SUBRC. &amp;lt;ri&amp;gt; must be a numeric literal.&lt;/P&gt;&lt;P&gt;If you specify of ERROR_MESSAGE in the exception list you can influence the message&lt;/P&gt;&lt;P&gt;handling of function modules. Normally, you should only call messages in function modules using&lt;/P&gt;&lt;P&gt;the MESSAGE ... RAISING statement. With ERROR_MESSAGE you can force the system to&lt;/P&gt;&lt;P&gt;treat messages that are called without the RAISING option in a function module as follows:&lt;/P&gt;&lt;P&gt;  Messages of classes S, I, and W are ignored (but written to the log in a background job).&lt;/P&gt;&lt;P&gt;  Messages of classes E and A stop the function module as if the exception&lt;/P&gt;&lt;P&gt;ERROR_MESSAGE had occurred (SY-SUBRC is set to &amp;lt;rE&amp;gt;).&lt;/P&gt;&lt;P&gt;If you specify OTHERS after EXCEPTIONS, the system assigns a single return code to all other&lt;/P&gt;&lt;P&gt;exceptions that you have not specified explicitly in the list.&lt;/P&gt;&lt;P&gt;You can use the same number &amp;lt;ri&amp;gt; for several exceptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sreeni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 17:52:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-function-module/m-p/1924810#M383890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T17:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-function-module/m-p/1924811#M383891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi KP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this links perhaps they may help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/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/9f/db98fc35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm&lt;/A&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 18:25:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-function-module/m-p/1924811#M383891</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-02-16T18:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-function-module/m-p/1924812#M383892</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;Please make sure to reward points for helpful answers. And close the thread if the question is answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 19:22:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-function-module/m-p/1924812#M383892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T19:22:25Z</dc:date>
    </item>
  </channel>
</rss>

