‎2007 Oct 01 1:26 PM
hi,
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.
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.
Everything alright until now!
But now I need to call that function over C++ by using the RFC API. In there, we have the function
RfcCall
and need to provide the objectRFC_PARAMETER
.In there, we have to set the length of the importing and exporting field in bytes.
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!
In java, I don´t have to set a length. So I can recieve and send data in a various size.
How can I do that with C++ and the RFC API?
thank You for the help!
Reward points guaranteed!
‎2007 Oct 01 2:02 PM