How to create a Java mapping in SAP PI/PO that handle binary documents or attachments

Facebooktwittergoogle_pluslinkedintumblr

It can be a little challenging to figure out how to handle binary files SAP PI/PO if you want to save them in the content server.

This video shows you two ways to can deal with simply.
  • You can create an attachment where you have the PDF or binary file and then just use a dummy file for the proxy.
  • You can encode the PDF/Binary file as Base64 and add the content to the proxy structure.

The video also shows how to make an ant to create a jar file.

The java mapping for creating an attachment in SAP PI/PO is the following.

 

If you instead want to Base64 encode the content you can do it the following way.


 

You can get the Zip archive with all the PDFMappingModules.
If you liked the content and want to become better at SAP PI/PO mappings then check out my course at Mapping course
Facebooktwittergoogle_pluslinkedintumblr

Comments are closed.