cancel
Showing results for 
Search instead for 
Did you mean: 

Sending KM File to SAp Backend using RFC?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

yogesh_galphade
Contributor
0 Kudos

Hi

You can send the data in byte[] as ABAP accepts it as xstring, in RFC take it as Xstring.

Former Member
0 Kudos

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

Answers (0)