<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc/m-p/2846913#M666970</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think u need to ref the table name TXXX. def another structure manaually with all the fields w/o ref of the table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Sep 2007 07:57:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-19T07:57:30Z</dc:date>
    <item>
      <title>RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc/m-p/2846912#M666969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hie Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am developing an RFC in SAP SYS2 and need to call it in SAP SYS1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is we recieve a prenote with a code say '01' which is reason why a Cheque has been returned.So for our on-ward processing we need this reason in text form.To get this we can only find it in SYS2.So i developed a Function (YFUNCTION_SYS2)in SYS2 and made it Remote -enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import----&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt; I_Code&lt;/P&gt;&lt;P&gt;Export----&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt;Structure EX_ XXXX with the Code and the text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source code of FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   select single * from Txxxx into wa_xxxx&lt;/P&gt;&lt;P&gt;      where code =  I_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;ex_xxxx = wa_xxxx.&lt;/P&gt;&lt;P&gt;else &lt;/P&gt;&lt;P&gt;raise exception.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This FM is working quite well in SYS2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is on calling the FM from a program in SYS1 as the table Txxxx is not in this recieving system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Report YXXXXX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: Txxxx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_code like Txxxx-code.&lt;/P&gt;&lt;P&gt;                  dest like rfcdes-rfcdest default 'SYS2'.&lt;/P&gt;&lt;P&gt;data: system like sy-sysid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'YFUNCTION_SYS2'&lt;/P&gt;&lt;P&gt;    destination dest.&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;   I_CODE        = P_CODE&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;EX_XXXX          = TXXXX&lt;/P&gt;&lt;P&gt;SYS                = SYSTEM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;.............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On doin a syntax check it says the table TXXX is not known.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do i necessarily need to have this table in the calling SYSTEM system SYS1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 07:54:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc/m-p/2846912#M666969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T07:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc/m-p/2846913#M666970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think u need to ref the table name TXXX. def another structure manaually with all the fields w/o ref of the table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 07:57:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc/m-p/2846913#M666970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T07:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc/m-p/2846914#M666971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need the table, only a definition of its structure.  Either define it in SE11 as a structure (if you need to use it in many programs) or locally in your program if you only need to use it once.  e.g something like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ty_xxxx,&lt;/P&gt;&lt;P&gt;            field1 type char01,&lt;/P&gt;&lt;P&gt;            field2 type char01,&lt;/P&gt;&lt;P&gt;  ... etc....&lt;/P&gt;&lt;P&gt;          end of ty_xxxx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: txxxx type table of ty_xxxx.&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;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 07:59:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc/m-p/2846914#M666971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T07:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc/m-p/2846915#M666972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx for your answer it was very useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 10:20:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc/m-p/2846915#M666972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T10:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc/m-p/2846916#M666973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer it quite useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 10:20:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc/m-p/2846916#M666973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T10:20:53Z</dc:date>
    </item>
  </channel>
</rss>

