Working with XI Message and Sender Mail Adapter

Hello
I have a task - To use one email address for several interfaces. In this case I think XI Message is the choice.
The question is How to tie payload and SOAP header?
Do I need to pass SOAP Header as mail message body and payload as mail attachent?

hi,
>>>>I have a task - To use one email address for several interfaces. In this case I think XI Message is the choice.
you can store the address anywhere
(in XI table, in R3 table)
and just get if from the mapping (via lookup)
and then put it in the adapter specific identifirers
(THeaderTO field)
then mail adapter will use it
Regards,
michal

Similar Messages

  • Duplicate messages in sender mail adapter

    Hi,
    We are using the sender mail adapter to retrieve messages from an IMAP mail server. Messages are being picked up correctly, but when we have large messages (with e.g. PDF attachments) things go wrong.
    The time it takes to retrieve the mail message is longer than the poll time. In this case the adapter logs in again in the mail server to retrieve the first new message from the inbox. However the first adapter threat is already retrieving that message. This results in a duplicate message in XI. (messages are set to be deleted when read).
    We have tried all kind of settings in the adapter but without any results. The adapter works fine with very small messages.
    Does anyone recognize this problem? 
    PS. please do not post links to sap help or the mail adapter FAQ. Useful answers will be rewarded.
    Thanks,
    Christiaan Schaake

    Hi Christiaan !
    I understand your problem. Could you set your IMAP account to avoid multiple simultaneous sessions?? maybe if there is only one session allowed per user or per time, then parallel XI threads will not be able to start downloading the messages.
    If you cannot use a longer poll interval, then you could develop an adapter module for the Mail sender adapter that could be used to verify if the current mail is just being downloaded by other thread. This adapter module could check the unique mail data (date/time + subject + etc.) against a local table.
    Regards,
    Matias.
    PD: please award points if helpful.
    Message was edited by:
            Matias Denker

  • Issue with reading attachment in sender mail adapter

    Hi, I am working on Email to file scenario, where I have to connect to exchange server and take the attachment of the email (xml file) and save it on to PI server. I have configured sender mail communication channel with following details:
    Protocol: POP3
    Message protocol: XIPAYLOAD
    Mail attributes: keep attachments
    Module:
    1     localejbs/AF_Modules/PayloadSwapBean     Local Enterprise Bean     1
    2     localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean     Local Enterprise Bean     mail
    1     swap.keyName     Content-Description
    1     swap.keyName     Content-Description
    1     swap.keyValue     attachment,filename="MailAttachment-1.xml"
    1     swap.keyValue     MailAttachment-1
    Also, configured receiver file adapter.
    Since I donu2019t have to read mail content , I havenu2019t created any design components in ESR. I have just refrred to dummy namespace, interface (both sender and receiver). in receiver determination, interface determination, sender agreement and receiver agreements.
    It was working fine, not sure what changes happened. Now I could see the attachment payload in message monitor.
    Under Inbound message->payloads->
    MailMessage ( text/xml;charset=utf-8 )
    MailAttachment-1 ( text/xml;name="****************")
    But the fille that is getting created doesnu2019t have the contents of the attachment (xml file) .  It has some other information, shown below:
    Directory:  ******
    Name:       ********.xml
          =NextPart_002_01CB2C5B.B033B325#
    content-type:text/plain;charset="us-ascii"#
    content-length:30#
    content-transfer-encoding:quoted-printable#
    <<**********.xml>>=20#
          =NextPart_002_01CB2C5B.B033B325#
    content-type:text/html;charset="us-ascii"#
    content-length:#
    content-transfer-encoding:quoted-printable#
          =NextPart_002_01CB2C5B.B033B325  #
    Can you please let me know what is going wrong here.

    using following parameters in module resolved my problem:
    MOdule name                                                                           Type                                                            Module Key
    AF_Modules/PayloadSwapBean                                            Local Enterprise Bean                                      transform sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean     Local Enterprise Bean                                      mail
    Module Key                                    Parameter Name                              Parameter value
    transform                                        swap.keyName                                Payload-Name
    transform                                        swap.keyName                                 MailAttachment-1

  • HELP!  I am having trouble with text messaging and sending pictures

    I have had the handcent app for a very long time and I have never had any issues with it.  Today I downloaded an up date and it is running VERY SLOW and also will not allow me to send pics. It just kicks me out to my home screen.  I have tried uninstalling the app and reinstalling it which did not help.  I have tried uninstalling it and just using the standard messaging and it just keeps trying to load the screen to text.  I have tried restarting the phone and turning it off for a few minutes.  My notifications are not running correctly either.  The text pops up then the sound come a minute or two later.  Anyone have any ideas on what to do to resolve this issue or experiencing the same thing?
    Thanks in advance!
        Kim

    From your description it sounds like you have something hogging up all your systems resources... Try downloading System Panel and activate the monitoring option under the settings and allow it to run and see if it shows any apparently that was using extremely high resources and then try to close it or you can try using a Task Killer for a minute and close. all unused Apps and see if problem continue.
    Also you could boot into Safe Mode and see what happens.. Instruction at http://support.verizonwireless.com/clc/devices/knowledge_base.html?id=42081

  • 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

  • Gmail on iphone was working fine until yesterday when it prompted me with the message cannot get mail user name or password for gmail is incorrect, i have tried deleting the account and re-created a new account, same problem, can anyone help?

    gmail on iphone was working fine until yesterday when it prompted me with the message "cannot get mail user name or password for gmail is incorrect", i have tried deleting the account and re-created a new account, same problem, can anyone help?

    paulcb, you're a genius, it worked, thank you so much, you don't know how much stress you have taken off my shoulders, I am constantly on my email in my iphone everyday.  Thanks a million, take care. Robert.

  • 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>

  • Sender Mail Adapter Error: exception caught during processing mail message;

    HI , I am configuring mail to file scenario. Need to read mail content (no need to capture From,TO or Subject details) and create a file with the content in the mail.
    Need to read mails from microsoft outlook. Exchange server has been configured for POP3 protocol.
    Following are the details provoding in sender mail adapter:
    URL: provided url in the format: pop://<server name>
    Authentication method: plain
    provided user credinetions to access mails.
    poll interval - 1min
    content encoding none.
    processing parameters : quality of service-exactly once
    Since there is no need to capture From,TO or Subject details, didn't select the option - use mail package.
    Verified for unread mails in the mail box and made sure that there are few unread mails.
    Also, created data types and other components in IR and completed mapping.
    But after starting sender mail communication channel, getting error "exception caught during processing mail message; java.lang.NullPointerException" in RWB-adapter-communication channel monitoring.
    please let me know what needs to be done to resolve this error.
    Thanks.

    HI Stefan, i tried, but still it is giving same error. Yes, i am able to access outlook mail with the user credentials given in the communication channel to access exchange server.
    I am using message protocol: xipayload . Also since i dont have to capture TO,from,subject details., created data type just with one element of type string, not in the standard format .Does this makes any difference.

  • Xi sender mail adapter with attachment (to Web Service w/ attachment)

    Hello,
    We're working on an XI scenario wherein a sender mail adapter polls an exchange server inbox for mail (with attachment)and sends the attachment to a Web Service via SOAP Adapter? Does anyone know if this is doable, and if so, how?
    Thanks,
    Eric

    Hi!
    I think so, if you just have a single attachment to be transferred.
    Use the Mail Sender Adapter and specify the MailServer URL etc...
    In the Module provessor of the Mail-Adapter you have to specify the PayloadSwapBean ( -> this changes the payload - the attachment becomes the payload)
    then you configure the standard XI-scenario with
    SenderAgreement
    Mapping if necessary
    Receiver Agreement
    Receiver adapter
    kr Martin

  • Issue with Sender Mail Adapter Configuration

    Hi All,
    We are PI 7.1.1 version. We are unable to see the following parameters in the sender Mail adapter:-
    Default XI Parameters : Default Interface Namespace and Default Interface Name.
    Also, we are geeting a Nullpoinetr exeception in RWB.
    Kindly provide your suggestions.
    Thanks & Regards,
    Navneeth K.

    Hi.
    I have faced the sane problem. My solution is to use DynamicConfigurationBean module:
    AF_Modules/DynamicConfigurationBean     Local Enterprise Bean
    with
    parameters:
    message.interface=<Your Interface Name>
    and
    message.interfaceNamespac=<Your Interface Namespace>
    Note that last parameter name is not interfaceNamespace but interfaceNamespac .
    It would be great if anyone will explane were Default XI parameters gone and how we can get them back.

  • 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.

  • 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

  • Thunderbird can download and send mail with Cox POP Mail, Mail cannot?

    I have Thunderbird and Mail installed.
    I can download and send mail with Thunderbird.
    I can't even set-up an account with Mail because it cannot find the POP Mail server.
    I have Firewall on with ports 25, 110 and 587 open.
    This really seems strange that I can use Thunderbird to set up and use POP Mail access to Cox, but not Mail.
    My servers are:
    pop.central.cox.net
    smtp.central.cox.net
    I've followed the steps on Cox's support web site, no success.
    I've already called Cox, they're clueless.
    Thoughts or suggestions are greatly appreciated.
    Thanks,
    --Todd
    Mini   Mac OS X (10.4.6)  

    Hi Todd,
    Well since Tbird works, we can rule out lots of things.
    Mail cannot find the POP server
    You are using the Welcome to Mail assistant to do this, and when you type in your incoming mail server info it spins the gear a bit, gives an error, and says that if you continue Mail may not work -- yes? What does the error say specifically?
    No disrespect at all, but the most likely problem is a typo somewhere / mis-specified username. Please go 'round once more.
    Good luck,
    John

  • Sender Mail adapter configuration with attachment

    Hi,
    I read the below blog regarding the mail adapter
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    I have the same requirement but the attachment file is not an XML, it is CSV file so in the module tab if I change like below is it enough?
    TRANSFORM    swap.keyValue  attachment; filename=u201DMailAttachment-1.csvu201D     (I think MailAttachment-1 is the file name, am I correct?)
    If I change like above is it ok? or any other thing is required, Could you please give me the inputs
    Thanks
    Ramesh

    I have the same requirement but the attachment file is not an XML, it is CSV file so in the module tab if I change like below is
    it enough?
    PayloadSwapBean will ensure that the input to the mapping is from the attachment.....in the blog the attachment is in XML format and hence there was no need for any conversion.....yours is however a CSV file so you need to convert it to XML first and then do the further processing.....you can either use the MessageTransformationBean as shown in this blog:
    /people/gabrielsagayaselvam.panneerselvam/blog/2009/08/31/solve-key-field-problem-using-structplain2xml-in-messagetransformationbean
    Or write your own module code for the conversion.
    Regards,
    Abhishek.

  • Sender Mail Adapter with PayloadSwapBean

    Hello Experts!
    I have a Sender Mail Adapter receiving emails with attachments! I'm using PayloadSwapBean, because I have to manipulate (to do mapping) the XML attachment.
    Sender Mail Adapter Configuration:
    Default Interface Namespace = urn:mynamespace.com
    Default Interface Name = abs_async_myInterface
    swap.keyName = Content-Disposition
    swap.keyName = Content-Description
    swap.keyValue = attachment;filename="MailAttachment-1.xml"
    swap.keyValue = MailAttachment-1
    Well, my problems are:
    1) Although my Default Interface Namespace is urn:mynamespace.com, sometimes the namespace that cames to SXMB_MONI is http://sap.com/xi/XI/System/Mail. In that case, an Receiver Determination error happens.
    2) My XML can be the first (MailAttachment-1), the second (MailAttachment-2), the third (MailAttachment-3), or any other attachment position. Since my swap.keyValue is set to "MailAttachment-1", I'm able to pick the XML only if it is the first attachment.

    Hi Julio,
    Writing an Adapter Module for the same can make your task easy.
    Thanks'
    Sunil Singh

Maybe you are looking for

  • HpqtBx01.exe runs in background after printing a doc

    every time I print a doc this pgm continues to run, causing the fan on my HP dv9005 to run at high speed.  The only way to fix it is to log off and manually shut the pgm down when the error message pops up.  I've removed and re-installed my s/w sever

  • Edit Page Functionality not working in SP2013

    We are taking over a SharePoint 2013 development project which we believe was originally done with SharePoint 2010 and mabe customized with SharePoint Designer 2010 and now that we are to modify and or correct some of the other consultants pages in S

  • Oracle 11g available for most platforms

    I was talking so sure to my system admin that 11g only available to Linux and Windows this morning. It turns out I was so wrong , lol http://www.oracle.com/technology/software/products/database/index.html

  • Iphone photos in time machine

    I have downloaded photos from my iphone 4 into iphoto. When i look in the time machine only some of the photos appear as thumbnails whilst the others are white blank pages. the current time machine page shows them all correctly but earlier pages [bac

  • Locking images in Apple Mail

    Hi, I'm trying to line up four photos horizontally in my emails (apple Mail v. 6.6). But when I send them they appear vertical. Is there anyway I can lock them so that they stay horizontal?  thanks, Mary