<?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: Reference-Problem in RFC-Function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reference-problem-in-rfc-function-module/m-p/5863628#M1322017</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Phillip&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot send references via RFC. However, if you have added the interface &lt;STRONG&gt;IF_SERIALIZABLE_OBJECT&lt;/STRONG&gt; then you can serialize your object instance within the calling program and send it as XML stream to the RFC fm. In the RFC fm you can regenerate the object instance. This way you can read and change the object instance on the remote system yet I do not think you can transfer back any changes to the calling system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jul 2009 09:59:20 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2009-07-08T09:59:20Z</dc:date>
    <item>
      <title>Reference-Problem in RFC-Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reference-problem-in-rfc-function-module/m-p/5863627#M1322016</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;I am &lt;STRONG&gt;new to ABAP&lt;/STRONG&gt;. As an introduction I read the book "ABAP Objects" from SAP Press.&lt;/P&gt;&lt;P&gt;I need a &lt;STRONG&gt;web service which returns a before uncertain number of objects&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;First I have &lt;STRONG&gt;written a class&lt;/STRONG&gt; representing my object. Then I a&lt;STRONG&gt;dded a new table type to the DDIC&lt;/STRONG&gt; which has as "line type" simply my class as referenced type.&lt;/P&gt;&lt;P&gt;Afterwards I have &lt;STRONG&gt;implemented a function module&lt;/STRONG&gt; which has an export parameter with the TYPE of my table type. The whole thing works fine, if I configure the function module as a normal function module. As soon as I click on RFC, I get the error message &lt;STRONG&gt;"Reference parameters are not allowed with RFC "&lt;/STRONG&gt;. However, I have already clicked &lt;STRONG&gt;"pass by value"&lt;/STRONG&gt; for the export- and import-parameters. The problem seems to be the table type with my class as referenced type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the &lt;STRONG&gt;approach in general correct&lt;/STRONG&gt;, to create a web service?&lt;/P&gt;&lt;P&gt;How can I &lt;STRONG&gt;fix the problem&lt;/STRONG&gt; with the reference?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Philipp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2009 07:39:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reference-problem-in-rfc-function-module/m-p/5863627#M1322016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-08T07:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Reference-Problem in RFC-Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reference-problem-in-rfc-function-module/m-p/5863628#M1322017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Phillip&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot send references via RFC. However, if you have added the interface &lt;STRONG&gt;IF_SERIALIZABLE_OBJECT&lt;/STRONG&gt; then you can serialize your object instance within the calling program and send it as XML stream to the RFC fm. In the RFC fm you can regenerate the object instance. This way you can read and change the object instance on the remote system yet I do not think you can transfer back any changes to the calling system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2009 09:59:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reference-problem-in-rfc-function-module/m-p/5863628#M1322017</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-07-08T09:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Reference-Problem in RFC-Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reference-problem-in-rfc-function-module/m-p/5863629#M1322018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I understand the problem is that I can not export any reference. And therefore no objects because the declaration has to be done with TYPE REF TO...&lt;/P&gt;&lt;P&gt;Can you tell me a little more detailed about the usage of the interface &lt;STRONG&gt;IF_SERIALIZABLE_OBJECT&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;Is it possible to &lt;STRONG&gt;serialize the whole internal table&lt;/STRONG&gt; which has to exported?&lt;/P&gt;&lt;P&gt;Would it have the &lt;STRONG&gt;same effect like a table type based on a structure&lt;/STRONG&gt; with attributes like my object?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Philipp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2009 10:29:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reference-problem-in-rfc-function-module/m-p/5863629#M1322018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-08T10:29:13Z</dc:date>
    </item>
  </channel>
</rss>

