Skip to Content
0
Jun 24, 2021 at 11:33 AM

SAP PO java mapping - generate xml tags around binary body - Binary to XML conversion

76 Views

Hi all,


In a pdf label interface we get the raw pdf as a response to a REST service.

We would like to send this pdf string to ECC via proxy, but in order to do so we need to generate a small xml body around the binary content.

I assume that this is possible with a java mapping, but i have no idea on how this would look like.

I know how to generate the mapping in NWDS but am not sure on the coding of the java mapping.

I have seen this blog for using a message mapping but I get a content is not allowed in prolog if I use the UDF in a message mapping:

Binary to XML conversion

Thanks for any insights!

Tom