[SAP PI] – How to Send Binary Data to RFC from XI(or)PI

18 02 2011

This WIKI Section illustrates a way to post binary data from XI/PI to a custom developed BAPI in R/3 using Base64 encryption method. Also Covers below Topics,

1. How to post binary data to the XI/PI inbound HTTP adapter using java based HTTP client.
2. Base64 Encryption of binary data in message mapping (Java Mapping) in case if the binary message is from Adapter or Proxy e.g., File Adapter.
3. Sample code for ZBAPI and functionality of standard SAP bapi SSFC_BASE64_DECODE.

Introduction
The idea behind this article is to understand and post binary data (e.g., image files, PDF’s etc…) to a SAP function module such as a ZBAPI.
The problem lies in as we cannot directly embed binary data in XML tags due to different potential parsing problems of the XML parser (http://articles.techrepublic.com.com/5100-10878_11-1050529.html).
The RFC Adapter in XI only supports RFC XML Message Protocol. That is the RFC adapter on the sender side parses the RFC Meta Data to RFC XML
and on the receiver side parses in the

reverse way from RFC XML to RFC Meta Data (http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm).
In this article I am using the BASE64 encryption/decryption logic to achieve the same.

Continue….
https://wiki.sdn.sap.com/wiki/display/XI/How+to+Send+Binary+Data+to+RFC+from+XI(or)PI

Annunci

Azioni

Information

2 responses

28 03 2012
java examples

It’s amazing designed for me to have a website, which is helpful in support of my experience. thanks admin

22 10 2012
Rati Murty

I really like what you guys tend to be up too. This kind of clever work and coverage!

Keep up the excellent works guys I’ve added you guys to our blogroll.

Rispondi

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...




%d blogger hanno fatto clic su Mi Piace per questo: