Skip to Content
Former Member
Mar 04, 2013 at 09:33 AM

Get Content-Name from Attachments in Java-Mapping



I have a problem with a Java-Mapping with attachments. The source message is created by an ABAP-proxy with multiple attachments. Now I need an Java-Mapping, which is working fine, except the names of the attachments. They get lost and the SAP PI sets the names to the contentID. In the API for the attachment (Interface: Attachment) you have only methods for getting the contentId and content-type, not the "content-name".

Have somebody a solution, how I can get and set the content-names of the attachments in the Java-Mapping?

Here two screenshot to explain the problem:


input.jpg (362.1 kB)
output.jpg (380.3 kB)