Skip to Content

Scenario Mail to Idoc with many Attachment.

Hello,

I have a **Mail to Idoc** Scenario. The Mail that I receive contains 3 attachment in XI.

Please let me know how to configure this sender mail adapter to capture all the attachment and send them to the BPM.

I have seen many examples, but any of them helps me.

Regards,

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Dec 19, 2008 at 12:00 PM

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

    • One option ~

      Write a module that will access these attachments and then create a generic payload with all the 3 attachments as main payload.

      Check the blogs on SDN that describe how attachments can be accessed inside modules.

      I have not tried this with a mail adapter, and hence do not know if it will work with mail adapter's ; it did work with file adapter's though.

      Regards

      Bhavesh

  • Posted on Dec 18, 2008 at 10:49 AM

    This is not possible.

    You can only send the main payload or alternatively one of the attachments to BPM and to IDoc.

    Regards

    Stefan

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Federico Bosnjak

      Hi Federico

      This is not possible.

      You cannot route attachments like you are looking for.

      if we look for an options to swap or transform then too only one attachment can be handled not all 3.

      If you develop an adapter module and get all the 3 attachments appended to a single payload. Again using mapping you can route them. but this will not go as an attachment if will be payload.

      Thanks

      Gaurav

  • author's profile photo Former Member
    Former Member
    Posted on Dec 17, 2008 at 06:19 PM

    Hi Fedrico,

    Did you have a look at Michal's blog : https://blogs.sap.com/?p=41157

    Thanks,

    Pooja

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Federico Bosnjak

      Hi Federico

      As stated in the blog

      Try with or without mail package. Set your outbound interface name as default interface name and use Keep attachments.

      Pi will be able to receive Payload with 3 attachments.

      In PI attachments are dealt separately then payload. You can access payload in Xi mappings but not attachments.

      Moreover your case is Mail to IDOC, where you want to handle attachments. This can be passed to R/3 as attachments only.

      As per my knowledge IDOC's cannot handle attachments only BDOC can. How you are trying to achieve this?

      Thanks

      Gaurav

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.