Attachments for mail adapter?

Hello everybody,
I've seen that XI 3.0 provides a file adapter. Has anyone experiences with this adapter? I'm looking for information if it's possible to send and receive the XML message content as attachment.
Thanks in advance
Björn

Hi Mohit,
Follow this blog for the ID configuration:
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/4383
Create Receiver Determination and Interface Determination as described, and add a sender file CC and receiver mail CC according to your needs, plus sender and receiver agreements.
In order to maintain the original file names, use a simple adapter module with the code mentioned here:
http://forums.sdn.sap.com/thread.jspa?threadID=2122711&start=14
Hope this helps,
Greg

Similar Messages

  • Data type for mail adapter

    HI
    what type of data will come to mail ??
    or
    which type of data type we should you for Mail adapter ??
    Regards
    Kumar

    Below link would address your doubts on mail adapters.
    Mail Adapter

  • Query related to multiple attachments in mail adapter

    Hi,
    I have a query related to multiple attachments in receiver mail adapter.
    I have successfully configured mail related scenarios but now I have another requirement in which I have multiple source files in one directory and I want to send one mail for multiple files as mail attachment using receiver mail adapter. Can anybody help me how to achieve multiple attachments in reciever mail adapter.
    To clarify the requirement more let us take an example
    Ex: I have 5 input files in the source which I pick up using additional files option in the sender file adapter, now I want to send those 5 files into one mail with 5 attachments. Can anybody explain how 5 different payload will be sent as multiple attachments in one mail.
    For your information I used, options like "keep attachments" , some parameters in module processesors etcs...but not able to find out as how exactly it will be achieved.......I dont want to use BPM collect pattern for this.....
    Need your help on this issue. Please suggest the solution as how it can be achieved using receiver mail adapter.
    Thanks & Regards
    Prabhat

    Hi,
    I resolved the issue on my own. Thanks for your help and support.
    Thanks & Regards
    Prabhat

  • Handling multiple xls , xlsx attachments in mail adapter

    We have a (sender)mail with excel attachment scenario which is converted to an Idoc.
    Currently we are using ''PayloadSwapBean" for converting .xls attachment as main payload which is being read using an adapter module.
    PFA the screenshot.
    We have a new requirement as below
    when there are additional attachments in e-mail only the relevant template (MS Excel file) loaded.
    Handle all MS Excel format: .XLSX in addition to existing .XLS
    ability to process multiple excel file in a mail
    Kindly suggest ways to handle it.
    Regards,
    Kesava

    Could you please provide the location of  PayloadSwapBean file (.Ear,.jar,.class and also provide AL11) Transaction  in PI 7.31.
    Brief Background:
    We have a requirement to read multiple attachment from mail adapter. PayloadSwapBean is capable of reading only single attachment. We would like to see the code of PayloadSwapBean and modify accordingly to meet the requirement.
    If there is any alternative could please suggest the solution for read the multiple attachments in sender mail adapter.

  • Modules for mail adapter

    I want to remove attachments from the emails i send out of PI,
    is there any modules for this purpose?
    by default if i chck: msg protocol as XIALL i get entire messge as an attachment, even if i select XIPAYLOAD i get the payload as an attachment,
    i only want to have the body and not the attachment.
    Is there any adapter module readily available to remove attachments from emails?

    i only want to have the body and not the attachment.
    Choose these in your Receiver Mail Adapter:
    Message Protocol :XIPAYLOAD
    Check Use Mail Package
    enter the appropriate URL
    No need to check other options...
    Using this you cannot enter From, To, Subject and other such fields in the channel....these should be configured in the mapping.....unless it is Parameterized mapping (applicable only to SAP PI7.1)
    Regards,
    Abhishek.

  • Infrastructure required for Mail Adapter

    Hi Experts,
    I need to work on a Mail Adapter B2C scenario where XI sends emails to the client with XML file as attachements.
    Questions:
    1. What is the additional hardware infrastructure required to use the Mail adapter apart from the SAP XI server.
    2. How can the mails be archived somewhere, in case I do not want to store them in my inbox-->sent items folder.
    Appreciate your help.
    Regards,
    Shobhit

    as for my knowledge is concerned...
    there are no more requirements ...
    but check the firewall issue.....and know what is the version and service pack u are using...
    and check wether u require sender,receiver addresses and subject required in the mail...if go with mail package check box in the mail adapter..
    check wether mails are to be sent to two or more receivers...if semicolon( will do to separate them.
    and check wether SLD is done proper or not bcoz,even i was right in my scenario and there was an issues in SLD and i traced it after few days...where i delayed my work..
    hmm.....if any i will get back to u shobit....

  • XSLT Mapping with Dynamic Configuration for Mail Adapter

    Hi Guys,
    I am wondering if somebody can help me please.
    I have a requirement in which I need to pick up the file from FTP and email it to the user as an attachment with the same file name and content.
    I know it is possible via 3 method either by deploying adapter module or via XSLT or JAVA Mapping.
    I preferred XSLT Mapping because it is easier to use and we don't need to compile the code like JAVA Mapping.
    I have done the XSLT Mapping but the only problem I am facing is that how to copy the file name which we get it from Dynamic Configuration to the Mail ContentDisposition.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:map="java:java.util.Map"
      xmlns:dyn="java:com.sap.aii.mapping.api.DynamicConfiguration"
      xmlns:key="java:com.sap.aii.mapping.api.DynamicConfigurationKey">
    <xsl:output indent="no" />
    <xsl:param name="inputparam"/>
    <xsl:template match="/">
    <!-- change dynamic configuration -->
        <xsl:variable name="dynamic-conf" 
            select="map:get($inputparam, 'DynamicConfiguration')" />
        <xsl:variable name="dynamic-key"  
            select="key:create('http://sap.com/xi/XI/System/File', 'FileName')" />
        <xsl:variable name="dynamic-value"
            select="dyn:get($dynamic-conf, $dynamic-key)" />
        <xsl:variable name="dummy"
            select="dyn:put($dynamic-conf, $dynamic-key, $new-value)" />
        <!-- copy payload -->
    I tried many option but unfortunately none of them worked.
    <Content_Disposition>attachment;filename="$inputparam"</Content_Disposition>
    <Content_Disposition>attachment;filename="$dynamic-conf"</Content_Disposition>
    <Content_Disposition>attachment;filename="$dynamic-key"</Content_Disposition>
    <Content_Disposition>attachment;filename="$dynamic-value"</Content_Disposition>
    <Content_Disposition>attachment;filename="$dummy"</Content_Disposition>
             <Content_Disposition>
                attachment;filename=
                <xsl:value-of select="dynamic-key"/>
             </Content_Disposition>
    I really appreciate if someone can please provide some guidance.
    Thanks,

    Hi,
    Yes u r correct it will show error in operation mapping.. bcoz u cannot check the DynamicConfiguration in Operation mapping...
    It will throw Exception..
    The parameter to UDF depends on ur requirement.... Let us know ur requirements exactly...
    If u r doing for file to file means no UDF required,, just check ASMA on both sides....
    Babu

  • How to remove a Attachment in Module for Mail Adapter

    Hi together,
    we are trying to remove a Mail Attachment within a outgoing Mail with the help of a new Module executed by the Mailadapter. Since we are using the XI 3.0, we are trying to do that by this statements:
          Message msg = (Message)inputModuleData.getPrincipalData();
          Iterator it = msg.getAttachmentIterator();
          Payload payload;
          do
                payload = (Payload)it.next();
                if(payload.getName().equalsIgnoreCase("MailMessage"))
                      it.remove();
          }while(it.hasNext()); ...
    The statement "it.remove" doesn't work.
    Does anyone have an idea, how we can remove the attachment?
    Thanks & Regards
        Thomas

    I am sorry, the adapter module API does not support the removal of an attachment.
    Regards
    Stefan

  • DT for mail adapter

    Hi,
    In my scenario, i have to read an attachment of a mail and use it as a payload.
    This is how the data in attachment looks like :
    COMPUTERISED SPARE PARTS ORDER
    DEALER CD : 10424
    ORDER REF : SP/174 DT.18/12/2007
    ORDER TYPE : R
    ITEM CD QTY
    12345678 45
    30151105 40
    31151060 40
    DD191125 10
    DG161121 50
    DH101180 10
    DH111015 10
    DH121096 10
    DH161194 40
    DH201048 2
    DH201049 2
    DS101036 20
    DS101276 6
    DU191022 2
    DZ73033W 1
    GH201012 50
    JB730522 1
    END
    Plz suggest what should be the DT structure ?
    Thx
    Priya

    1. There is nothing to be done on IR side.
    Correct
    2. In ID, I have to configure a sender mail adpater with correct email address and dummy Interface and namespace. Please do let me know if i have to use payloadswapbean and messagetransformation bean in the module configuration.
    Use only payloadSwapBean
    3. Also, have to configure a reciever file adpater. Can I use FTP or I have to use NFS only ?
    U may use any of them.
    4. Complete the rest of the steps in ID like RD,ID,SA,and RA.
    Correct
    Please confirm if the mail attachement will remain in txt format only and hope it works .
    Actually that is the logical solution. I couldnt get time to check it on my own server. So we shud try n hope for the best.
    Regards,
    Prateek

  • Mail Adapter - Attachments

    How to get Mail Attachments using "Mail Adapter" in XI?
    I will receive email with some files (with defined format). I need to put the data of file in a RFC.
    When I use "Mail Adapter", the XI send the attachments to XML?

    Hi,
      Extremely sorry, the links are,
    /people/pere.diaz/blog/2005/07/14/broadcasting-reports-via-mail-with-pdf-attachment
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    Please ignore the previous post, sorry again.
    Anirban.

  • Sender mail adapter : no messages and no error log

    Hello,
    I have configured a sender mail adapter to read mails from the inbox. I have used IMAP protocol. URL is specified as imap://EMHBSEXM01/Inbox. User name and password is also specified properly. I have kept poll interval to 1 minute. Messages in the inbox are in unread status. But the mail is not getting processed. I do not see anything after 1 minute. I tried using generate fetch report flag. But even then it does not create any message in SXMB_MONI. I checked runtime workbench for Mail adapter but I do not see any message for the same. Is there something that I am missing?
    Thanks,
    Dev

    Hi All,
    I chekced your responses and tried accordingly. Our basis team has given me new link now and the error message has changed. I am getting following error message.
    exception caught during processing mail message; java.io.IOException: unexpected login response; read 001F BAD Command received in Invalid state.
    Does anyone have any idea what this error is?
    Thanks in advance,
    Devendra

  • Xi 3.0: Mail adapter fails with "exception in method process"

    Hi.
    I configured the dynamic address for mail adapter following the fantastic-as-always weblog from michalgh.
    Althou everything seems to work fine (that is, i send correctly the email message) the A.F. returns an error with "exception in method process".
    I tried both async and sync case with the same result. In the sync case, the response contains:
    <!--  Call Adapter   -->
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="PARSING">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: Exception in method process.</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Any idea???

    Yes. There is also a response message in the imported structure.. it seems it should work as a kind of application ack with some info on the server that processed the mail.
    Anyway, in my server i get a 404 for the link you suggested.
    In the async case i don't get any error on the SXMB_MONI but only on the A.F.
    I attach the audit log for the async case:
    Audit Log for Message: ffb28585-3c53-0f4b-b366-7dd7a00513fc
    Time Stamp Status Thread ID Sequence No. Description
    2005-06-12 22:27:06 Success SAPEngine_Application_Thread[impl:3]_45 1118608026046 The message was successfully received by the messaging system. Profile: XI URL: http://CAPELAB010:50000/MessagingSystem/receive/AFW/XI
    2005-06-12 22:27:06 Success SAPEngine_Application_Thread[impl:3]_45 1118608026062 Using connection AFW. Trying to put the message into the receive queue.
    2005-06-12 22:27:06 Success SAPEngine_Application_Thread[impl:3]_34 1118608026093 The message was successfully retrieved from the receive queue.
    2005-06-12 22:27:06 Success SAPEngine_Application_Thread[impl:3]_34 1118608026375 The message status set to DLNG.
    2005-06-12 22:27:06 Success SAPEngine_Application_Thread[impl:3]_34 1118608026468 Delivering to channel: MAIL_RECV
    2005-06-12 22:27:06 Success SAPEngine_Application_Thread[impl:3]_34 1118608026468 Mail: message entering the adapter
    2005-06-12 22:27:06 Error SAPEngine_Application_Thread[impl:3]_34 1118608026828 Exception caught by adapter framework: Failed to call the endpoint
    2005-06-12 22:27:06 Error SAPEngine_Application_Thread[impl:3]_34 1118608026828 Delivery of the message to the application using connection AFW failed, due to: Failed to call the endpoint.
    2005-06-12 22:27:06 Success SAPEngine_Application_Thread[impl:3]_34 1118608026843 The asynchronous message was successfully scheduled to be delivered at Sun Jun 12 22:32:06 CEST 2005.
    2005-06-12 22:27:06 Success SAPEngine_Application_Thread[impl:3]_34 1118608026859 The message status set to WAIT.
    2005-06-12 22:32:07 Success SAPEngine_Application_Thread[impl:3]_34 1118608327109 The message was successfully retrieved from the receive queue.
    2005-06-12 22:32:07 Success SAPEngine_Application_Thread[impl:3]_34 1118608327125 The message status set to DLNG.
    2005-06-12 22:32:07 Success SAPEngine_Application_Thread[impl:3]_34 1118608327156 Delivering to channel: MAIL_RECV
    2005-06-12 22:32:07 Success SAPEngine_Application_Thread[impl:3]_34 1118608327171 Mail: message entering the adapter
    2005-06-12 22:32:07 Error SAPEngine_Application_Thread[impl:3]_34 1118608327250 Exception caught by adapter framework: Failed to call the endpoint 
    2005-06-12 22:32:07 Error SAPEngine_Application_Thread[impl:3]_34 1118608327250 Delivery of the message to the application using connection AFW failed, due to: Failed to call the endpoint .
    2005-06-12 22:32:07 Success SAPEngine_Application_Thread[impl:3]_34 1118608327281 The asynchronous message was successfully scheduled to be delivered at Sun Jun 12 22:37:07 CEST 2005.
    2005-06-12 22:32:07 Success SAPEngine_Application_Thread[impl:3]_34 1118608327296 The message status set to WAIT.
    2005-06-12 22:37:07 Success SAPEngine_Application_Thread[impl:3]_34 1118608627421 The message was successfully retrieved from the receive queue.
    2005-06-12 22:37:07 Success SAPEngine_Application_Thread[impl:3]_34 1118608627437 The message status set to DLNG.
    2005-06-12 22:37:07 Success SAPEngine_Application_Thread[impl:3]_34 1118608627546 Delivering to channel: MAIL_RECV
    2005-06-12 22:37:07 Success SAPEngine_Application_Thread[impl:3]_34 1118608627562 Mail: message entering the adapter
    2005-06-12 22:37:07 Error SAPEngine_Application_Thread[impl:3]_34 1118608627671 Exception caught by adapter framework: Failed to call the endpoint 
    2005-06-12 22:37:07 Error SAPEngine_Application_Thread[impl:3]_34 1118608627671 Delivery of the message to the application using connection AFW failed, due to: Failed to call the endpoint .
    2005-06-12 22:37:07 Success SAPEngine_Application_Thread[impl:3]_34 1118608627703 The asynchronous message was successfully scheduled to be delivered at Sun Jun 12 22:42:07 CEST 2005.
    2005-06-12 22:37:07 Success SAPEngine_Application_Thread[impl:3]_34 1118608627734 The message status set to WAIT.
    2005-06-12 22:42:07 Success SAPEngine_Application_Thread[impl:3]_40 1118608927734 The message was successfully retrieved from the receive queue.
    2005-06-12 22:42:07 Success SAPEngine_Application_Thread[impl:3]_40 1118608927734 The message status set to DLNG.
    2005-06-12 22:42:07 Success SAPEngine_Application_Thread[impl:3]_40 1118608927750 Delivering to channel: MAIL_RECV
    2005-06-12 22:42:07 Success SAPEngine_Application_Thread[impl:3]_40 1118608927750 Mail: message entering the adapter
    2005-06-12 22:42:07 Error SAPEngine_Application_Thread[impl:3]_40 1118608927765 Exception caught by adapter framework: Failed to call the endpoint 
    2005-06-12 22:42:07 Error SAPEngine_Application_Thread[impl:3]_40 1118608927781 Delivery of the message to the application using connection AFW failed, due to: Failed to call the endpoint .
    2005-06-12 22:42:07 Error SAPEngine_Application_Thread[impl:3]_40 1118608927796 The message status set to NDLV.
           Total: 33 Entries   1020304050 messages displayed per page; this is page 1 of  1 page(s)     

  • Dynamic Mail Adapter Config

    Hi All,
    We're trying to use a dynamic mail direction in the mail adapter checking the Mail Package option as it's mentioned in: /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address (excellent blog).
    But we have a mapping error in the SXMB_MONI:
    RuntimeException in Message-Mapping transformation: Cannot produce target element /ns0:Messages
    In the mapping we have one source message with the content of the mail and the direction, and two different structures for target. One with the mail package structure and the other with the target content.
    Do you have any idea why we're having this mapping error?
    Thanks in advance!

    I'm trying to use the dynamic adress for mail adapter. So I've created an external object from the file mentioned in https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1361. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    Then I've done a multimapping, first message with the mail payload and the second with the contents of the mail.
    In configuration, I've checked the Mail Package option and execute the interface.
    Sender adapter and mapping was right, but there is an error in the mail adapter as follows:
    error occured: [2006-05-29T14:38:31Z] unable to call the mailer; com.sap.aii.messaging.srt.BubbleException: Failed to call the endpoint [null "null"]; nested exception caused by: com.sap.aii.messaging.util.XMLScanException: expecting start tag: Mail, but found MM57_V01_COM_MONTH_MAIL_FILE at state 1
    Any idea about this?
    Thanks in advance!!!!

  • Mail adapter scenario

    Hi 
    I require some input on including a mail adapter to an existing scenario
    The scenarios is as follows,
    I have to create some files around 20 and place them in two folders , that build has been done and tested , so I have a multi mapping , for those 20 files , and enhanced interface determination and is working fine
    Now a new requirement is to send an email ,
    kindly  tell me the steps in IR and ID to include the mail adapter in this interface ??
    considering it as an additional feature, nthing to do with Files ,,,
    which means that an email adapter has to be called with the file adapters ( not before not after....the precedence doesnt matter )
    its just that along with creating the files an email has to be sent ... thats all
    I want to know what am i required to create :
    in IR : is there a separate interface required .. smthing to do in mapping also ? i am presuming not since it is inbound
    in ID  : can i create a dummy busines service  and what all do i need to create ???
    please help
    thanks
    Dev

    Hi,
    You create a message type for mail adapter and an message interface. You can also use the predefined message type from sap. So now in multimapping you add this message type and map from your source to this mail mapping. Add the same message interface in interface mapping.
    Create a mail receiver communicaiton channel with your mailbox parameters. Then add this to your receiver determination. Also you need to create a receiver agreement for this one.
    You can see some help here:
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    You can do a search for more blogs and tutorials on mail adapter.
    Regards,
    ---Satish

  • File to Mail Scenario- Error in Mail Adapter

    Hi,
    I am working on File to Mail Scenario- I am getting the below Error in Mail Adapter
    Delivering the message to the application using connection Mail_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.af.sdk.xi.srt.BubbleException: Failed to call the endpoint  [null "null"]; nested exception caused by: java.io.IOException: no receiver address specified.
    Could any one please provide a solution
    Rgards,
    Varun

    Please recheck the mail adapter configuration.Check the url field.
    Ref for Mail adapter
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    http://help.sap.com/saphelp_nw04/helpdata/en/02/265c3cf311070ae10000000a114084/frameset.htm

Maybe you are looking for

  • Can i use a brand new macbook pro without internet connection? I can't get through the setup without specifying internet.

    My friend bought on my advice a macbook pro. He has no internet connection at home. Getting started with the macbook pro, we can't skip the internet connection information box. This may seem a little strange in a www organised world, but he only want

  • Condition types accruals

    Hi gurus, I am thinking if following requirement is possible: Condition types are not marked as accruals. ( Since these condition types will be the basis of tax calculation) Post the amount of these condition types to dedicated G/L account other than

  • Import PO Duty Value duplication

    Dear MM Experts, I am observing some strange values coming to PO header in duty condition. User entered value to duty that is being display correctly but along with the user entry, system is also adding some strange value to another line in Header wi

  • QT Won't Install - Invalid QTJAVADIR Property

    Hello. I am trying to install iTunes and it is failing during the QT installation. When looking at the log file, I see that it is picking up an invalid path for QTJAVADIR (and EXISTINGQTJAVADIR). It is reading it as '1\jre\lib\ext\' and trying to rea

  • FTPClient Package does not exist?

    I have an FTP program. I'm trying to use this package. Here is a link to the class package overview: http://www.enterprisedt.com/downloads/ftp/doc/com/enterprisedt/net/ftp/FTPClient.html When I attempt to compile, I get the error that the package doe