Dynamic Mail Adapter using message split

Hi,
My requirement is like this:
one flat file will come
Sample Structure:
Email_address   Custom_ID        Status             Comments   
Many records will be there in that
Sample data:
som @ xi.   1234       approved        blablabla
ram @ por   1236       approved        blablabla
par @ mdm  1237      approved       blablabla
vin @ gp      12348     rejected        blablabla
Pi needs to pick the 1st record and construct an email with following information:
email address: som@xi
Likewise every record needs to be sent as email, and club the records in one mail if the mail address is same.
How to go by!
I have read the Micheals Blog:
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
And gone through the SAP note and downloaded the XSD.
The XSD is may works only for one record, also occurance in XSD is (1,1).
if Any other approach Please suggest me.

I also tried that it is saying
" Cannot load schema with the target namespace http://sap.com/xi/XI/Mail/30 to namespace http://blabla.com/IMG/INF2199"

Similar Messages

  • How to split messages without using Message split (BPM)

    In file to file scenario how to split messages coming from file without using Message split (BPM)

    Thank you very much.

  • 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 Use Mail Package, Mail Body and Attachment

    Hello
    Have some body a idea, how I can configure the mail adapter with use mail package, that I have in the mail a attachment with content from the messages and a mail body with also text from the message.
    Thanks for your reply.
    Regards Tom
    The different Weblog , I have check:
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    https://www.sdn.sap.com/sdn/weblogs.sdn?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] [original link is broken]
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address

    Hi Thomas,
    If you are configuring your Mail adapter as reciever then refer
    http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm
    your sender (say file) should have some message like this
    <i>
    <ml:Mail xmlns:ml=’http://sap.com/xi/XI/Mail/30’>
       <Subject>Important</Subject>
       <From>[email protected]</From>
       <To>[email protected]</To>
       <X_Mailer>Outlook Express </X_Mailer>
       <Content>
       This is the content.
       </Content>
    </ml:Mail></i>
    And for Sender Mail Adpater
    http://help.sap.com/saphelp_nw04/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm
    Hope this will be helpful
    Regards
    Suraj

  • 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

  • Mail adapter multipart message problem

    Hello everyone.
    I'm experiencing problem with receiver mail adapter. In XIPAYLOAD mode (keeping attachments, use mail package, content encoding - none) messages that has multipart mime type (multipart/alternative exactly) are processing strange way (messages are made from MS Outlook). XI keeps service information and change  some symbols words become  unreadable. For example.
    --_000_135E4C842D542241894122FD84C52E1D4134A33A81mail2itransit_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello world! This is text of multipart message! --_000_135E4C842D542241894122FD84C52E1D4134A33A81mail2itransit_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
    Hello world! T= his is text of multipart message!
    000135E4C842D542241894122FD84C52E1D4134A33A81mail2itransit_
    You can see T= his instead of This. And also why in main payload (<Content> field) it keeps info about all parts of  whole message.
    Attachments are kept correctly.
    Any suggestions how to avoid this problem and keep just useful info (just text with correct symbols)?
    I'm running XI 7.0 SP18.
    Thanks in advance.
    Edited by: Yaroslav Isachenko on Mar 24, 2010 2:31 PM
    Edited by: Yaroslav Isachenko on Mar 24, 2010 2:42 PM

    An OSS would not help, as this is an Outlook issue.
    As far as i know, multipart/mixed works with all mail systems. maybe you give a try?
    Could you post the first lines of your entries in Content tag and the entry and content-type also?

  • Change e-mail body in mail adapter using module.

    Hi All,
    I am woking with one mail adapter and I prepared one code to change the attachement name and body content. The attachement is working good but the body e-mail is not working.
    After to check a lot of blog my code now is creating two attachements one with the Payload (xml) and other with the text that suppose to come as a body e-mail.
    Someone could help me ?
    Thanks a lot.
    Michael Peretto

    Hi Michael,
    Can you check if your main attachment (the one that should be the mail text) does not carry the wrong content-disposition header?
    The easiest way to check is to use some message capturing tool (e.g., TCPGateway attached in the SOAP FAQ Note). If this header is present, it should have value inline to inform the mail client to display the content in inline. If the value is set wrong, the MessageTransformBean module can be misused to repair this content header.
    Best regards, Yza

  • Mail Adapter using ZIP files

    Hi,
    I need to create a bidirectional integration based in mail. These mails have an attached zipped file that contains 8-10 xml files and those files are the files I must use to create integration.
          1 - Any Idea to receive zipped files?
          2 - How can I deal with all the received files?
          3 - How can I generate and pack the files to send to the external system?
    Best regards,
    Alfredo Lagunar.

    Hi
    Reffer to below mentione dlinks they may help you .
    Please go throgh these links
    http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05
    Receiver Mail Adapter.
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    eMail Reporting
    eMail Report as Attachment (Excel/Word)
    The specified item was not found.
    The specified item was not found.
    The specified item was not found.
    Regard's
    Chetan Ahuja

  • JDBC adapter and message split

    Hello, does anybody know how I can make a split of a document created by the JDBC adapter and that should look like
    <resultset>
      <row>
         <column-name1>column-value</ column-name1>
         <column-name2>column-value</ column-name2>
         <column-name3>column-value</ column-name3>
      </row>
      <row>
         <column-name1>column-value</ column-name1>
         <column-name2>column-value</ column-name2>
         <column-name3>column-value</ column-name3>
      </row>
    </resultset>
    into several's independent documents of type:
      <row>
         <column-name1>column-value</ column-name1>
         <column-name2>column-value</ column-name2>
         <column-name3>column-value</ column-name3>
      </row>
    May I create the messages in the dispatcher?
    Thank you
    Ernesto Duran

    Hello, isn't it possible to create an inbound abap Proxy in XI that wait for the message then this inbound proxy loops into the message and call and outbound proxy for each entry(row).
    The outbound proxy is working well for me but I'm having problems routing the message back to XI... I get the problem "SAP:Code p1="No inbound interface found for sender" But when I route the message to a business systems everything is ok.????
    Anyway what I want to do is:
    jdbc adapter --> XI --> inbound proxy --> XI --> outbound proxy --> XI --> Idoc adapter --> R3
    And the steps inbound proxy --> XI --> outbound proxy --> XI are used only to split the message.
    The reason why I try to use this approach is that I don't understand how I can split a message in java or XSLT maybe someone know???
    Thank you
    Ernesto Duran

  • Error when using Variable Transport Binding in Sender Mail Adapter

    Hi,
    I am using the Sender Mail Adapter to receive an email, convert the attached tab delimited text file into xml and map it to an IDOC.
    I am using PayloadSwapBean and MessageTransformBean in order to do this, and this all works perfectly.
    I am now trying to access the Adapter Specific Message Attributes to retrieve the SHeaderFROM attribute from the message and map it to a field in the idoc.
    However when I check the "Variable Transport Binding" option in the Advanced tab of the mail adapter, the message no longer goes through to SXMB_MONI and I get the following error in the Java logs.
    Transmitting the message to endpoint http://sapserver:53500/sap/xi/engine?type=entry using connection AFW failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Received HTTP response code 500 : Error during parsing of SOAP header.
    Any ideas why this is happening?
    Thanks,
    Brad

    Hi Luciana,
    Honestly, I cant really remember how or if it was resolved and I was just helping out on the issue, but another consultant continued with it, so unfortunately I cant be any help on this.
    Good luck!
    Cheers,
    Brad

  • Separate IDOC-Types by mail adapter

    hello together,
    i have the following problem.
    a customer sends an order by mail to us. over mail adapter this message goes to the SAP system. the mail-subject contains description where we can separate the single message. this single messages are all from the same idoctype we have defined in the mail adapter:
    shippd, order, stock .... => SPCORD-idoctype
    and now the problem. the customer want / have to so send an invoiceack (an other idoctype- SPCINV)!!
    summary: we have TWO idoctypes but only ONE possibility to   specify the idoctype in the mailadapter, haven't we?
    we just one mailbox where all messages from the customer come into.
    what can we do? is there another solution / possibility to solve the problem?
    thanks a lot
    bye alex

    Hi,
    My connection is working now when I downloaded the xsd and executed in the mapping as described in the blog.
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    Connection is working fine now, but im getting the below payload.
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
      <Subject>TESTING</Subject>
      <From>deepthi at testing.com</From>
      <To>deepthi at testing.com</To>
      <Content>Testing purpose</Content>
      </ns1:Mail>
    The question is how to get my actual message which looks like below. this is the Idoc to file map and the resultant output file looks like below
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:order xmlns:ns0="http://testing/xi/OrderProcessing">
         <document_type>ZU</document_type>
         <vendor_number>200000</vendor_number>
         <vendor_email_address/>
         <vendor_address_line_1>XXXXXX</vendor_address_line_1>
         <vendor_address_line_2>XXXXXXXXX</vendor_address_line_2>
         <vendor_address_line_3>123242343244566</vendor_address_line_3>
         <vendor_address_line_4>US</vendor_address_line_4>
         <delivery_address_line_1>1433</delivery_address_line_1>
         <delivery_address_line_2>test</delivery_address_line_2>
    </ns0:order>
    How to send this file as email attachment using mail adapter. Do I need to use 2 maps?
    looks like Mail adapter is working only when we use the xsd which is given above and by providing the required details.
    Kindly help me if anyone worked on mail adapters.
    Thanks
    Deepthi,

  • SAP PI Sender Mail Adapter error : Unexpected User response

    Hello ,
              I developed a scenario which requires Sender mail Adapter to connect a Third party system to PI, by going thro the links .
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    and PDFs in SDN.
    When configured the sender mail adapter using POP Mail Server,faced the following error:gave the correct URL and Login credentials.
    +" exception caught during processing mail message; java.io.IOException: unexpected user response; read -ERR Command is not valid in this state."+
    Then used IMAP for the same mail server : error:
    "exception caught during processing mail message; java.io.IOException: unexpected login response; read 001F BAD Command received in Invalid state."
    Tried with another Mail server :
    "exception caught during processing mail message; java.net.ConnectException: Connection timed out".
    Can you please help, what be the cause? how to rectify it?

    Hi
    There might be an connectivity issue from PI server to mail server. Please check with your BASIS to resolve the issue.,
    Regards
    Ramg

  • Text file as an attachment in reciever mail adapter

    Hi Experts,
    I want to pick the text file using sender file adapter using file content converion, same file i need to send an attachment in reciever mail adapter.
    Can anybody help me how can i do this.
    Kind Regards,
    Praveen.
    Edited by: Praveen Kumar on Mar 10, 2010 9:08 AM

    Hi,
    >>>I want to pick the text file using sender file adapter using file content converion, same file i need to send an attachment in reciever mail adapter.
    use payload swap bean to put the attachment in place of the message payload - do the content conversion using
    content conversion adapter module, then do the same in the reverted order at the receiver
    there are dozenz of blogs showing how to use the two adapter modules I mentioned so just do a little search in blog section
    Regards,
    Michal Krawczyk

  • Mail Adapter Configuration in XI 3.0

    Hi all,
    i tried to set up a process using the mail adapter. Unfortunately it doesn't work. Has anyone succeeded in setting up a process with the mail adapter using POP3 and SMTP?

    Hi Michael,
    I did not find any documentation of the XI 3.0 mail adapter so result of practical test only for outgoing mail using SMTP:
    <b>Mail server settings:</b>
    SMTP port 8025 (you can configure any port of course)
    Account demo, password test
    <b>Mail adapter configuration:</b>
    Bubble adapter java class
    classname=com.sap.aii.messaging.adapter.ModuleBubble
    Bubble.Helper=com.sap.aii.messaging.adapter.ModuleBubbleHelperXIMailImpl
    Part 0 : common part ######
    Mail.MailSubject="mail from adapter z_outmail"
    Mail.MailFrom=[email protected]
    Mail.MailTo=demo@<you mail server name>
    XIALL or XIPAYLOAD
    Mail.MessageProtocol=XIPAYLOAD
    Mail.Log=1110
    Part : XI client to Mail server ######
    OMail.TargetURL=smtp://<you mail server name>:8025
    OMail.User=demo
    OMail.Password=test
    The port and path where the adapter waits for XMB messages from clients.
    XI.Port=8240
    XI.Path=/z_outmail
    It look so that there is no POP3 support, just only IMAP.
    Jiri

  • Receiver  Mail adapter Error

    HI  All
       i    am doing   a   scenario     SFTP    to mail adapter,   i  am sending  a    file    to    SFTP ADAPTER  and   Mail adapter   send  the   mail  to    clint,   i am   using  java  mapping ,   i  have  checked  the message in    RWB  mesage  is    fail   in mail adapte,
       ERROR  :   Message processing failed. Cause: java.lang.Exception: java.io.IOException: server does not support PLAIN or LOGIN authentication
      anyone  suggest  me     soloution?

    Hi Pankaj,
    Remove your mail server user id and password and keep authentication mode as Plain and try in mail adapter configuration.
    You can try accessing ID from within IR via menu options or via a direct URL.
    Thanks,

Maybe you are looking for

  • DRAM Frequency 400 (1:1)?

    I have 2*512 MB DDR RAM Dual Channel PC4000 EL OCZ with MSI 865PE Neo2- I have followed OCZ recommended settings for MSI 865PE Neo2,OCZ recommendations but when I set DDR frequency to 400 I get graphical problems in certain 3d games (flickering menus

  • Is this Bug? or anything

    Guyz, i'm using the below code in post-query but its not working while in forms 6i its working fine. Forms 10g SET_ITEM_PROPERTY('BLOCK.ITEM_NAME',CURRENT_ROW_FONT_NAME,'wingdings'); :BLOCK.ITEM_NAME:='O';even i tried set_item_property in WNFI trigge

  • Joining two huge tables

    Hi I have two tables PRODUCT , ORDERS and table having 20 million ,50 million rows.How to join two tables i mean join 20 million with 50 million and returns 50 million rows ?Please anyone what is the best way to achive this? SQL> desc orders; Name Nu

  • Execute an string as select statement

    Hi, I have a problem: I'm working with an older oracle verion (7.x??). I want to create a dynamic select statement. I create a string, e.g. v_sql_string, and want the database to execute it. What possibilities do I have to do this? Thanks in advance

  • Very slow if reference cursor value in another query

    I have a script like below: declare CURSOR c1 IS select rptd_by, total from (select rptd_by, count(rptd_by) total from LOCBUG_ALL_M group by rptd_by order by count(rptd_by) desc) where rownum < 2; begin FOR item IN c1 LOOP select count(*) into bug_nu