cancel
Showing results for 
Search instead for 
Did you mean: 

Advice on Binary File to RFC scenario

Former Member
0 Kudos

I need to send contents of a binary file into an RFC which can accept unbound rows of 1024 bytes of data.

I will also send filename to the RFC which I'll pull from ASMA.

I have a simple data type set up with XSD type base64Binary and string field for the file name. Initial try through integration engine is unsuccessful because I think PI wants to see the payload parsed as XML and it is the pure binary, unchanged by the file adapter. (e.g. "Content is not allowed in prolog")

I've found an example of how to do this via Java mapping, but I've never used that before. Is it required or is there a way to get this done with simple message mapping?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I used this helpful Wiki article to help me get this Java map going. Thanks for the help everyone.

http://wiki.sdn.sap.com/wiki/display/XI/HowtoSendBinaryDatatoRFCfromXI%28or%29PI

Also to get going with NWDS

http://techplay.plozzle.com/?p=21

baskar_gopalakrishnan2
Active Contributor
0 Kudos

> Is it required or is there a way to get this done with simple message mapping?

You need Java mapping. No way to handle through message mapping.

xinjiang_li
Active Participant
0 Kudos

How about using custom adapter module?

Former Member
0 Kudos

Thank you Baskar, I will try my first Java mapping then.

Do you have any basic advice for the foundation steps to make sure the environment is set up for this?

Former Member
0 Kudos

Hi XinJiang,

Maybe this is possible but I don't have enough knowledge about how to write these. Do you have any specific advice?

Thank you,

Aaron

Shabarish_Nair
Active Contributor
0 Kudos

java mapping is the easiest option you have in this case.

ex. http://wiki.sdn.sap.com/wiki/display/XI/SampleJAVAMappingcodeusingPI7.1+API

http://wiki.sdn.sap.com/wiki/display/Snippets/FILEtoIDOCusingJava+Mapping