<?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>Question Re: what is the exact syntax for calling remote function module. in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/what-is-the-exact-syntax-for-calling-remote-function-module/qaa-p/2874850#M1189716</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;Lets do simple example where you will first create a RFC in one server (say A) and create normal program in othere server (say B). Finally you will call the RFC in A from B.&lt;/P&gt;&lt;P&gt;Do the following steps for creating RFC in server A.&lt;/P&gt;&lt;P&gt;1. log on to server A&lt;/P&gt;&lt;P&gt;2. go to se37&lt;/P&gt;&lt;P&gt;3. Edit -&amp;gt; function groups-&amp;gt; create function group and give the function group name (say ZGRP).&lt;/P&gt;&lt;P&gt;4. create a FM ( say Z_TEST_RFC) in se37 providing the function group which is created just now.&lt;/P&gt;&lt;P&gt;5. go to attribute tab -&amp;gt; choose remote-enabled module from processing type.&lt;/P&gt;&lt;P&gt;so that your FM will become RFC.&lt;/P&gt;&lt;P&gt;6. provide the import parameter in import tab.&lt;/P&gt;&lt;P&gt;we will provide only two import parameters.&lt;/P&gt;&lt;P&gt;- parameter name : P_NUM1, typing: TYPE, associated type : I &amp;amp; check the pass value (all the parameters of RFC must pass by value).&lt;/P&gt;&lt;P&gt;- parameter name : P_NUM2, typing: TYPE, associated type : I &amp;amp; check the pass value&lt;/P&gt;&lt;P&gt;7. provide the export parameter in export tab.&lt;/P&gt;&lt;P&gt;parameter name : P_SUM, typing: TYPE, associated type : I &amp;amp; check the pass value&lt;/P&gt;&lt;P&gt;8. write the given simple code in source code tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION Z_TEST_RFC.&lt;/P&gt;&lt;P&gt;P_TOT = P_NUM1 + P_NUM2.&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the following steps for creating ABAP program which will call the RFC in server B.&lt;/P&gt;&lt;P&gt;1. se38 - &amp;gt; creat a program.&lt;/P&gt;&lt;P&gt;2. write the given simple code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data tot type i.&lt;/P&gt;&lt;P&gt;call function 'Z_TEST_RFC' destination 'XXXXXX'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;p_num1 = 10&lt;/P&gt;&lt;P&gt;p_num2 = 15&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;p_tot = tot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write tot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please note that XXXXXX is RFC connection which is avialable in sm59 transaction in server A.&lt;/P&gt;&lt;P&gt;-go to sm59 - &amp;gt; abap connection (list of RFC connection configurations are avialable). choose server B connection and replace it of XXXXXX in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;finally you can execute the normal abap program that will call the RFC and display the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward point if helpful.&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, 05 Oct 2007 07:23:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-05T07:23:29Z</dc:date>
    <item>
      <title>what is the exact syntax for calling remote function module.</title>
      <link>https://community.sap.com/t5/technology-q-a/what-is-the-exact-syntax-for-calling-remote-function-module/qaq-p/2874847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.....what is the exact syntax for calling remote function module.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;k.swaminath reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 07:00:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/what-is-the-exact-syntax-for-calling-remote-function-module/qaq-p/2874847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T07:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: what is the exact syntax for calling remote function module.</title>
      <link>https://community.sap.com/t5/technology-q-a/what-is-the-exact-syntax-for-calling-remote-function-module/qaa-p/2874848#M1189714</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;The syntax is same as you call any normal FM.Just one addition you will have to pass the RFC destination also with the RFC FM Like &lt;/P&gt;&lt;P&gt;    DESTINATION rfc_sys in the below RFC FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RFC_READ_TABLE'&lt;/P&gt;&lt;P&gt;    DESTINATION rfc_sys&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      query_table          = p_kc_ykat1050&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      OPTIONS              = z_option&lt;/P&gt;&lt;P&gt;      data                 = pit_ykat1050&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      table_not_available  = 1&lt;/P&gt;&lt;P&gt;      table_without_data   = 2&lt;/P&gt;&lt;P&gt;      option_not_valid     = 3&lt;/P&gt;&lt;P&gt;      field_not_valid      = 4&lt;/P&gt;&lt;P&gt;      not_authorized       = 5&lt;/P&gt;&lt;P&gt;      data_buffer_exceeded = 6&lt;/P&gt;&lt;P&gt;      OTHERS               = 7.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 07:02:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/what-is-the-exact-syntax-for-calling-remote-function-module/qaa-p/2874848#M1189714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T07:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: what is the exact syntax for calling remote function module.</title>
      <link>https://community.sap.com/t5/technology-q-a/what-is-the-exact-syntax-for-calling-remote-function-module/qaa-p/2874849#M1189715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CALL FUNCTION 'funcation module name'&lt;/P&gt;&lt;P&gt;  DESTINATION 'rfc destination name'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;others..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 07:10:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/what-is-the-exact-syntax-for-calling-remote-function-module/qaa-p/2874849#M1189715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T07:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: what is the exact syntax for calling remote function module.</title>
      <link>https://community.sap.com/t5/technology-q-a/what-is-the-exact-syntax-for-calling-remote-function-module/qaa-p/2874850#M1189716</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;Lets do simple example where you will first create a RFC in one server (say A) and create normal program in othere server (say B). Finally you will call the RFC in A from B.&lt;/P&gt;&lt;P&gt;Do the following steps for creating RFC in server A.&lt;/P&gt;&lt;P&gt;1. log on to server A&lt;/P&gt;&lt;P&gt;2. go to se37&lt;/P&gt;&lt;P&gt;3. Edit -&amp;gt; function groups-&amp;gt; create function group and give the function group name (say ZGRP).&lt;/P&gt;&lt;P&gt;4. create a FM ( say Z_TEST_RFC) in se37 providing the function group which is created just now.&lt;/P&gt;&lt;P&gt;5. go to attribute tab -&amp;gt; choose remote-enabled module from processing type.&lt;/P&gt;&lt;P&gt;so that your FM will become RFC.&lt;/P&gt;&lt;P&gt;6. provide the import parameter in import tab.&lt;/P&gt;&lt;P&gt;we will provide only two import parameters.&lt;/P&gt;&lt;P&gt;- parameter name : P_NUM1, typing: TYPE, associated type : I &amp;amp; check the pass value (all the parameters of RFC must pass by value).&lt;/P&gt;&lt;P&gt;- parameter name : P_NUM2, typing: TYPE, associated type : I &amp;amp; check the pass value&lt;/P&gt;&lt;P&gt;7. provide the export parameter in export tab.&lt;/P&gt;&lt;P&gt;parameter name : P_SUM, typing: TYPE, associated type : I &amp;amp; check the pass value&lt;/P&gt;&lt;P&gt;8. write the given simple code in source code tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION Z_TEST_RFC.&lt;/P&gt;&lt;P&gt;P_TOT = P_NUM1 + P_NUM2.&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the following steps for creating ABAP program which will call the RFC in server B.&lt;/P&gt;&lt;P&gt;1. se38 - &amp;gt; creat a program.&lt;/P&gt;&lt;P&gt;2. write the given simple code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data tot type i.&lt;/P&gt;&lt;P&gt;call function 'Z_TEST_RFC' destination 'XXXXXX'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;p_num1 = 10&lt;/P&gt;&lt;P&gt;p_num2 = 15&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;p_tot = tot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write tot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please note that XXXXXX is RFC connection which is avialable in sm59 transaction in server A.&lt;/P&gt;&lt;P&gt;-go to sm59 - &amp;gt; abap connection (list of RFC connection configurations are avialable). choose server B connection and replace it of XXXXXX in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;finally you can execute the normal abap program that will call the RFC and display the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward point if helpful.&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, 05 Oct 2007 07:23:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/what-is-the-exact-syntax-for-calling-remote-function-module/qaa-p/2874850#M1189716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T07:23:29Z</dc:date>
    </item>
  </channel>
</rss>

