cancel
Showing results for 
Search instead for 
Did you mean: 

PI: Advanced mode Parameters in Receiver Mail Adapter

Former Member
0 Kudos

Hi all,

I have configured a proxy to mail scenario where the proxy message has already attached two correctly named PDF files when arrivinf at PI.

I use the Mail package in the mail receiver adapter (with keep attachements flag switched on) and the result is that the outgoing mail contains the two pdf attachments, but the name of the attached files is now "untitled.xml". Thus, it seems that the mail adapter somehow overwrites the attributes of the attachments.

In SDN doumentation "Dynamic Email Attachment name for Received Mails with ASMA and without using mail package" (see http://wiki.scn.sap.com/wiki/pages/viewpage.action?title=Dynamic+Email+Attachment+name+for+Received+...) I have read that one could use the flag "Advanced Mode" to prevent SAP PI from writing mail header variable "Content-Disposition".

However, I have not found any documentation on this topic and even the SAP documentation is very poor:

Define Parameters in Advanced Mode

  1. To specify additional parameters for the adapter configuration, select Advanced Mode. Enter additional parameter names and parameter values in the table.

So my questions are:

  • Where can I find a documention on the Advanced mode Parameters in Receiver Mail Adapter?
  • How can I use these parameters to let the pdf attachments "as is" in the outgoing mail?

Cheers

Christoph

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

HI Christoph,

Refer section 3.2.4 in this document http://scn.sap.com/docs/DOC-16015 which uses payload swap bean and message transform beam to achieve this scenario.

Regards,

Pranav

Former Member
0 Kudos

Hi,

Please check the below blog. This might help you. Instead of File you are using ABAP proxy..

http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/04/13/renaming-email-attachment-with-in...

Tricky part here is to retrieve the file names which came through ABAP proxy message.

Regards,

Veerendra.

former_member184720
Active Contributor
0 Kudos

Are you using the soap adapter for sending proxy messages?

if so please have a look at this blog..

http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/07/01/retaining-soap-adapter-attachment...

I was not aware of this

Former Member
0 Kudos

Hi Haaresh

no, I am using an ABAP proxy as the sender and the attachements are correctly named in the ABAP integration server (we use a PI 7.3 double stack).

So the question is not the inbound side, but the outbound side where I use the mail adapter.

(Although your mentioned blog is really interesting 😉 )

Kind regards

Christoph

former_member184720
Active Contributor
0 Kudos

Hi Christoph - did you check if the attachement name remain unchanged in PI?

i mean as shown in that blog, are you able to find the correct attachement name set by the proxy in PI SXMB_MONI?

former_member184720
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi Hareeah

thanks for your reply.

But as I see it, in this note there are hints on how to explicitly set the filenames and further attachment attributes (content-type, content-disposition etc.)

However, in my case, the name of the attachments are already correctly set dynamically by the sender application and I simply want that they remain unchanged by the mail adapter.

Kind regards

Christoph