Skip to Content

SAP PI 7.4 Sender Mail Adapter FileName issue

Hi All,

We have a Mail to File Scenario that requires fetching two attachments from an Email and saving to UNIX.

Currently the email contains only 2 .CSV attachments.

I created two receiver channels to fetch each file and it works however the issue is with the file name.

Below is the Sender channel Configuration.

Used the below Modules to try swapping the attachment name of first attachment. However it didnot work.

The Dynamic Configuration field Content-Description that usually has the Attachment name is missing.

So I used the Content-Disposition Value, however the value has attachment; filename="filename.csv" .

I need help to either have the Content-Description field in the SOAP Message or remove attachment; filename=" " from Content-Disposition.

Please help.

Below is one of the Receiver Channel Configuration.

Files are getting saved as below.

Below is the SOAP Document from the message.

Scenario.png (10.7 kB)
Sender Modules.png (19.7 kB)
Sender Channel.png (34.6 kB)
Message.png (95.6 kB)
files.png (9.9 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 13, 2015 at 01:15 PM

    Hi Bobby

    I´m facing the same situation to develop a mail to file scenario (not getting the filename properly).

    Currently we are running SAP PO 7.31 single-stack (java only).

    Did you have found any solution for this case using adapter modules? If not which workaround solution have you put in place?

    Alternatively I found a "plan B" solution that is requesting to send the filename in the subject of the mail message so that we can capture this information in the Header of the Dynamic Configuration message as follows:

    Mail Sender Setup:

    File Receiver Setup:

    If we proceed on that way the filename will arrive properly in the FTP Server.

    Off course this is far away to be the best solution for this case and I´m still looking for a solution using adapter modules.

    Looking for your inputs. Any feedback are welcome.

    Thanks a lot

    Best Regards


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.