<?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 Create Function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module/m-p/2192288#M467481</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function modules are members of function groups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SE80, choose object type function groups, enter name, create.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then rigth mouse-click on group name in tree, create function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enter name and interface fields as required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enter source code as required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Activate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Apr 2007 16:15:09 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2007-04-30T16:15:09Z</dc:date>
    <item>
      <title>How To Create Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module/m-p/2192282#M467475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any one Please Explain me How to create a Function Module. What are the steps involved What are the T- Codes For that Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kiran.B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 15:04:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module/m-p/2192282#M467475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T15:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: How To Create Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module/m-p/2192283#M467476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;se37 is the tcode to work with&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 15:05:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module/m-p/2192283#M467476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T15:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: How To Create Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module/m-p/2192284#M467477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;goto se37...here u need to create a function group... then u need to create a function module. inside assign import/export parameters. assign tables/exceptions. activate the same. now write ur code within the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check..&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 15:06:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module/m-p/2192284#M467477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T15:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: How To Create Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module/m-p/2192285#M467478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;Look at the below SAP HELP links, These links will show you the way to create a  Function Module&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;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 15:06:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module/m-p/2192285#M467478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T15:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: How To Create Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module/m-p/2192286#M467479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kiran ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;se37 -&amp;gt; create -&amp;gt; fill all the records....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if Helpfull&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chitrakant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 15:08:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module/m-p/2192286#M467479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T15:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: How To Create Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module/m-p/2192287#M467480</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; Refer this link,&lt;/P&gt;&lt;P&gt;    &lt;A href="http://help.sap.com/saphelp_47x200/helpdata/EN/9f/db988735c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/EN/9f/db988735c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 16:00:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module/m-p/2192287#M467480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T16:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: How To Create Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module/m-p/2192288#M467481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function modules are members of function groups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SE80, choose object type function groups, enter name, create.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then rigth mouse-click on group name in tree, create function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enter name and interface fields as required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enter source code as required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Activate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 16:15:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module/m-p/2192288#M467481</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-04-30T16:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: How To Create Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module/m-p/2192289#M467482</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;T-code for Function Module : SE37&lt;/P&gt;&lt;P&gt;You can only create function modules and function groups using the Function Builder in the ABAP Workbench.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example to illustrate how a function module is created from the point of view of&lt;/P&gt;&lt;P&gt;ABAP programming:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Firstly, we create a new function group DEMO_SPFLI to hold the function module.Then, we can create the new function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. You can specify the types of interface parameters in function modules in the&lt;/P&gt;&lt;P&gt;same way as the parameter interfaces of subroutines. Since function&lt;/P&gt;&lt;P&gt;modules can be used anywhere in the system, their interfaces can only contain&lt;/P&gt;&lt;P&gt;references to data types that are declared systemwide.&lt;/P&gt;&lt;P&gt;The function module READ_SPFLI_INTO_TABLE requires an import parameter&lt;/P&gt;&lt;P&gt;to restrict the selection to a single airline. To specify the type, we can refer to the&lt;/P&gt;&lt;P&gt;key field CARRID of the database SPFLI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. To pass data back to the calling program, the function module needs an export&lt;/P&gt;&lt;P&gt;parameter with the type of an internal table. For this, we define a systemwide&lt;/P&gt;&lt;P&gt;table type SPFLI_TAB with the line type SPFLI in the ABAP Dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Our function module needs an exception that it can trigger if there are no entries&lt;/P&gt;&lt;P&gt;in table SPFLI that meet the selection criterion. The exception NOT_FOUND&lt;/P&gt;&lt;P&gt;serves this function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Having defined the parameter interface and exceptions, we can now write the&lt;/P&gt;&lt;P&gt;source code of our function module. To do this, choose Source code in the&lt;/P&gt;&lt;P&gt;Function Builder. This opens the ABAP Editor for the include program&lt;/P&gt;&lt;P&gt;L&amp;lt;fgrp&amp;gt;U&amp;lt;xx&amp;gt;. This is the include that will hold the program code for the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following program calls the function module READ_SPFLI_INTO_TABLE:&lt;/P&gt;&lt;P&gt;REPORT DEMO_FUNCTION_MODULE.&lt;/P&gt;&lt;P&gt;PARAMETERS CARRIER TYPE S_CARR_ID.&lt;/P&gt;&lt;P&gt;DATA: JTAB TYPE SPFLI_TAB,&lt;/P&gt;&lt;P&gt;WA LIKE LINE OF JTAB.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'READ_SPFLI_INTO_TABLE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;ID = CARRIER&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;ITAB = JTAB&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;NOT_FOUND = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;CASE SY-SUBRC.&lt;/P&gt;&lt;P&gt;WHEN 1.&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO.&lt;/P&gt;&lt;P&gt;WHEN 2.&lt;/P&gt;&lt;P&gt;MESSAGE E702(AT).&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;LOOP AT JTAB INTO WA.&lt;/P&gt;&lt;P&gt;WRITE: / WA-CARRID, WA-CONNID, WA-CITYFROM, WA-CITYTO.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;The actual parameters CARRIER and JTAB have the same data types as their&lt;/P&gt;&lt;P&gt;corresponding interface parameters in the function module. The exception&lt;/P&gt;&lt;P&gt;NOT_FOUND is handled in the program. It displays the same message that the&lt;/P&gt;&lt;P&gt;function module would have displayed had it handled the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 16:45:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module/m-p/2192289#M467482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T16:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: How To Create Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module/m-p/2192290#M467483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must first create a function group. Go to SE80, choose Function group from drop down list box. Enter the name of your function group, make sure it starts with "Z" or "Y". Hit enter, system will ask you if you want to create it, say yes. Give description, assign package(dev class) Now it is created, you can start creating function modules underneath. right click on the function group node on the tree to the left. Choose create, function module, give name and desription. Click green check. Now you need to put any import parameters, export parameters and the source code of the function module. Save and activate all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward helpful answers&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 17:29:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module/m-p/2192290#M467483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T17:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: How To Create Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module/m-p/2192291#M467484</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;Check the following Methods&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow the steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GO to transaction SE80.In the drop box list select function group enter your Z Function group name.Press enter it will ask for creating the function group.Create your function group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SE37 transaction,in the menu bar Goto - &amp;gt; Function Group - &amp;gt; Create Group.Your Function Group will be created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to transaction SE37.Enter your Z Function module name,your recently created function group name and the description.Press Enter.Now your FM is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter Export,Import parameters.In the source code tab write the code what you want to write.If any exception write in the exception tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method 2)&lt;/P&gt;&lt;P&gt;First u have to create Function Group.&lt;/P&gt;&lt;P&gt;1.se37&lt;DEL&gt;-&amp;gt;Goto&lt;/DEL&gt;-&amp;gt;Function Group---&amp;gt;Create.&lt;/P&gt;&lt;P&gt;2.Create FM.&lt;/P&gt;&lt;P&gt;3.maintain import /export parameters and tables , exceptions.&lt;/P&gt;&lt;P&gt;4.based on the ur requirement u have to bulid ur logic in Source Code by using there Import parameters and u can pass the results by using Export or table.&lt;/P&gt;&lt;P&gt;5.u can raise error by using exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see simpple FM AC_DOCUMENT_RECORD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 17:30:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module/m-p/2192291#M467484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T17:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: How To Create Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module/m-p/2192292#M467485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi kiran,&lt;/P&gt;&lt;P&gt;see this might be of some help.&lt;/P&gt;&lt;P&gt;to create function module  you have to create a a function group.&lt;/P&gt;&lt;P&gt;and then you create function module.&lt;/P&gt;&lt;P&gt;in function module you have to give IMPORT , EXPORT PARAMETER and EXCEPTION.&lt;/P&gt;&lt;P&gt;and also the SOURCE CODE without which the function module will be sytaxtically correct but you will get processing error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the procedure of creating Function Group and Function Module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR Group&lt;/P&gt;&lt;P&gt;goto SE37 &lt;/P&gt;&lt;P&gt;move to GOTO and the to function groups and create .&lt;/P&gt;&lt;P&gt;just fill the fields poped up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR Module&lt;/P&gt;&lt;P&gt;now in the se37 screen put the name of the function module you want to create and press create .&lt;/P&gt;&lt;P&gt;there will be a pop asking for function group name  now here  put you function group name which you have created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now after pressing save you will have a screen in which you have to enter the import, export,exception and the source code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in import parameter you can put this(for example)&lt;/P&gt;&lt;P&gt;parameter  type  associate type&lt;/P&gt;&lt;P&gt;num1        type   i&lt;/P&gt;&lt;P&gt;num2       type    i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;export parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter   type  associate type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;res         type  i  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exception&lt;/P&gt;&lt;P&gt;parameter  type  associate type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not a valid entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;source code&lt;/P&gt;&lt;P&gt;res  = num1+num2.&lt;/P&gt;&lt;P&gt;if num1 eq 0&lt;/P&gt;&lt;P&gt;raise not a valid entry.&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;save  activate .&lt;/P&gt;&lt;P&gt;done&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note:&lt;/P&gt;&lt;P&gt;alway press enter after putiin the parameter.&lt;/P&gt;&lt;P&gt;anuj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope  this might help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        anuj anuj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 06:17:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module/m-p/2192292#M467485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T06:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: How To Create Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module/m-p/2192293#M467486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  se37 is the transaction code to create function module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 06:58:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module/m-p/2192293#M467486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T06:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: How To Create Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module/m-p/2192294#M467487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kiran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GO to transaction SE80.In the drop box list select function group enter your Z Function group name.Press enter it will ask for creating the function group.Create your function group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SE37 transaction,in the menu bar Goto - &amp;gt; Function Group - &amp;gt; Create Group.Your Function Group will be created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to transaction SE37.Enter your Z Function module name,your recently created function group name and the description.Press Enter.Now your FM is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter Export,Import parameters.In the source code tab write the code what you want to write.If any exception write in the exception tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method 2)&lt;/P&gt;&lt;P&gt;First u have to create Function Group.&lt;/P&gt;&lt;P&gt;1.se37&lt;DEL&gt;-&amp;gt;Goto&lt;/DEL&gt;-&amp;gt;Function Group---&amp;gt;Create.&lt;/P&gt;&lt;P&gt;2.Create FM.&lt;/P&gt;&lt;P&gt;3.maintain import /export parameters and tables , exceptions.&lt;/P&gt;&lt;P&gt;4.based on the ur requirement u have to bulid ur logic in Source Code by using there Import parameters and u can pass the results by using Export or table.&lt;/P&gt;&lt;P&gt;5.u can raise error by using exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check these links&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;&lt;A href="http://www.sap-img.com/abap-function.htm" target="test_blank"&gt;http://www.sap-img.com/abap-function.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpfull answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 06:59:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module/m-p/2192294#M467487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T06:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: How To Create Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module/m-p/2192295#M467488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi kiran,&lt;/P&gt;&lt;P&gt;to create a function module first you need to create a function group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;step1 : goto  t.code se37 &lt;/P&gt;&lt;P&gt;step2 :select GOTO (in menu bar) then function group and then create function     &lt;/P&gt;&lt;P&gt;         group.&lt;/P&gt;&lt;P&gt;step3: now create the function module and when ask for function group give the &lt;/P&gt;&lt;P&gt;          name of the func group which you have created .&lt;/P&gt;&lt;P&gt;step4:now give the import and the export parameter and there associated type.&lt;/P&gt;&lt;P&gt;step5 give the source cod eaccording to the reqiurement&lt;/P&gt;&lt;P&gt;step6: save activate and exicute&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this might help help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anuj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 14:12:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module/m-p/2192295#M467488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T14:12:53Z</dc:date>
    </item>
  </channel>
</rss>

