Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

RFC API C++

Former Member
0 Likes
375

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 object

RFC_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!

1 REPLY 1
Read only

Former Member
0 Likes
301

No ideas? Nobody who has used this API here?