DT for mail adapter

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

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

Similar Messages

  • Data type for mail adapter

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

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

  • Modules for mail adapter

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

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

  • Infrastructure required for Mail Adapter

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

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

  • XSLT Mapping with Dynamic Configuration for Mail Adapter

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

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

  • Attachments for mail adapter?

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

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

  • How to remove a Attachment in Module for Mail Adapter

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

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

  • Sender mail adapter : no messages and no error log

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

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

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

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

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

  • Dynamic Mail Adapter Config

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

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

  • Mail adapter scenario

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

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

  • File to Mail Scenario- Error in Mail Adapter

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

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

  • How to send meeting request by mail adapter

    Hi,
    I'm doing scenario from file to mail. I have a sender file adapter to pick up the meeting request standard format file(*.ics) from file system. On the other side I have a receiver mail adapter to send mail. What I want to do is the sent mail by mail adapter should be a meeting request instead of a normal email with meeting request as its attachment.
    I use localejbs/AF_Modules/MessageTransformBean as first module in mail adapter, but the sent mail is also a normal with meeting request as its attachment. This is not what I expected.
    I also created own module for mail adapter to realize it. Do I need to change the format of meeting reqeust information in payload? Actually I have chance to do it in module. But what should I do? Thanks.

    Hi, Krishna:
    Thanks for your reply.
    Actually the content of ics file is like:
    BEGIN:VCALENDAR
    PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN
    VERSION:2.0
    METHOD:REQUEST
    BEGIN:VEVENT
    ATTENDEE;CN="Wu, Oscar";ROLE=REQ-PARTICIPANT;RSVP=TRUE:MAILTO:[email protected]
    ORGANIZER:MAILTO:[email protected]
    DTSTART:20070626T130000Z
    DTEND:20070626T150000Z
    LOCATION:Shanghai
    TRANSP:OPAQUE
    SEQUENCE:0
    UID:040000008200E00074C5B7101A82E00800000000F067E9BB0DB8C7010000000000000000100
    00000C7423D530FE8744687B0C7C08D4CAA58
    DTSTAMP:20070626T104913Z
    DESCRIPTION:Meeting request without attachment\n
    SUMMARY:Test appointment
    PRIORITY:5
    X-MICROSOFT-CDO-IMPORTANCE:1
    CLASS:PUBLIC
    BEGIN:VALARM
    TRIGGER:-PT15M
    ACTION:DISPLAY
    DESCRIPTION:Reminder
    END:VALARM
    END:VEVENT
    END:VCALENDAR
    this content is content of meeting request based on RFC 822, what I want is not get the content itself in mail, I want the mail adapter send a meeting request out automatically when it get this content.
    Thanks

  • Configuring Mail Adapter

    Hi All,
    Please can u say the steps for Configuring MAIL Adapter.
    some weblogs are not getting opened.
    what is the Datatype for Mail Adapter?
    Thanks in Advance,
    Sriram

    Hi ;
    Refer this
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05
    If you can send your mail id i can forward you one step by step documentation
    Mudit
    Award points if it helps

  • Dynamic attachment name in receiver mail adapter for 1 attachment?

    Hi,
    seems to be a tricky thing....
    The sender interface (file) picks up an xml file and a pdf document.
    The receiver wants to get the xml file as a txt file and the pdf, both sent together by mail.
    We are following this thread:
    "Sending multiple attachments winthin a single Receiver Mail adapter in required format".
    So far we are able to generate the txt file and send it together with the pdf to the recipient.
    The txt file gets its name from the payload of the xml file.
    Unfortunately the pdf should be renamed to the same name as the txt file.
    And here we are stuck.
    We generate the filename for the txt file in the mapping to the mail message (as usual ximail30.xsd).
    But for the pdf we are only able to set a static name in the channel module page using
    Transform.ContentDisposition.
    Any ideas how to solve this are really welcome!!!!
    (Solutions that do not talk about using a new module to be written are prefered.)
    Regards
    Dirk

    Hi,
    seems to be a tricky thing....
    The sender interface (file) picks up an xml file and a pdf document.
    The receiver wants to get the xml file as a txt file and the pdf, both sent together by mail.
    We are following this thread:
    "Sending multiple attachments winthin a single Receiver Mail adapter in required format".
    So far we are able to generate the txt file and send it together with the pdf to the recipient.
    The txt file gets its name from the payload of the xml file.
    Unfortunately the pdf should be renamed to the same name as the txt file.
    And here we are stuck.
    We generate the filename for the txt file in the mapping to the mail message (as usual ximail30.xsd).
    But for the pdf we are only able to set a static name in the channel module page using
    Transform.ContentDisposition.
    Any ideas how to solve this are really welcome!!!!
    (Solutions that do not talk about using a new module to be written are prefered.)
    Regards
    Dirk

Maybe you are looking for

  • Primavera Project Planner 3.1 Installation on Windows 7

    I'm having trouble installing project planner 3.1 on windows 7 it says " the version of this file is not compatible with the version of windows you are running. check your computer systems information to see whether you need you need an X86 (32bit) o

  • Installation of Acrobat X Pro Error

    Exit Code: 6 Please see specific errors and warnings below for troubleshooting. For example,  ERROR: DW050 ... WARNING: DW065, DW066 ... -------------------------------------- Summary -------------------------------------- - 0 fatal error(s), 3 error

  • Screen Goes off above certain angle

    The screen of my MacBook 2GHz Intel Core 2 Duo goes black when I raise it above about 70º . It re-illuminates when lowered and finally goes off as normal as it nears the closed position. It is difficult to use at anything below 90º. The backlight is

  • Report for changes

    Hi gurus,       Is there anything available to monitor programming, configuration or database changes to SAP in the production environment (e.g., activity reports)?      Let me know if I am not clear about my question      Thanks in advance Ravi Bopp

  • Lost iWeb 1.0 Templates

    Upgraded iWeb to latest version, now only iWeb Themes 1.1, Themes 1.0 appears in the menu but not avaliable. Where did they go?