Skip to Content
0
Former Member
Jun 03, 2013 at 11:24 AM

Attach two files to mail using Java Mapping in SAP PI 7.31

76 Views

Hi Experts,

I have a file to mail scenario in SAP PI 7.31 in which I have to pick multiple files of different types like XML and CSV
and send these as attachments in a single mail to the client with same filenames as attachments. The requirement is, the file adapter should pick the two files which is having the same name but with different extensions. Should I have to use Java Mapping? If so, please help me out with your replies.

EXAMPLE:If I am sending two files namely apple.xml, apple.csv then, the file adapter should pick the two files. If we give the two files as apple1.xml and apple2.csv even then the file adapter should pick the two files. The received mail should also show the same names in the attachments accordingly.