<?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 Module's in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-s/m-p/3457570#M830702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer to the below related threads&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4229034"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3373140"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3451342"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Feb 2008 07:51:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-22T07:51:46Z</dc:date>
    <item>
      <title>Function Module's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-s/m-p/3457565#M830697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to create function modules?&lt;/P&gt;&lt;P&gt;explain in detail with step by step process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 07:40:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-s/m-p/3457565#M830697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T07:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-s/m-p/3457566#M830698</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;go to se37,&lt;/P&gt;&lt;P&gt;-&amp;gt; provide your FM name 'zfm_test',&lt;/P&gt;&lt;P&gt;   -&amp;gt; create,&lt;/P&gt;&lt;P&gt;       -&amp;gt; provide function group name,&lt;/P&gt;&lt;P&gt;          -&amp;gt; description,&lt;/P&gt;&lt;P&gt;              -&amp;gt; enter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then u can proved inport export parameters and table parameters as per ur requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX Function Module is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function ztest_biw.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local Interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(BUKRS) TYPE  BUKRS OPTIONAL&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      E_T_DATA STRUCTURE  BSEG&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;data: ztest_biw type table of ztest_biw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from bseg into table e_t_data where bukrs = bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ztest_biw[] = e_t_data[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endfunction.&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;seshu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 07:44:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-s/m-p/3457566#M830698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T07:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-s/m-p/3457567#M830699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the transaction SE37 give a name starting with Z or Y and click on create. It will ask for a function group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Farzan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 07:45:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-s/m-p/3457567#M830699</guid>
      <dc:creator>former_member137336</dc:creator>
      <dc:date>2008-02-22T07:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-s/m-p/3457568#M830700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kavitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this links:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4921009"&gt;&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;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;Swati&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 22, 2008 4:36 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 07:48:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-s/m-p/3457568#M830700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T07:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-s/m-p/3457569#M830701</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;Procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a Function Group:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To open the Object Navigator choose from the SAP Menu Overview ® Object Navigator. &lt;/P&gt;&lt;P&gt;From the Object Selection window select Function group, enter FG_Tutorial as name of your function group, and choose Display. &lt;/P&gt;&lt;P&gt;Since the function group FG_Tutorial does not yet exist, the system asks you whether to create it. Confirm with Yes. &lt;/P&gt;&lt;P&gt;Enter a short description and choose Save. &lt;/P&gt;&lt;P&gt;In the window Create Object Catalog Entry choose Local object.&lt;/P&gt;&lt;P&gt;You created a local function group. Before it can receive function modules, you must activate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the object list, use the right mouse button to select the function group FG_Tutorial you just created and choose Activate. &lt;/P&gt;&lt;P&gt;On the next screen choose Continue.&lt;/P&gt;&lt;P&gt;The function group is now active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create Global Data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within the function group you can declare global data. All function modules of this function group share this global data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Object Selection window open the directory tree Includes and double-click on LFG_TutorialTOP. &lt;/P&gt;&lt;P&gt;Choose Create « Change ( STRG+F1 ) and enter the following data declarations in the tool area: &lt;/P&gt;&lt;P&gt;TABLES spfli.&lt;/P&gt;&lt;P&gt;DATA spfli_workarea LIKE spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check ( STRG&lt;EM&gt;F2 ) and activate ( STRG&lt;/EM&gt;F3 ) the include file.&lt;/P&gt;&lt;P&gt;Create a Function Module:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a function module that reads data from table SPFLI .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are not yet in the Object Navigator, choose from the SAP Menu Overview à Object Navigator and display the function group FG_Tutorial . &lt;/P&gt;&lt;P&gt;In the Object selection window, use the right mouse button to select function group FG_Tutorial , and choose Create à Function module. &lt;/P&gt;&lt;P&gt;Enter as function module name XX_RFC_READ_SPFLI and replace XX with the initials of your name. &lt;/P&gt;&lt;P&gt;Enter a short description and choose Save. &lt;/P&gt;&lt;P&gt;The system lists the function module in the object list in a new directory Function modules, and displays it on the right side in the Function Builder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select the Attributes tab and under Processing type choose Remote-enabled module.&lt;/P&gt;&lt;P&gt;Select the Import tab and enter in the appropriate columns the names of the import parameters: carrid with reference type like spfli-carrid and connid with reference type like spfli-connid . For each parameter set the Pass value flag. &lt;/P&gt;&lt;P&gt;Select the Export tab and enter in the appropriate columns the names of the export parameters: ex_spfli with reference type like spfli and sys with reference type like sy-sysid . For each parameter set the Pass value flag. &lt;/P&gt;&lt;P&gt;Select the Exceptions tab and enter the exception invalid_data . &lt;/P&gt;&lt;P&gt;Select the Source code tab. &lt;/P&gt;&lt;P&gt;The system copies the entries you made in the other tabs and creates a source text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Complete the function module with the actual flight data retrieval. &lt;/P&gt;&lt;P&gt;Compare your function with the model solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save the function module ( STRG+S ). When the note on remote-enabled function modules appears, choose Continue. &lt;/P&gt;&lt;P&gt;Check the function for errors ( STRG&lt;EM&gt;F2 ) and then activate it ( STRG&lt;/EM&gt;F3 ).&lt;/P&gt;&lt;P&gt;Test the Function Module:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose Test/Execute ( F8 ) or Function module à Test à Test function module. &lt;/P&gt;&lt;P&gt;As import parameter for CARRID enter LH ; for CONNID enter 400 . Leave the RFC target system line empty. &lt;/P&gt;&lt;P&gt;Choose Execute ( F8 ).&lt;/P&gt;&lt;P&gt;The system displays the export parameters EX_SPFLI and SYS in an additional table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a detailed display of the data select the value in line EX_SPFLI.&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You created a function module and assigned it to a function group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Arunsri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 07:50:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-s/m-p/3457569#M830701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T07:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-s/m-p/3457570#M830702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer to the below related threads&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4229034"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3373140"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3451342"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 07:51:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-s/m-p/3457570#M830702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T07:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-s/m-p/3457571#M830703</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;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;Also See...&lt;/P&gt;&lt;P&gt;pls check this link &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/d1/801f50454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/d1/801f50454211d189710000e8322d00/frameset.htm&lt;/A&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;Regards,&lt;/P&gt;&lt;P&gt;Priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 07:54:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-s/m-p/3457571#M830703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T07:54:09Z</dc:date>
    </item>
  </channel>
</rss>

