Problem with receiver mail adapter

Hi All,
I have a proxy to mail scenario. I am using mail message format from service market place.
Now this is the xml after executing mapping:
<Mail>
<Subject>XYZ</Subject>
<From>From_email</From>
<To>To_email</To>
<Reply_To />
<Content_Type>text;charset="UTF-8";name="MYFILENAME.csv"</Content_Type>
<Content>
<Line>
<Object>0000001</Object>
<Code>1001</Code>
</Line>
<Line>
<Object>0000002</Object>
<Code>1002</Code>
</Line>
</Content>
</Mail>
<Line> tag gets repeated in the <content> tag. I want a csv file as mail attachment with the following content:
0000001,1001
0000002,1002
First i used StrictXml2PlainBean. But, this was trying to parse all the fields including Subject and To fields.
I only need data in <content> tag to be sent in csv file.
So, i used MessagetransformBean. Even this is throwing parserExceptionerror: No data allowed here: (hex) 30, 30, 30(:main:, row:6, col:3)(:main:, row=6, col=3).
Which module bean should i use now? What should be the parameters?
Please let m know.
Many Thanks
Chandra

Hi Prateek
1. Isn't it a comman scenario to send extracted data from SAP, in a csv file as an attachment to email?
2. How can i supress fields from mail package (from, to, subject etc) while using StrictXml2Plain bean?
Thanks
Chandra

Similar Messages

  • Dynamic attachment name with receiver mail adapter and use mail package

    We need to send mapped XML payload as attachment (with dynamic name) to a recepient (recepient email id is part of input xml payload, but not part of the mapped XML payload).
    I could probably do this using the adapter module (as per the following link),
    http://wiki.sdn.sap.com/wiki/display/XI/Adapter%20Module%20PI%207.0%20Set%20Attachment%20Name?bc=true
    I would like to explore if this would be feasible using Mail package and XI payload.I already have a Java mapping that is converting the input XML to required Output format. If I am using Mail package (XI Payload), how do I go about sending this Output XML from java mapping as attachment to email id available in the input payload?

    Hi,
    1) XML payload as attachment (with dynamic name)
    2) recipient (recipient email id is part of input xml payload, but not part of the mapped XML payload)
    These two is possible by using Mail Package. You have a standard xsd for mail package which you can download from the SAP Note 748024.
    The xml created in you java mapping which will be your attachment should be put into the <content> tag of the mail package xml structure. and the file name can be set in the <Content_Type> tag.
    <?xml version="1.0"; encoding="UTF-8"?>
    <p2:Mail xmlns:p2="http://sap.com/xi/XI/Mail/30">
    <Subject>My Invoice</Subject>
    <From>from email address<;/From>
    <To>to email address</To>
    <Content_Type>text/plain;name="MyFile.csv";</Content_Type>  --> file name here
    <Content>123;A49;aaa</Content>   -> attachment xml here
    </p2:Mail>
    And you have to select MailPackage in the receiver mail adapter.
    Regards,
    Aravind

  • Problem with Receiver File adapter

    Hi
    I have a problem with receiver file FTP adapter, while writting file in target folder, connection is failing, after retries, it writting file again. How to avoid this situation, is there any way to write the leftout part in the file.
    VS

    Hi
    Thank u all,  Problem is solved, i changed write mode to Over write existing file. It is working fine.
    VS

  • XI3.0 MailAdapter: Problem with receiving mails from Mailserver

    Hi all,
    I tried to set up a scenario using the mail adapter as the sender and the file adapter as the receiver.
    The problem is that the mailadapter logs in into the mailserver but then it stops working with an error.
    Here is my setup of the MailSenderChannel:
    Transport Protocol: IMAP4
    Message Protocol: XIPAYLOAD
    Adapter Engine: Integration Server
    URL: IMAP://mailservername
    User: ****
    Password: ****
    Mailattributes: Use Mail Package & Keep Attachments is checked
    Namespace and Interfacename is also filled in.
    The Error Message is as follows:
    #1.5#000255AF6C53005500000BC8001010520003E93BC7109362#1100867882226
    #/Applications/ExchangeInfrastructure/AdapterFramework/SAPLibraries/SAPXDK#
    #com.sap.aii.messaging.srt.xmb.XMBIMAPInitiatorServiceImpl.run()#J2EE_GUEST
    #0####da269f003a2711d98349000255af6c53#output##0#0#Error#1
    #com.sap.aii.messaging.srt.xmb.XMBIMAPInitiatorServiceImpl#Plain##
    #exception caught during processing mail message; java.lang.StringIndexOutOfBoundsException:
    String index out of range: -1#
    I guess this message came up because my interface definition is wrong. How does the Datastructure for an incoming mail look like? I just defined one field as string to keep the whole email message. Does this work or do I need to have some kind of standard xsd for mail?
    Thanks in advance!
    /Michael

    Hi Colin,
    here comes the WSDL description of my message interface to receive the email:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:p1="http://sap.com/xi/XI/Mail/30" name="MI_Mail_into_XI" targetNamespace="http://sap.com/xi/XI/Mail/30">
         <wsdl:types>
              <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://sap.com/xi/XI/Mail/30" targetNamespace="http://sap.com/xi/XI/Mail/30">
                   <xsd:element name="Mail" type="Mail" />
                   <xsd:complexType name="Mail">
                        <xsd:annotation>
                             <xsd:appinfo source="http://sap.com/xi/TextID">
                             51f7dac03ede11d9c348000255af6c53
                             </xsd:appinfo>
                        </xsd:annotation>
                        <xsd:sequence>
                             <xsd:element name="Subject" type="xsd:string" minOccurs="0">
                                  <xsd:annotation>
                                       <xsd:appinfo source="http://sap.com/xi/TextID">
                                       8d2fbcb03ebc11d9a926ff790a50fa78
                                       </xsd:appinfo>
                                  </xsd:annotation>
                             </xsd:element>
                             <xsd:element name="From" type="xsd:string" minOccurs="0">
                                  <xsd:annotation>
                                       <xsd:appinfo source="http://sap.com/xi/TextID">
                                       8d2fbcb13ebc11d9bd23ff790a50fa78
                                       </xsd:appinfo>
                                  </xsd:annotation>
                             </xsd:element>
                             <xsd:element name="To" type="xsd:string" minOccurs="0">
                                  <xsd:annotation>
                                       <xsd:appinfo source="http://sap.com/xi/TextID">
                                       8d3143503ebc11d9bef6ff790a50fa78
                                       </xsd:appinfo>
                                  </xsd:annotation>
                             </xsd:element>
                             <xsd:element name="Reply_To" type="xsd:string" minOccurs="0">
                                  <xsd:annotation>
                                       <xsd:appinfo source="http://sap.com/xi/TextID">
                                       8d3143513ebc11d9941fff790a50fa78
                                       </xsd:appinfo>
                                  </xsd:annotation>
                             </xsd:element>
                             <xsd:element name="Content_Type" type="xsd:string" minOccurs="0">
                                  <xsd:annotation>
                                       <xsd:appinfo source="http://sap.com/xi/TextID">
                                       8d3143523ebc11d980f2ff790a50fa78
                                       </xsd:appinfo>
                                  </xsd:annotation>
                             </xsd:element>
                             <xsd:element name="Date" type="xsd:dateTime" minOccurs="0">
                                  <xsd:annotation>
                                       <xsd:appinfo source="http://sap.com/xi/TextID">
                                       8d3143533ebc11d9b24fff790a50fa78
                                       </xsd:appinfo>
                                  </xsd:annotation>
                             </xsd:element>
                             <xsd:element name="Message_ID" type="xsd:string" minOccurs="0">
                                  <xsd:annotation>
                                       <xsd:appinfo source="http://sap.com/xi/TextID">
                                       8d3143543ebc11d9cbc5ff790a50fa78
                                       </xsd:appinfo>
                                  </xsd:annotation>
                             </xsd:element>
                             <xsd:element name="X_Mailer" type="xsd:string" minOccurs="0">
                                  <xsd:annotation>
                                       <xsd:appinfo source="http://sap.com/xi/TextID">
                                       8d3143553ebc11d9ce16ff790a50fa78
                                       </xsd:appinfo>
                                  </xsd:annotation>
                             </xsd:element>
                             <xsd:element name="Content" type="xsd:string" minOccurs="0">
                                  <xsd:annotation>
                                       <xsd:appinfo source="http://sap.com/xi/TextID">
                                       8d3143563ebc11d9979cff790a50fa78
                                       </xsd:appinfo>
                                       <xsd:documentation xml:lang="EN">
                                       any type
                                       </xsd:documentation>
                                  </xsd:annotation>
                             </xsd:element>
                        </xsd:sequence>
                   </xsd:complexType>
              </xsd:schema>
         </wsdl:types>
         <wsdl:message name="Mail">
              <wsdl:part name="Mail" element="p1:Mail" />
         </wsdl:message>
         <wsdl:portType name="MI_Mail_into_XI">
              <wsdl:operation name="MI_Mail_into_XI">
                   <wsdl:output message="p1:Mail" />
              </wsdl:operation>
         </wsdl:portType>
         <ifr:properties xmlns:ifr="urn:com-sap:ifr:v2:wsdl">
              <ifr:category>
              ifmmessif
              </ifr:category>
              <ifr:methods>
                   <ifr:method name="MI_Mail_into_XI">
                        <ifr:isSynchron>
                        false
                        </ifr:isSynchron>
                        <ifr:isInbound>
                        false
                        </ifr:isInbound>
                        <ifr:interfaceCategory>
                        outbound
                        </ifr:interfaceCategory>
                   </ifr:method>
              </ifr:methods>
              <ifr:messages>
                   <ifr:message name="Mail">
                        <ifr:messType>
                        ifmmessage
                        </ifr:messType>
                        <ifr:technicalNamespace>
                        http://sap.com/xi/XI/Mail/30
                        </ifr:technicalNamespace>
                   </ifr:message>
              </ifr:messages>
         </ifr:properties>
    </wsdl:definitions>

  • Problem with Sender Mail Adapter

    Hi experts,
    I'm developing a Mail-XI-RFC scenario and have a problem in the mapping. I have created a MI based in the structure of the attachment of the mail. I have a mapping that does xml->RFC and tests OK. When I send a mail to the account of the sender adapter, the system generates two payloads, the 'MailMessage' and the 'MailAttachment-1' that is the xml to map, but I have an error in SXM_MONI 'Cannot produce target element /ns0:...RFC name'.
    The Sender Adapter configuration uses message protocol XIPAYLOAD, I have checked Mail Package, base 64 and keep Attachments. Interface namespace is the same as the xml and default interface name is the message interface created of type my xml.
    What is wrong?
    Best Regards,
    Alfredo Lagunar.

    In this case you need to use payloadswap bean for swapping the payload and attachment
    http://help.sap.com/saphelp_nw04/helpdata/en/70/f3cbad30ee479cb15672219f3405f0/frameset.htm
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step check this
    Rajesh
    Edited by: Rajesh on Feb 4, 2009 2:52 PM

  • Problems with sender mail adapter

    Hi XI Gurus
    We have gone through a lot of blogs and searched a lot on the XI forum on how to configure the sender mail adapter with attachments but we still can't get it working at our site. Here are the issues -
    1. When we define our data type in the IR as let's say out_email_dt with namespace "http://www.xyz.com" the mapping fails. In the monitor(SXMB_MONI) the message from the sender mail adapter comes in like this -
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    <xim:Mail xmlns:xim="http://sap.com/xi/XI/Mail/30" encoding="quoted-printable">
      <Subject>test 10</Subject>
      <From>"Test User" <[email protected]></From>
      <To>"XI Test Account" <[email protected]></To>
      <Content_Type>text/plain;charset="us-ascii"</Content_Type>
      <Date>2007-05-08T05:34:38Z</Date>
      <Message_ID><[email protected]></Message_ID>
      <Content>This is the voice of the Mysterons=0A</Content>
      </xim:Mail>
    Question 1 - do we have to define our data type as "Mail" under the namespace "http://sap.com/xi/XI/Mail/30".
    Question 2 - If you look at the content of  the <From>,<To>,<Message_ID> tags you will see that there is content with <> tags which is causing the message mapping to fail. Is there a way of telling XI that they are not xml tags but part of some other tags?
    2. Also the PayloadSwapBean doesn't seem to swap the payload to be the attachment.
    3. Can we use masks in the PayloadSwapBean for attachment names like "." as we don't know what the file name is going to be as we have multiple partners who will be sending emails to the same address and with different file formats.
    Thanks in advance.
    Salil

    Hi,
    >>>>Question 1 - do we have to define our data type as "Mail" under the namespace "http://sap.com/xi/XI/Mail/30".
    do exactly as shown in my blog:
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    >>>>2. Also the PayloadSwapBean doesn't seem to swap the payload to be the attachment.
    do similarly as shown in my blog:
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    the everything will work
    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>

  • Problem in Receiver Mail Adapter

    Hello,
    Scenario : Proxy --->> Email with attachement(Text)
    I am sending the multiple records from proxy into the Email adapter where filename is dynamic and Receipient is also dynamic.
    So i have used the following blog. to achieve this funcitonality.
    http://wiki.sdn.sap.com/wiki/display/SI/DynamicEmailAttachmentnameforReceivedMails
    But now the problem is whatever we map with content field it takes only one record instead of all records.
    Can you please help in this case. how to get all the records in attachement.

    Hello Jignesh,
    You can create a context UDF as:
    public void createContent(String[] a,ResultList result,Container container){
    String str="":
    for(int i=0;i<a.length;i++)
    if(i==(a.length-1))
    str=str+a<i>;
    else
    str=stra<i>"\n";
    result.addValue(str);
    In str=str+ statements,its a with index i ,instead of only a as it is changed after posting .
    Use this UDF between your source and target field.
    This would create all records.
    Please let us know if this works for you.
    Thanks.
    Regards,
    Shweta

  • Problem with receiver file adapter printing data line by line in .txt file

    We are working on e-payments integration with one of the bank. As part of text file generation, we have a written a UDF which accumulates all Invoice details( 10 input fields information ) into one string and then sends output line by line with a delimiter separation for each invoice.
    H
    D
    E
    E
    E
    T
    Bank requires a file in above format separating invoice in separate E band.( one invoice collection in one E band)
    As per our scenario, multiple invoice details from an idoc(PAYEXT) have to be written to a text file line by line.  i.e one invoice details per one row.
    After the execution of the scenario, in SXMB_MONI, the message display clearly showing that the invoice details are printed line by line. A java function used in message mapping for the writing the invoice details line by line.
    But actual file that is written to a text file is showing all the invoice details in written in single row.
    When I enable the option Word wrap in the notepad, then only I can see the details in desired format.
    Please guide us where we are going wrong.
    Can notepad settings make any difference while displaying the text file???
    Is there any way to write the file as desired without enabling the word wrap in notepad.
    Thanks in advance.
    Nagendar

    Hi venkatnrj,
    i hope this UDF might be its helps
    public void CombineText(String[] var1, String[] var2, String[] var3, String[] var4, String[] var5, ResultList result, Container container) throws StreamTransformationException{
    String s = "";
    for( int i = 0 ; i < var1.length ; i++)
         if ( var1<i> != ResultList.CC)
         s = s +  var1<i> + "," + var2<i> + "," + var3<i> + "," + var4<i> + "," + var5<i>  + "\n" ;
    result.addValue( s );
    Output diplay like below the format by using above udf:
    aaa,bbb,cccc,dddd,eee,fff,
    aaa,bbb,cccc,dddd,eee,fff,
    aaa,bbb,cccc,dddd,eee,fff,
    aaa,bbb,cccc,dddd,eee,fff,

  • Problem polling Inbox with Sender Mail adapter

    Hi,
    I have a funny problem with Sender Mail adapter (IMAP Protocol)
    It was working fine previously.
    Now, when I poll the Inbox, 2 things happen. After re-activation:
    1. If there is a new mail in the Inbox, the Communication channel marks the mail as read, but still keeps reading the same mail into XI.
    2. If there are no new mails in the Inbox, it reads the already read mails in the Inbox one by one. So all old mails start entering XI.
    This problem exists only with the Inbox. It works fine with other folders for the same mail ID.
    Any inputs as to why this is happening?
    Regards,
    Puloma.

    Hi,
    We re-started the server and problem was solved. But we don't know why the Adapter Engine was behaving erratically.
    Regards,
    Puloma.

  • Problems with receiving

    hello again! : ( I have problems with receiving mails, my
    installation is local, therefore I am using telnet but it marks errors
    to me you have some idea?
    bash-2.03# telnet pegaso.qoslabs.com 25
    Trying 192.168.20.20...
    Connected to hostname.com.
    Escape character is '^]'.
    220 pegaso.qoslabs.com -- Server ESMTP (Sun ONE Messaging Server 6.0 Patch 1 (built Jan 28 2004))
    MAIL FROM: [email protected]
    250-2.5.0 No HELO/EHLO seen; continuing anyway, [192.168.20.20].
    250 2.5.0 Address Ok.
    RCPT TO: [email protected]
    550 5.1.1 unknown or illegal alias: [email protected]
    RCPT TO: katiuskac
    550 5.1.1 unknown or illegal alias: user
    DATA
    554 5.5.0 No recipients have been specified.
    QUIT
    221 2.3.0 Bye received. Goodbye.
    Connection closed by foreign host.
    what is the solution?
    do you have any idea?

    If the MTA believes that you have an error, it will give you the 5.5.1 error.
    The error may be any of several provisioning problems. Since you haven't sent me the ldap entry for the user, I really can't tell which error you may have made.
    A common error is the value you placed in "mailhost".
    This needs to be the Fully qualified name of your mail server, not an alias. If you desire to use an alias for the system, you need to make additional configurations.
    Please believe me, I'm trying to help you, but when there are dozens of possible errors, and I have no data to examine, I can't tell which error you may have made.
    I do know that if you correctly provision a user, that user will work.

  • Problem with the Mail receiver Adapter

    Hi,
    I am getting follwing Errors.
    Activation of the change list canceled
    Check result for Receiver Agreement
    Field compressZLIBEncryptionSignatureEncryption is obsolete  
    Field encryptionAlgorithmEncryptionEncryptionSignature is obsolete  
    Field clearDataSignature is obsolete
      Field compressZLIBEncryptionEncryptionSignature is obsolete  
    Field addCertificatesSignature is obsolete
    Field addCertificatesSignatureSignatureEncryption is obsolete
    Field addCertificatesSignatureEncryptionSignature is obsolete  
    Field SMIMEProfileApply is obsolete
      Field encryptionAlgorithmEncryptionSignatureEncryption is obsolete
      Field compressZLIBEncryption is obsolete
    Field encryptionAlgorithmEncryption is obsolete
    Any help would be appriciated
    With thanks

    not much sure abt this error: but u can check with these blogs:
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    /people/community.user/blog/2006/09/07/email-reporting
    /people/community.user/blog/2006/09/08/email-report-as-attachment-excelword
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    will keep u posted

  • Receiver Mail Adapter message with PDF attachment

    Hi.
    We are trying to generate emails from the mail adapter that includes the plain text in the body of the resulting email and an attached PDF file. We receive the following structure:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:newMailRequest_MT xmlns:ns0="http:/pdk/sap/TorstenTest">
       <Sender/>
       <Receiver/>
       <BodyContent/>
       <Subject/>
       <Attachment/>
    </ns0:newMailRequest_MT>
    I have set up an interface and mail adapter to be able to produce emails with plain text in the body. I used SAP note 748024 for this.
    So right now I can make XI send emails with dynamic mail addresses. My problem lies in sending attached files with the mails as well.
    I have read most of the threads in here, but none of them seem to answer just how to include the attachment. Which field in the 'Mail' message type is used for the attachment??
    What needs to be added to the communication channel and adapter for it to include attachments, while the body of the mail still keeps the plain text message??

    hi
    I have used the following links to send the file as an attachement and as payload.
    so it may help u.
    links:
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure - Mail Adaptor options , mail attatchment
    Sender mail adapter - PayloadSwapBean - Step by step - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c5816
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    points if helpful.
    regards
    sreeni

  • Receiver Mail Adapter, Mail Package with Payload as Attachment

    Hi Everyone,
    I have spent the better part of the day today searching and testing all of the different combinations that I could think of to solve this problem, so please don't just do an SDN search for me and cut/paste in the links as there are too many contradictive answers piling up over the last year.
    I am trying to use a Receiver mail adapter to send some data using the mail package, and I want to have the <content> tag be in an attachment.  I am using mail package to dynamically set the mail address, but to also try and turn my data into a csv file that the recipient can open in Excel.
    My mail package sets the following values:
    <Content_Type>text/plain</Content_Type>
    <Content_Disposition>attachment</Content_Disposition>
    <Content>Sample Text</Content>
    This blog is basically what I am trying to do: 
    <a href="/people/community.user/blog/2006/09/08/email-report-as-attachment-excelword:///people/community.user/blog/2006/09/08/email-report-as-attachment-excelword
    But no where in here is he setting ContentDisposition, and he is (potentially) not using the MessageTransformBean module.
    It is unclear if I need to use the MessageTransformBean to make this work? 
    Questions:
    1) Do I need to use the MessageTransformBean?
    2) Do I need to set the ContentDisposition in the mail package?
    3) Does Service Pack matter with these settings?  We are on SP15 upgrading to SP18 very soon.
    Thanks
    Peter

    Hi Peter,
    try:
    <Content_Type>text/plain;name="file.csv"</Content_Type>
    <Content_Disposition>attachment;filename="file.csv"</Content_Disposition>
    <Content>Sample Text</Content>
    Regards
    Stefan

  • Configuring Receiver mail adapter with dynamic email addresses

    Hi,
    I'm a newbie to XI and I have problems in configuring the Receiver mail adapter with the "Use Mail package" option selected. I am trying pickup a file (using file adapter on Sender side, picks up a simple XML file) and after mapping in XI, send the message as an email message to dynamic email addresses.
    Everything works fine if I did not select the "Use Mail Package". But when I choose that option it errors out. I followed this blog posted on SDN -
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    The following XML message is my source
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/Somenamespace">
       <ns0:Message1>
          <ns1:studentlisttest xmlns:ns1="urn:karthiksender_to_karthikreceiver">
             <Student>
                <studentid>1</studentid>
                <lastname>Studentlastname</lastname>
                <firstname>Studentfirstname</firstname>
             </Student>
             <Mail>
                <From>[email protected]</From>
                <To>[email protected]</To>
                <Subject>Test mail adapter</Subject>
             </Mail>
          </ns1:studentlisttest>
       </ns0:Message1>
    </ns0:Messages>
    What I want to accomplish is, I have a simple message mapping where the Studentdetails are mapped to, lets say Customer details. For convenience lets keep it simple, StudentId --> Customerid, (student)Firstname --> (customer)Firstname, (Student)Lastname --> (customer)Lastname
    I would like to get the Customer details as an XML attachment or in the body of an email with from, to and subject corresponding to that specified in the <Mail> node.
    I followed the instructions posted on the blog and it works fine if I don't map the studentdetails to customerdetails. I did multimapping, with one source message (the xml file I posted above) and two target messages (customerdetails and Mail, which is the external definition posted on the blog). I beleive I'm missing something here. Could somebody please guide me through this?
    Thanks
    Karthik

    hi,
    I still have not found the solution for this problem. Michal, your blog works fine when my source message has got only the mail details. As per your advice, I tried modified the structure of the xsd file as follows
    <xs:schema targetNamespace="http://sap.com/xi/XI/Mail/30"
      xmlns:xi="http://sap.com/xi/XI/Mail/30"
      xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <!--
    Mail
      -->
      <xs:element name="Mail">
        <xs:annotation>
          <xs:documentation>Mail package for XI - Mail Adapter</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Subject" type="xs:string" minOccurs="0"/>
            <xs:element name="From" type="xs:string" minOccurs="0"/>
            <xs:element name="To" type="xs:string" minOccurs="0"/>
            <xs:element name="Reply_To" type="xs:string" minOccurs="0"/>
            <xs:element name="Content_Type" type="xs:string" minOccurs="0"/>
            <xs:element name="Date" type="xs:dateTime" minOccurs="0"/>
            <xs:element name="Message_ID" type="xs:string" minOccurs="0"/>
            <xs:element name="X_Mailer" type="xs:string" minOccurs="0"/>
            <xs:element name="Content" minOccurs="0">
              <xs:annotation>
                <xs:documentation>any type</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
          <xs:attribute name="encoding" type="xs:string"/>
        </xs:complexType>
      </xs:element>
      <xs:element name="MailReceipt">
        <xs:annotation>
          <xs:documentation>Mail Receipt for XI - Mail Adaper</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Server" type="xs:string"/>
            <xs:element name="Format" type="xs:string"/>
            <xs:element name="UseMailPackage" type="xs:boolean"/>
            <xs:element name="Encoding" type="xs:string"/>
            <xs:element name="Subject" type="xs:string" minOccurs="0"/>
            <xs:element name="From" type="xs:dateTime" minOccurs="0"/>
            <xs:element name="To" type="xs:string" minOccurs="0"/>
            <xs:element name="Date" type="xs:dateTime" minOccurs="0"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="CustomerlistExternal">
        <xs:annotation>
          <xs:documentation>Customer List</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Customername" type="xs:string"/>
            <xs:element name="Customerid" type="xs:string"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:schema>
    My source message will be something like
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
       <ns0:Message1>
          <ns1:studentlisttest xmlns:ns1="urn:karthiksender_to_karthikreceiver">
             <Student>
                <studentid>1</studentid>
                <lastname>abclname</lastname>
                <firstname>abcfname</firstname>
             </Student>
             <Mail>
                <From>[email protected]</From>
                <To>[email protected]</To>
                <Subject>Testing Mail adapter</Subject>
             </Mail>
          </ns1:studentlisttest>
       </ns0:Message1>
    </ns0:Messages>
    I have mapped the <student></student> information to customerlist, with customerid --> studentid and customername --> firstname or lastname (for symplicity). This was a multimapping with one source and two target messages. My test mapping output is
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
         <ns0:Message1>
              <ns2:Mail xmlns:ns2="http://sap.com/xi/XI/Mail/30">
                   <Subject>Testing Mail adapter</Subject>
                   <From>[email protected]</From>
                   <To>[email protected]</To>
              </ns2:Mail>
         </ns0:Message1>
         <ns0:Message2>
              <ns2:CustomerlistExternal xmlns:ns2="http://sap.com/xi/XI/Mail/30">
                   <Customername>abclname</Customername>
                   <Customerid>1</Customerid>
              </ns2:CustomerlistExternal>
         </ns0:Message2>
    </ns0:Messages>
    So how would I get this part of the <CustomerlistExternal></CustomerlistExternal> part of the message as an attachment to the mail address specified in the <ns2:Mail></ns2:Mail> tags.
    I'm definitely not understanding it right and am missing something. Could you give me step by step instructions to acheive this. I apologize for the trouble..this would be of great help to me.
    Thanks
    Karthik

  • Why do I get an "unable to connect - There may be a problem with the mail server or network." message from iCloud.  I have verified the settings.  I can access my iCloud account online but can't send or receive e-mail via the mail account.

    Text limits to the "Question" link prevents a full explanation:
    This is a long-time problem.  I have tried to resolve it with Apple but their "Customer Support" is merely a name.
    I can go online and access my e-mail but when I try to send or receive e-mail via iCloud through my internet server (Google fiber now but the same situation existed with my prior service), I receive "There may be a problem with the mail server or network.  Verify the settings for 'Apple Email' and try again.
    "The server returned the error:  The server 'p0-imap.mail.me.com' refused to allow a connection on port 143."
    Well, I have verified the setting and tried again and again and …
    Well, you get the idea …

    JungleTaxi Cabbie wrote:
    Csound1: iCloud: Configuring Mail with Mac OS X v10.6 or iOS 4
    Enter your Incoming Mail Server, User Name, and Password using the following settings:
    Incoming Mail Server: mail.me.com
    User Name: Your iCloud email address (excluding @me.com)
    Password: Your password
    Last Modified: Jun 27, 2013
    Maybe you should test these things before calling people out, because these settings do function perfectly well.
    iCloud is not supported on Snow Leopard or lower, why bother to mention it?
    The OP has an iCloud account, and that can not be opened without Lion or Mountain Lion (on a Mac), IOS5 or 6 (on an iPhone/iPad)
    The document I linked to is Apples documentation for iCloud on current devices,I don't care whether you believe that you know better than they do, but it will affect the people who follow your advice as it won't work
    JungleTaxi Cabbie wrote:
    Also, if you're not running Lion or Mountain Lion, there is no "Mail, Contacts & Calendars" prefpane.
    I never said that there was, perhaps you imagined it.

Maybe you are looking for

  • Schema name is not showing in the Data load

    Hi All, I am trying to load a CSV file using oracle apex data load option. The options are using a new table and file upload(.csv). In the load data page, the schema name is not listing my current schema because of which i could not to upload the CSV

  • Emctl failed creating database.

    Hi, I am installing the database using .dbca and got the following error for emctl at the end of the installation. Database Version : 10.2.0.5 OS Version : RHEL 5; Kernal 2.6 Aug 22, 2011 8:02:31 AM oracle.sysman.emcp.util.PlatformInterface executeEM

  • SMTP sender issue

    I have a SQR reprot which send report via emails. Recently I have changed the SMTP sender to another e-mail address in the configuration file of app server and did a bounce of application server. Now the issue is that the emails are being sent with t

  • Communications data: Could not send SLD data - still not resolved

    Hello, SAPMMC shows this error in my PI system while startup. RZ70, Visual Admin -> SLD Data Supplier are OK and SLD has my ABAP - Java systems registered. What can be causing this when everything works fine? Thanks Gökhan

  • Web-Calendar component in Wiki get lost after Open Directory installation

    if I change my Lion Server to use opendirectory and not work in standalone mode, I lose the ability of the server for web-calendar for example at the wiki-webpage. servername/webcal The error-message tells me, the service calendar is deaktivated and