File to Mail Adapter issue

I am trying FILE-TO-MAIL ADAPTER senorio
I have file contains following data(more than one row data in file)
emailaddress,subject, content
I used receiver Data type
https://websmp205.sap-ag.de/~sapidb/012006153200000361852004E/ximail30_xsd.txt
If text file is only one record it is sending mails as mail defininition is 1..1 in ximail30_xsd
I changed the mail definition in ximail30_xsd to 0...unbounnd and recreate the external definition andcreated interface based on external definition.
I am getting validation error.
please advice me.

Hi,
><i>I changed the mail definition in ximail30_xsd to 0...unbounnd and recreate the external definition andcreated interface based on external definition.</i>
Maybe you can consider using MultiMapping to send the multiple Mails out of XI.
/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
Is this what you want?
Regards
Bhavesh

Similar Messages

  • E-Mail reporting in file to mail adapter scenario

    Experts,
       I am working on a file to mail adapter in which, have to just send a mail to the recipient by  putting a subject line and mail body.
    am following the following example
    /people/community.user/blog/2006/09/07/email-reporting
    but my requirement is not to send the mail attachment. I just need to send a mail body stating the error location.
    here at teh receiver side, have downloaded a mail.xsd. in this "subject line","from field" , "to" field is there but there is no "mail body" field .
    Can any one please help me out. I just require to send a mail body to the recipient.
    Thanks
    Veeru

    Expert,
       I have used but still am getting teh attachment not as a mail body.
    Isit possible to send the mail body via XSLT mapping , for eg
    <?xml version='1.0'?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://perks.com/MailTest">
      <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
        <xsl:template match="/">
       <ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
        <Subject>Error files from XI</Subject>
        <From>from mail ID</From>
        <To>to mail id</To>
        <Content_Type>text/html</Content_Type>
        <Content>
         <xsl:text xsl:space="preserve">The error files for which service entry has not been created:</xsl:text>
         <xsl:value-of select="$break"/>
         <xsl:value-of select="$break"/>
         <xsl:value-of select="$tableB"/>
         <xsl:value-of select="$thB"/>
         <xsl:value-of select="$tdB"/>
         <xsl:text xsl:
        </Content>
       </ns1:Mail>
      </xsl:template>
    </xsl:stylesheet>
    Any suggestions?
    Thanks
    Veeru

  • Help Required on File to Mail Adapter scenario

    Hi all,
    Can someone give me some links or material regarding the step by step procedure to configure a file to mail adapter scenario (including the design and configuration). I have already gone through help.sap.com, but I need more clarification. So please guide me accordingly
    Regards
    V.Kartik

    Hi Karthik,
         Also check these links on File to Mail adapter scenario:
        Blogs:
        /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
        /people/sap.user72/blog/2005/06/08/sending-attachments-in-mails
        Sap File on Mail Adapter:
        https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05
        Also check these similar threads:
        How to implement file to mail scenario
        What is the process for sending file thru email using Mail Adapter ???
    Regards,
    Subhasha Ranjan

  • File to mail adapter scenario.

    Hi All,
    i have a file to mail adapter scenario.
    here i get the data from tthe different vendors and what ever comes in should be validated and  if needed sent as an attachment or detached from the message and then from receiver mail adpter to application server..if possible content conversion has to be done.
    my questions are...
    <b>1.whare should we validate the data..is it in the XI server or receiver mail adapter..
    if so..how to do that validation
    2.how can we send as attachments ..
    3.how can we detach them..i.e if attachments are not required 4.if content conversion conversion has to be done where is that done..
    4.after coming out of the receiver adapter....how can we send it to the appliocation server.</b>
    Thanks in advance..
    cheers,
    raghavesh
    Message was edited by:
            Raghavesh Reddy
    Message was edited by:
            Raghavesh Reddy

    Raghavesh,
    Not sure if i follow the entire question.
    ><i>here i get the data from tthe different vendors and what ever comes in should be validated</i>
    I guess you are getting files using the file adapter.
    ><i>and if needed sent as an attachment or detached from the message and then from receiver mail adpter to application server..if possible content conversion has to be done.</i>
    Not sure I follow this part. You validate your incoming file and what do you do
    1. If the file is valid?
    2. If the file is invalid?
    are you sending mails in both cases.
    Like pinted out there are multiple places where validations can be done,
    1. Module -->  https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f013e82c-e56e-2910-c3ae-c602a67b918e
    2. Mapping --> Graphical / Java
    There are many options and they all depend on the incomuing payload and the entire process.
    So , if you can give us more details, maybe an optimum solution can be discusses.
    Regards
    Bhavesh

  • Sender Mail Adapter issue

    Hi All,
    We are getting this error in Sender Mail adapter.
    "exception caught during processing mail message; java.net.ConnectException: A remote host refused an attempted connect operation"
    It is a (Lotus Notes) Mail to File scenario.
    Used POP3, and gave the URL as POP:// ** .
    I have tried pinging the server and getting a good response.
    I have also tried the OS01 ans it returned a response : Program Terminated.
    I am not sure if the POP3 port is enabled.
    Are there any check points we are missing ?
    Please throw some light on this as we need to solve this asap ..
    Yashwanth
    Edited by: YashwanthSVK on Aug 2, 2011 7:18 PM

    Shabarish is right.
    This seem a connectivity issue. Try to ping Mail server from your PI System and check pop3 port.
    This document can be helpful for you:
    http://wiki.sdn.sap.com/wiki/display/XI/SMTPConfigurationinSAPXI

  • Receiver Mail Adapter Issue.

    Hi All,
    I am running an interface from proxy to email using the inbound mail adapter. The email adapter is resutling in the following exception:
    failed to send mail: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
    Could any one please throw some light into this issue?
    Thanks a ton! in advance.
    Thanks,
    Manohar Dubbaka.

    Hi,
    Thanks for the quick response.
    I am trying to send an attachment using the email. I am using
    Transport Protocol as : SMTP
    Message Protocol as : XIPAYLOAD
    Adapter Engine as : Integration Sever
    URL as: smtp://10.1.1.11
    Configure User Authentication as : Check
    Content Encoding as: base64
    Keep Attachments as : Check
    And also using the Adapter Framework modules as:
    AFT_Modules/StrictXml2PlainBean                               Local Enterprise Bean       1
    AF_Modules/MessageTransformBean                           Local Enterprise Bean        3
    AF_Modules/PayloadSwapBean                                   Local Enterprise Bean        2
    sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean      Local Enterpriese Bean   mail
    I am converting the XML message into comma separated text file using the following transformation
    1              Record.beginSeparator         "
    1              Record.endSeparator           "\r\n
    1              Record.fieldSeparator          ","
    1              singleRecordType               Record
    3             Transform.ContentType        text/plain;name="MGFSPECS.TXT"
    2             swap.keyName                   content-type
    2             swap.keyValue                   text/plain
    This mail adapter was working fine, earlier. I am not sure, why this is resulting in issues ?
    Truly, appreciate any kind of help in gettint this resolved.
    Thanks
    Manohar Dubbaka

  • Mail adapter issue with mail attachment

    Hi all,
    I have a scenario mail to file and i have a problem.
    Is it possible, in a sender adapter mail to use the option keep attachment and mail package at the same time ?
    So,is it possible to use the module payloadswapbean and XMLanonymizer in a sender adapter mail in order to suppress a namespace from the attachment in it ?
    Is the option mail package useful if i am using payloadswapbean module ?
    from what i see, It seems that the XMLanonymizer doesn't work for sender mail adapter with attachment. I've tested the configuration on a sender adapter file and works fine.
    Anyone already tested it ?
    Thanks,
    Jean-Philippe
    Edited by: Jean-Philippe PAIN on Feb 9, 2010 5:29 PM

    Hi Stefen,
    Thanks for the answers.
    The question is, whether the payloadswapbean is useful at all in a sender mail scenario.
    I don't understand this one ! Isn't mandatory in sender adapter mail scenario if you want to read your mail attachment ?
    Yes. If you configure the payloadswapbean correct, the XMLanonymizer works on the attachment.
    It is not easy to set the payloadswapbean in a correct way. IPost your parameters here, when it does not work for you.
    Ok. Maybe my configuration is wrong, please tell.
    Processing sequence :
    localejbs/AF_Modules/PayloadSwapBean => 0
    localejbs/AF_Modules/XMLAnonymizerBean => 1
    sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean =>mail
    module configuration :
    swap.keyName =>Content-Disposition
    swap.keyName => Content-Description
    swap.keyValue=>MailAttachment-1
    swap.keyValue=>attachment;filename="MailAttachment-1.xml"
    anonymizer.acceptNamespaces =>http://namespace ''
    anonymizer.quote => ''
    I am on PI 7.1 version and when i am looking in the monitoring(sxmb_moni), it doesn't seems working.
    Thanks,
    Jean-Philippe
    Edited by: Jean-Philippe PAIN on Feb 10, 2010 10:36 AM

  • Mail Adapter Issue

    Dear All,
    I am facing a problem in my Scenario . I have configured sender mail adapter and the mail gets picked from the Mail Box.
    But the problem is in the content field i get something like '=20'. I analysed it and checked that whenever a space or a enter key is pressed when writing a mail then in XI it gets converted to =20.
    The problem is when the data goes to target system CRM it goes as =20.
    Can anyone let me know how can we take care of the same.The problem is with the Content field which gives characters =20 .
    Format as below
    <xim:Mail xmlns:xim="http://sap.com/xi/XI/Mail/30">
      <Subject>test</Subject>
      <From>test123@test</From>
      <To>test12233</To>
      <Content_Type>text/plain;charset="us-ascii"</Content_Type>
      <Date>2008-09-22T09:47:40Z</Date>
      <Message_ID></Message_ID>
      <Content>=20Dear CRM team=20=20Please find below mails kindly check =20Regardsxyz=20=20.</Content>
      </xim:Mail>

    Hi! Amit,
    This is Amar Srinivas Eli. Give me your E Mail ID so that I will send you one document regarding FIle To Mail Scenario Adapter which I did a test scenario successfully and also I hope it will be useful to you.
    Also please make sure as
    Transfer Protocol     SMTP
    Message Protocol    XI PAYLOAD
    Also select the option in radio button as Keep Attachments
    Regards
    Amar Srinivas Eli...
    Note:  Kindly  POints if useful....

  • File to mail adapter

    hey guys
    i m doing a file to Mail scenario in which i have to send mail in report format and assign the receivers dynamically,i m making use of /people/community.user/blog/2006/09/07/email-reporting to send mail in report format and /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address to assign receiver dynamically but m kinda lost in hoe should i combine these two scenarios,what will be the structure of my source and target message be?
    can anyone help me in deciding how will my source and target datatypes look like?
    thanx and really appreciate ur help
    ahmad

    Your structure is dependent upon the messages that you want to import and export.  What file formats are you trying to use?
    If you are trying to follow Michal Krawczyk's Mail Adapter weblog then take a look at the XML message in his blog, it has fields <subject><to><from><content>.  It appears that he imported an Email structure from an XSD, but there is no reason you can't create that structure yourself in the IR.
    As for the weblog by Prakash Arunachalam, he provides an XML structure in his weblog at the bottom I believe.
    Message was edited by:
            Harrison Holland

  • Proxy to Mail Adapter issue

    Hi Experts,
    I have a requirement like a control report is comming from SAP through proxy to XI and I need to send that control report as an attachment in excel format from XI to the 3rd party by the mail adapter.Also in the mail body I have to send the information what is there in the excel.
    Now as I have not worked before in mail adapter I want to know how can I send the report as an attachment in a mail adapter that too in excel format format and how can I do the mail body?
    Thanks and Regards
    Atanu Mazumdar

    AFAIK there is no standard solution in PI to convert the xml message sent by proxy as an xls attachmet. You may have to plugin adapter modules to your receiver email com channels to achieve this. first step would be to convert the xml to flat structure using MessageTransformBean, you could then use the payloadswapbean to convert the payload to an attachment and name it with a .csv extension(which can be opened in excel). If you are looking at xls file creation, you could chk the links http://wiki.sdn.sap.com/wiki/display/XI/CODE-CreateanExcelFileviatheJExcel+API , /people/sap.user72/blog/2005/07/04/read-excel-instead-of-xml-through-fileadapter
    Thanks
    Saravana

  • Sending Text File through Mail Adapter

    Hi Group,
    I need to send my Target as Mail attachment in the Text File?Can any body Suggest

    Hi swabap,
         You need to use PayloadSwapBean module in the Mail receiver adapter. This module will send the payload as an attchment to the mail server.
    Check the following link
    <a href="/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure:///people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    Regards,
    Akshay

  • File to Mail Adapter but only payload no namespace

    Hi SAP Guru's,
    I want to know how to handle File to Mail interface with only payload in the text file.
    I am only getting this in the file
    ACK3|24052010095354|4BC8612A7A530073E100800024590A61|1005241738SPBC8612A7A5000|D0000018|SXI|75130|(INFO) File Sent|PAYMENTS
    and I want to transform the structure like this to perform mapping otherwise mapping won't work.
    <ns0:ContentContainer xmlns:ns0="http://s.com/xi/pa/10/lite">
       <payload>ACK3|24052010095354|4BC8612A7A530073E100800024590A61|1005241738SPBC8612A7A5000|D0000018|SXI|75130|(INFO) File Sent|PAYMENTS</payload>
    </ns0:ContentContainer>
    I believe it is only possible through xslt but I don't to know how to use it.
    Can somebody please help me to resolve this issue.
    Thanks,
    Iqbal

    Hi
    You can use FCC in sender channel, with slight change in ur structure,
    ns0:ContentContainer xmlns:ns0="http://s.com/xi/pa/10/lite">
    *<data>*
    <payload>ACK3|24052010095354|4BC8612A7A530073E100800024590A61|1005241738SPBC8612A7A5000|D0000018|SXI|75130|(INFO) File Sent|PAYMENTS</payload>
    *</data>*
    </ns0:ContentContainer>
    Parameters
    Record set str          data,1
    data.fieldNames       payload
    data.fieldSeparator  'nl'
    Try it
    Regards
    Ramg

  • Send .bmp or .jpg File over Mail Adapter

    Hi All,
    I need assistance on the scenario: .jpeg or .bmp File -> XI -> SapInbox
    The contents of a file will be only the image and nothing else.

    Hi All,
    I have configured my Sender as File Adapter and Receiver Mail Adapter.
    I have my source File (.jpg) on my PC.
    I have the following problems in RWB when I check my Adapters :
    File = Sender Adapter v2727 for Party '',Service 
              MyServiceName': Configured at 2006-10-11
                                           09:40:39 GMT
             History:
               - 2006-10-11 10:16:50 GMT: Error: No suitable
               sender agreement found
    Mail = I get Status Green MyServicName:MyCommunicationChannel  running: started
    I cannot create a Sender Agreement as my interface is only going to get the File and send it out to Mail.
    What is it that I am missing.

  • Flat File to Mail Adapter

    Hi,
    I have the mail contenent in the flat file, so i want to send this flat file to my Gmail account through the XI system. How can i do that.
    Please give me some links or information related to this. What interface we need to take for file and Mail, How we need to do the mapping and all.
    Points will be rewarded for helpful answers.
    Thanks in Advance,
    Best Regards,
    Vijay

    I have the mail contenent in the flat file, so i want to send this flat file to my Gmail account through the XI system. How can i do that.
    file( attachment ) to mail
    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]
    Best Regards,
    Srikanth
    Reward the useful answers and you will get one point yourself

  • File to RFC, and through RFC response i am trying to trigger the Mail adapt

    Hi All,
    Right now i am doing File to RFC, its working fine but now the requirement is when xi connect to ftp and picks the  file need to send one success mail after the file pickup and data sent to BW system again i need to send one mail and also error alerts to inbox.
    Till now i am not using BPM, can we do this without BPM pls let me know
    now i am trying to achieve this in File to RFC, and through RFC response i am trying to trigger the Mail adapter.
    or else  i need use only BPM pls share  the steps which i need to be configure.
    Am i correct or pls suggest me some idea to achive this and also pls share some smaple ones in BPM .
    Thanks in advance
    Venkat

    With BPm, follow this:
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    Instead of receiving the response in file, use mail adapter
    Regards,
    Prateek

Maybe you are looking for

  • Vendor Ref. no. not displayed in print preview in vendor aging report

    Dear SAP team, Vendor reference number is not displayed in print preview/print on vendor liabliteis aging report, but this vendor reference number actually show in report,We are taking report by journal postings, vendor reference entered in NumAtCard

  • Deleted attachments are not removed from Content Server

    We have setup Content Server to store business documents and create attachments in documents in CO. Both types are stored ok and can be opened without any problems. After deleting them though, they disappear from the Attachment List but when looking

  • Why do I keep having to enter my Apple password when I already added it to the keychain?

    This seems to happen at every opportunity for a password request - new device adds an email account, making a purchase (free or paid) on the App Store, logging in to the Apple website, doing just about anything with iCloud.  I have a very complex pas

  • Where are Library Pictures

    I'm trying to understand how Aperture places photos. I imported my iPhoto Library and images from camera. No images are in my library, is that normal? Instead, images are placed in projects and folders. I thought projects and folders would reference

  • How fast is Macbook Air 11 inch wifi?

    Hi I have a Macbook air 11 inch 2015 and Asus ac87u router. I alway getting 867mbps when i connected to the router, I thought AC could go up to 1gbps+. How fast can the macbook air go? Thanks