<?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 API C++ in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-api-c/m-p/2847915#M667189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No ideas? Nobody who has used this API here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Oct 2007 13:02:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-01T13:02:53Z</dc:date>
    <item>
      <title>RFC API C++</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-api-c/m-p/2847914#M667188</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;I have written a remote enabled function, which is reading and writing xml data. It has one importing and one exporting parameter from the type "RAWSTRING". So it receives binary data in a byte array, interprets this as XML, reads data from the SAP table, build up a xml again and returns that as a byte array.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written a java application, which reads an xml file and converts that to a byte array. After that it connects to SAP over JCO and calls the function. The data, coming back from the function, is then going to be written to a xml file again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything alright until now!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now I need to call that function over C++ by using the RFC API. In there, we have the function &lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;RfcCall&lt;/P&gt; and need to provide the object &lt;B&gt;&lt;P&gt;RFC_PARAMETER&lt;/P&gt;&lt;/B&gt;.&lt;P&gt;&lt;/P&gt;&lt;P&gt;In there, we have to set the length of the importing and exporting field in bytes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how can I know, which size the result from the function is going to be? I mean, the XML result file can be in a various size!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In java, I don´t have to set a length. So I can recieve and send data in a various size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do that with C++ and the RFC API?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank You for the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points guaranteed!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 12:26:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-api-c/m-p/2847914#M667188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T12:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: RFC API C++</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-api-c/m-p/2847915#M667189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No ideas? Nobody who has used this API here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 13:02:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-api-c/m-p/2847915#M667189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T13:02:53Z</dc:date>
    </item>
  </channel>
</rss>

