cancel
Showing results for 
Search instead for 
Did you mean: 

Tricky problem with mail adapter and attachments

Former Member
0 Kudos

Hello!

We have the following Problem to solve, but do not exactly know, how to do this in PI!

- Our SAP System produces an email with a .pdf file as attachment (this step cannot be changed and is given as is)

- Another System produces an .XML file and stores it on a Network drive

- PI should fetch the mail, get the filename from it and put the filename into the .XML file

- Then PI should send an email with BOTH files (.pdf AND .XML) as attachments

Thanks and BR, EF

Accepted Solutions (0)

Answers (2)

Answers (2)

iaki_vila
Active Contributor
0 Kudos

This message was moderated.

Harish
Active Contributor
0 Kudos

Hi,

One possible option for your requirement (without BPM) is

1) first interface email to file. SAP send pdf as attachment and PI route it to FTP location (temporary location).

2) File to file scenario - PI pick .xml file from network drive and sent to temp location. The first scenaria can also send the file to same network location, in that case we do not need this interface


3) File to email scenario - PI pick the files from temp location or network drive and trigger the email. you can pick multiple files from File adapter. refer the below doc.


http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/404ee507-3fbc-2e10-00bc-be90ab28d...


For the file name requirement one possible solution is in first interface (email to file) read the attachment name and save to any table (ABAP table/external data base table etc.). and read the file name in second or third flow.


regards,

Harish