on 03-18-2010 10:27 PM
Hi All,
We need to send a file from a KM folder on System 1 to a backend system 2
I am planning to call an RFC which accepts the file as a parameter.
The problem is I don't know how to map the InputStream object to the Binary input parameter of the RFC.
So, the solution should work like this:
a) Get the resource content of the KM document using KM APIs
b) Get the InputStream for that content
c) Send the content to the RFC as a binary paramter
Please guide.
Regards,
Sumit
Hi
You can send the data in byte[] as ABAP accepts it as xstring, in RFC take it as Xstring.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for the reply.
The first 2 parts of the question are resolved.
My issue now is that RFC accepts binary content as a table.
This table has one column of type Char255.
In mycode I have two methods one is <BapiInput_Node>.addBinContent(Char255) this only adds one line.
The other is <Bapiinput_Node>.SetBin_Content(Abtract List) -- this sets the set of lines.
I want to use the second method but dont know how to do.
Please guide.
Regards,
Sumit Oberoi
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.