Additional Attachment in EMail-Adapter

I would like to build a pdf from an XML-File, that i have attached to the email.
I build an conversion routine which build from the xml-File the pdf. This works
probably correct. But what is the favourite way to attach a second attachment
to the email. One problem is that the format of the document is binary.
Here i have a great problem with the integration engine. We build the mail and
the 2 attachments with an java-mapping-program, but we always have problems
with the binary format.

Hi Rekha,
you can realize the outbound scenario without BPM with a message split : <a href="/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible without BPM - Yes, it’s possible!</a>
The inbound scenario can be done with a <a href="/people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer.
BPM should be able to handle large files. It is only slow. So if you have to much of large files it can be a problem. The bottle neck for large files is assumedly the mapping. Depending on mapping content, hardware and kind of mapping in this sequence files of 40 - 200 MB should be mappable (appreciated).
Regards,
Udo

Similar Messages

  • Sending an input pdf file as an attachement via EMAIL adapter in PI

    Hi XI Experts,
    Kindly request you to help in the below issue:
    I have a File to EMAIL interface in which the file  channel would pick up a file "Test.pdf".
    This file should be sent as an attachment to a number of receipients as it is without any formatting of the content.
    In other words, XI should pick the file and attach it as it is as an EMAIL.
    There is no need of any mapping changes.
    We are giving the receipients during runtime hence, we have done dynamic configuration.
    Kindly suggest how to attach the file as it is in the EMAIL.
    Thank you.
    Regards,
    Subbu

    Hi Subbu,
    Read this guide which explains about sending attachments via email.
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05
    Regards
    Krish

  • How to send only one (of several) attachment from a receiver email adapter?

    Hi all,
    I have been working with the SAP XI email adapter for some time and now I encountered the following challenge:
    I am receiving a message via email from a partner, call some modules which lead to the generation of 5 attachments in total for the incoming message.
    I then map the MainDocument to a CONTRL message and return it to the sender using the dynamic parameters of both the sender and the receiver email cc.
    I am filling these parameters inside the message mapping; so far I am not using the mailpackage xsd (the only things out of the ordinary are checked boxes for "use adapter specific parameters", "variable transport" and "keep attachments").
    My problem is that the email receiver cc now generates an email with 5 attachments when I need it to add only the CONTRL (aka MainDocument) as attachment to this email.
    Do you know if there is a way to tell the receiver cc to only use one attachment (or to remove attachments from the original message, f.ex. inside the message mapping)?
    Thanks and cheers!
    Stefan

    Hi Stefan,
    >>>>Do you know if there is a way to tell the receiver cc to only use one attachment (or to remove attachments from the original message, f.ex. inside the message mapping)?
    1. It cannot be done in a mapping
    2. have a look at mz blog
    how simple it is to write an adapter that will do what you need
    (just check the delete part of this blog):
    /people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Filename attachment to dynamic email address in receiver email adapter

    Hi,
    Can i send a file with dynamic name to a dyanmically generated Email Id as attachment using receiver Email adapter ?
    Thanks
    Rupesh Kumar

    Hi,
    I had gone through the links given , but it doesn't answer my question completely. I think i need a java code to send dynamically generated filename to be send to dynamically generated email ID.
    The file name and the email Id is available in the sender adapter.
    This filename should be send as attachment to the Email Id using receiver Email adapter.
    Thanks & regards,
    Rupesh

  • Creation of additional attachment in Java Mapping

    Hello all,
    I want to use a Java Mapping with the functionality to create a second /attachment which I can send over email out?
    I don’t want to pick this file somewhere from the server, instead I want to fill the content of the additional attachment directly in the java mapping.
    I hope somebody knows the answer of my question.
    If its possible is there any kind of example??
    Many thanks for your help
    ilka

    hi Stefan,
    http://scn.sap.com/thread/1874962
    Regarding the comment in this thread, can you please tell me if you have faced any issue with creating output attachments. Right now, i have a message mapping in which i have written a udf to create attachments
    this message mapping is a multi mapping and the source is 0-unb. I have used a return as xml on the root message and pointed it to the udf after split by value.
    There are three root nodes in one of my cases, and when this goes through this mapping, there is 1 attachemnt each created with three main documents and submain documents. However, all the attachments contain details of the first root node itself where in actually it should be each main and submain document having a different attachment. Please find my udf below. Please let me know if you think it is wrong somewhere.
    udf :-
    GlobalContainer globalContainer = container.getGlobalContainer();
    OutputAttachments outputAttachments = globalContainer.getOutputAttachments() ;
    int flag =0;
    AbstractTrace trace = container.getTrace();
    String attachmentName = "";
    //for(int i=0;i<var1.length;i++){
    try
    var1=var1.replaceAll("><",">\n<");
    attachmentName = "attachment"+cnt;
    Attachment newopAttachment = outputAttachments.create((attachmentName), var1.getBytes("UTF-8"));
    outputAttachments.setAttachment(newopAttachment);
    trace.addInfo("newopAttachment"+newopAttachment);
    cnt=cnt+1;
    attachmentName ="";
    newopAttachment = null;
    var1="";
    catch (Exception e)
    trace.addInfo("ever reaching trace");
          e.printStackTrace(); 
    //result.addValue("1");  
    //result.addValue("1");  
    return "1";
    Input :-
    Messages
    Message1
    SBDH
    SBDH
    SBDH
    Each of the above SBDH, i have returned as xml and pointed to the udf after split by value
    Your help is highly appreciated.
    Regards,
    Ninu

  • Using Attachments in the Email Adapter

    Hi,
    I'm using an email adapter(Sender - XIPayload) to send message to XI. It was working fine when my mail content was the XML messsage. But now i have to use the content of an attachment file to do the mapping. The attachment is an XML file. I have checked the Keep attachments option and now i can see that the payload contains two sections. One is the mail content and the attachment content. But the mapping fails. How can i specify that the content of the attachment is to be used for mapping? Can somebody give some inputs on how to achieve this?
    Thanks,
    Sandeep

    Hi Sandeep,
    To use attachments in mail adapter, just do the following things:
    -     Set the Keep Attachments indicator.
    -     And you use the PayloadSwapBean module to swap the application payload with one of the attachments.
    Please also go thru the following links:
    http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/content.htm
    Regards,
    abhy

  • Can XI Message be mapped to a flat file attachment in Mail adapter

    Hi guys,
    I have a requirement, where I have ECC system seding a XI message to XI.
    Now XI has to convert this to a flat file may be tab delimited and send this as an attachment in email using receiver mail adapter.
    I want to avoid BPM and make it simple.
    Appreciate any help on this topic.
    Regards
    Sujan

    Hi,
    Here are some mapping examples.
    /people/rahul.nawale2/blog/2006/07/18/java-mapping-an-alternate-way-of-reading-a-csv-file
    /people/alessandro.guarneri/blog/2007/03/25/xi-java-mapping-helper-dom
    /people/carlosivan.prietorubio/blog/2007/12/21/implementing-a-java-mapping-in-sap-pi
    /people/venkataramanan.parameswaran/blog/2006/12/12/java-mapping-to-handle-flat-files-in-sap-xi
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
    /people/michal.krawczyk2/blog/2005/02/25/simple-java-code-in-graphical-mapping--xi
    Vishal

  • Attach to email freezes session

    Environment:
    Server 2003 SP2
    Citrix Presentation Server Ver 4.5.1
    Outlook 2003 SP3
    Acrobat Reader  Ver 9.1.3
    CITRIX SESSION FREEZES WHEN SENDING EMAIL WITH PDF ATTACHMENT FROM ACROBAT READER
    User opens PDF email attachment in Outlook. Acrobat Reader opens the attachment and user does “Attach to Email”. Outlook message window opens with PDF attached. User enters To: address – additional text may, or may not, be entered. User clicks on “Send”. Session freezes with no Application or System Events recorded on the Citrix server. Trouble occurs intermittently.

    Not sure but this might be a Windows Control Panel Issue.

  • Query related to Email adapter

    Hi,
    I have query related to receiver Email adapter. I am able to run a scenario for 2 attachments in receiver mail adapter scenario.
    My scenario is that I am picking up the multiple files using sender file adapter "additonal fiiles" fucntionality and and post the two files as attachments in receiver email adapter. I am picking up two formats: .xml file and PDF and successfully attached to the receiver email adapter.
    My query is is related to Standard module processors sequence.
    For 3 files in mail attachments(.xml , pdf & .txt)  what should be the module processors sequence in receiver email adapter?
    Currently I am using the following module processors sequence
    1     localejbs/AF_Modules/MessageTransformBean                          Local Enterprise Bean     trans2
    2     localejbs/AF_Modules/PayloadSwapBean                          Local Enterprise Bean     swap
    3     localejbs/AF_Modules/MessageTransformBean                          Local Enterprise Bean     trans1
    4     sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean     Local Enterprise Bean     mail
    swap -> swap.keyName -> payload-name
    swap> swap.keyValue> file1
    trans1> Transform.ContentDescription>file1
    trans1> Transform.ContentDisposition>attachment
    trans1> Transform.ContentType>application/pdf;name="file1.pdf"
    trans2>Transform.ContentDescription>file1
    trans2>Transform.ContentDescription>inline
    Can any body tell me what should be the sequence of module processors and the associated parameters so that all formats(.xml , pdf & .txt)  should go as an attachments in the reciever email adapter.
    Thanks & Regards
    Prabhat

    it would be something like this, Try this
    1 localejbs/AF_Modules/PayloadSwapBean Local Enterprise Bean swaptxt
    2 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean trans3
    3 localejbs/AF_Modules/PayloadSwapBean Local Enterprise Bean swapxml
    4 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean trans2
    5 localejbs/AF_Modules/PayloadSwapBean Local Enterprise Bean swappdf
    6 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean trans1
    7 sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterprise Bean mail
    swapxml -> swap.keyName -> payload-name
    swapxml> swap.keyValue> file2
    swappdf -> swap.keyName -> payload-name
    swappdf> swap.keyValue> file1
    trans1> Transform.ContentDescription>file1
    trans1> Transform.ContentDisposition>attachment
    trans1> Transform.ContentType>application/pdf;name="file1.pdf"
    trans2>Transform.ContentDescription>file2
    trans2>Transform.ContentDisposition>attachment
    trans2> Transform.ContentType>application/xml;name="file2.xml"
    trans3> Transform.ContentDescription>file3
    trans3> Transform.ContentDisposition>attachment
    trans3> Transform.ContentType>application/txt;name="file3.txt"
    mail --> mime.contenttype   --> multipart/mixed
    I have not tried this myself. but it should work

  • Alert Mechanism Vs Email Adapter? please help!

    Hi Experts,
           I have requirement where I have to send error info as email. The email has following characteristics:
    1. Content is multi-line.
    2. Data is dynamic.
    3. Content has to be formated. Like header, footer and '---' lines as separaters.
    4. Content could be more than 100 lines.
    5. More than one email content may be consolidated into one.
    6. Content can also be sent in HTML format.
    Is email alert mechanism suitable for this requirement? if yes then How?
    If all of the above can be satisfied by Alert mechanism then what is the use of Email adapter?
    Are there any pros and Cons of using Alert mechanism and Email adapter?
    Please help!
    Thanks
    Gopal

    Hi Gopal,
    Please be specific in your question. Do you want to send an error info as an e-mail when your scenario causes an error or Do you want to send an error log which is generated for any other scenario as an e-mail attachment/Error log’s Content as the body of  a mail. Both these things are possible in SAP XI 3.0.
    1.       We can send an e-mail with multi-line content using E-Mail Adapter.
    2.       We can set Dynamic Data as the e-mail content.
    3.       The Dynamic Content has to be formatted either in Mapping or in Module and then sent to E-mail Adapter. E-Mail Adapter cannot do the formatting.
    4.       Content can be of any number of lines.
    5.       The consolidation should be done in Mapping or in a Module program and the consolidated data should be given to  the adapter.
    6.       Yes Content can also be set in HTML format
    The above said points are possible in SAP XI 3.0’s email adapter. Alert Mechanisms can be used when you want to send an alert on any event occurrence. It has many limitations like the content should be within specified length etc. we cannot use alert mechanism to pick a file and post the content of the file as an Email. Alert mechanism will work only for the alert categories which you have defined.
    Regards
    kausik m

  • Acrobat's "Attach to Email" fails due to tooltip behavior???

    OK, let me start out by acknowledging that I’m claiming
    my car won’t start because the bathroom light is on …
    but here goes:
    I’ve got a menu of PDF’s with icons next to each
    to open, print, email, or select (for multi-print/email) All of the
    icons have the tooltip behavior, the only modification being a
    slight increase in the offset of the tooltip. The tooltips all work
    fine, the icons all work fine, everything opens, prints, or
    attaches to emails (via a MAPI behavior I’ve written) as
    expected … except … if you open a PDF document and
    select “Attach to Email” from Acro Reader’s file
    menu, a MAPI email form pops up but hitting send does nothing. Once
    a particular instance of the reader has been corrupted it can no
    longer email any PDF, even those opened directly by the OS,
    however, my own MAPI behavior remains functional and I can still
    email PDFs directly from the menu … so the corruption appears
    to be in the reader, not the email client.
    Before you think I’m crazy, I tried a simple test: 2
    buttons, one with just the file open behavior, the other with file
    open + tooltip. The file open only behavior works fine all day
    long, the file open + tooltip behavior will eventually cause
    problems with the reader’s email capability … maybe not
    the first time, but after 5 or 6 tries the problem will eventually
    surface. Once the problem has surfaced, closing the offending
    document but leaving the instance of the reader open will cause all
    subsequent attempts to email to fail when opening the PDF from
    either button. Closing the reader will restore email if the PDF is
    opened from the non-tooltip button and we’re back to where we
    started.
    We have demonstrated the problem with both Acro Reader 8, and
    Acro 7 Pro on XP Pro. Anyone know what might be happening?

    I added these additional strings via Reg Editor. Similar to a previous posting and it now works fine.

  • Attachments in email whit receiver email adapter

    hello!
    it's possible to send a a file attached into a email whit a receiver email adapter?
    i want take this file from a directory (example whit ftp adapter) and send via email whit XI.
    this is a PDF file and NOT generated from payload.
    thanks
    Alex

    alessandro..
    Check out the links below..might help walk you through it..
    http://www.riyaz.net/blog/index.php/2008/02/23/xipi-sending-emails-using-xi-mail-adapter/
    This is a complete how to pdf
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0964d7c-e66e-2910-24bb-ac535e4a5992
    Hope that helps
    Regards
    Ravi Raman

  • Alerting with Content Master Conversion Agent via Email Adapter

    Hi all,
    my question is: is it somehow possible to have the alerting also with EMail Scenario and Content Master? i am on SP 14 and in my alert rule there is no restriction. But when i make a restriction on adapter, the mail adapter is not available.
    So, Alerting with Email Adapter is not possible??
    Thanx a lot, folx,
    Felix

    Hi Felix,
    I have been trying to configure alerts using NO RESTRICTION. When i try to trigger my alerts using the report RSALERTEST, message is sent to my alert inbox.
    But, when any error occurs on my Integration Engine or Adapter Engine, the alert is not triggered.I am on SP14.
    Is there any additional configuration that needs to be done for the same?? Are you able to get ALERTS in your inbox whenever anything fails in your Integration Engine or Adapter Engine.
    It would be very helpful if you could answer this query.
    regards,
    bhavesh

  • Error when using the Attach to Email... Feature

    I currently using Adobe Reader 8.0 as well as Adobe Acrobat Professional 8.0. Whenever I try to use the Attach to Email... feature I get a debugging error. It always brings up the Visual Studioi Just-In-Time Debugger. It will create the email, but it will not attach the document at all. I've also tried this on a computer that only has Adobe Reader 8.0 on it. When using that computer, it always gives me an error message naming the .dll file gwmlt1.dll.
    I can't seem to find what the issue is with this feature. Any help would be very much appreciated.
    Also, We are using Windows XP on all of our computers here. If anyone needs any additional information about this, just let me know.
    Thanks in advance for any help.
    TPrime

    gwmlt1.dll is something to do with GroupWise (your e-mail system)
    Maybe Novell can help.
    Aandi Inston

  • Issue in attachement in email

    HI,
       Am trying to send a attachement in email.If a trying to send it as a text format am getting the o/p if i change it as XLS or CSV am not getting any attachement.Wats the reason for it and how to correct it.

    Hi Shruti,
    Which M you are using to attach and send the mail. Please provide some code.
    Regards,
    Premal

Maybe you are looking for