cancel
Showing results for 
Search instead for 
Did you mean: 

File to Mail interface with Dynamic file name attachment in SAP P0 7.5 single stack

0 Kudos
1,160

Hi PI/PO Experts,

I am trying to send file attachment from FTP to Mail adapter. The filename should be same as source file. I can find lot of blogs with respect to the same requirement, but none of the blogs helps me to complete the interface successfully. I have already tried by following the below blogs. But it doesn't help. I am keep ending up with Maindocument.xml or ATT00001.XML

https://wiki.scn.sap.com/wiki/display/XI/Dynamic+Email+Attachment+name+for+Received+Mails

https://blogs.sap.com/2016/03/10/stop-using-mail-package-simplify-your-mail-receiver-adapter-scenari...

Experts please help.

Accepted Solutions (0)

Answers (2)

Answers (2)

vicky20691
Active Contributor
0 Kudos

Also,

1. have you choosen XIPAYLOAD in protocol in channel instead of XIALL

2. checkbox use mail package

3. checkbox Keep attachment

https://blogs.sap.com/2016/03/10/stop-using-mail-package-simplify-your-mail-receiver-adapter-scenari...

vicky20691
Active Contributor
0 Kudos

Hi,

Where are you specifying the attachment name ?

Are you using mail package? you need to define content-disposition property to set the mail attachment name.

1. use dynamic configuration udf to get the file name from file channel

2. assign the file name from udf to content-dispositon

the wiki link is exactly what should server your requirement . can you check is your dynamic configuration udf working fine?

Regards,

Vikas Singh