<?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: RFC Step By Step in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-step-by-step/m-p/1994381#M405306</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 for SAP Help they give you the information in much details&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exercise 1: Creating a Function module &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function modules are ABAP routines that are administered in a central function library. They apply across applications and are available throughout the system. You must assign function modules to a function pool that is called a function group. A function group is nothing but a container for the function modules. Now create a function group and then a function module, which you can use for the next exercise steps.&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;Continue With&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exercise 2: Implementing a Local Function Call&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make RFC function module, please set remote enabled in the attributes of function module.&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;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Mar 2007 12:57:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-21T12:57:46Z</dc:date>
    <item>
      <title>RFC Step By Step</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-step-by-step/m-p/1994377#M405302</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;     I want RFC step-by-step process.&lt;/P&gt;&lt;P&gt;1. creation of function group&lt;/P&gt;&lt;P&gt;2.creation of  function module&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;like this . what are the steps i need to develope to test one function module using RFC.complete process i want. please let me know&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;khanna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 12:44:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-step-by-step/m-p/1994377#M405302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T12:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: RFC Step By Step</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-step-by-step/m-p/1994378#M405303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read this link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/22/042518488911d189490000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/22/042518488911d189490000e829fbbd/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 12:46:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-step-by-step/m-p/1994378#M405303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T12:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: RFC Step By Step</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-step-by-step/m-p/1994379#M405304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi , I have this link already. But in this there is no specific order. I want step-by-step process.please let me know&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;khanna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 12:49:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-step-by-step/m-p/1994379#M405304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T12:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: RFC Step By Step</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-step-by-step/m-p/1994380#M405305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;     It is pretty staight forward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) go to se37. Chose form menu Goto-&amp;gt;Function Groups-&amp;gt;Create Groups.&lt;/P&gt;&lt;P&gt;Give a   Z name for your function group.&lt;/P&gt;&lt;P&gt;save it.&lt;/P&gt;&lt;P&gt;2) create a function module by giving a z name to your function module. It would ask you to enter the function group name. GIve the fg name you have just created.&lt;/P&gt;&lt;P&gt;3) In the atrributes section chose the radio-button Remote enabled.&lt;/P&gt;&lt;P&gt;4) Give the importing , exporting, tables parameters with appropriate types.&lt;/P&gt;&lt;P&gt;5) Write the Code in the source code section.&lt;/P&gt;&lt;P&gt;6) Do not use pass by referance for the interface variables(IMPORTING/EXPORTING). YOu have to pass the variables by value only(Check box should be chosen)&lt;/P&gt;&lt;P&gt;Save the code and activate the FM and FG.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 12:56:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-step-by-step/m-p/1994380#M405305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T12:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: RFC Step By Step</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-step-by-step/m-p/1994381#M405306</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 for SAP Help they give you the information in much details&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exercise 1: Creating a Function module &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function modules are ABAP routines that are administered in a central function library. They apply across applications and are available throughout the system. You must assign function modules to a function pool that is called a function group. A function group is nothing but a container for the function modules. Now create a function group and then a function module, which you can use for the next exercise steps.&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;Continue With&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exercise 2: Implementing a Local Function Call&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make RFC function module, please set remote enabled in the attributes of function module.&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;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 12:57:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-step-by-step/m-p/1994381#M405306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T12:57:46Z</dc:date>
    </item>
  </channel>
</rss>

