File Mail Scenario Problem  ( V.V.Urgent)

Hi ,
I am Using PI7.0.
I have a file in FTP ( xyz.rtf)  and i want to attach the file and send to the mail.
I configured the scenario.
But I can pick the file and make an attachment and sending to the mail.
My problem is my file xyz.rtf is converting into .xml file and attaching.
I need the same xyz.rtf file to attached to the mail.
And i am using PI 7.0 and i am not finding any options in the file adapter.
Help me and do the needful.
points will be awarded.
Regards,
Jayasimha Jangam

Hi Jayasimha ,
When n sender side you will read the file it will be converted to xml format. If you wish to send it to Mail adapter as an attachment with same .rtf  format, then refer below scenario. Here Image file is send as the way you wish to send your rtf file.
Sending an Image File Through Exchange Infrastructure in a File-to-Mail Scenario
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c5816
Thanks
Swarup

Similar Messages

  • File-Mail Scenario ( Urgent)

    Hi,
    I am Doing File 2 mail Scenario.
    I Got 5 files in FTP ( Sap1.txt,Sap2.txt,Sap3.txt,Sap4.txt,Sap5.txt)
    I have to attach all the file in the single mail with same file name and format.
    How can i approch this scenario.
    Mutil attachments to a single mail.
    Points will be awarded.
    Regards,
    Jayasimha Jangam

    Hi,
    Refer
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    Here only one attachment is sent but you can send it one by one (in a loop) from adapter module just check sample adapter modules code from SAP in this blog and you will find how to do it
    also refer
    XI: Triggering e-mails with multiple attachments
    /people/sravya.talanki2/blog/2006/01/12/xi-triggering-e-mails-with-multiple-attachments--problems
    Thanks
    Swarup

  • Mail-to-Mail scenario - Problem with comm. channel not reading message

    Good day,
    I am setting up a Mail-to-Mail scenario, where a received e-mail with an attachment is both processed into a file, as well as a monitoring e-mail needs to be send. The attachment processing is an existing process and is still working properly, but my e-mail isn't send. I am using Java mapping to create the destination e-mail based on the source e-mail. Everything is set up in the Directory as well, and through the Test Configuration feature I have tested my new addition to the existing process, I am seeing the result that I am expecting. I have sent a test message and XI picks it up just fine and processes it which is tested by both SXMB_MONI and the resulting file from the attachment.
    However, the monitoring e-mail is not sent. Using the runtime workbench, there is an error in the receiver communication channel, being the following error from the Audit Log:
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: com.sap.aii.messaging.util.XMLScanException: java.lang.NullPointerException; nested exception caused by: java.io.IOException: Parsing an empty source. Root element expected!
    Looking through the Message Content, I notice there is a SOAP document describing the source message and two payloads. The first payload being the source message in XML format, the second payload is entirely empty. I suspect this empty second payload is causing the NullPointerException, but I am at a loss as to why the payload is empty. The Test Configuration showed me that the message gets through just fine, so what is going wrong?
    Here is a link to the configuration of the communication channel, maybe something is wrong here: [Config of communication channel|http://roald.hoolwerf.net/images/cc-config.png]
    My question is: What can I do to find what is causing the communication channel to receive an empty payload, and how can I solve this?
    Searching for this issue, or the given error on both Google as these forums hasn't given any related posts, if I did miss them in that case I am sorry for posting and please refer to the related topics.
    Thank you in advance for taking time to look at this question.
    Kind regards,
    Roald Hoolwerf
    Edited by: Roald Hoolwerf on Feb 1, 2010 3:57 PM

    Try this.
    Unchecked  the configure use authentication.
    and use mail package (base64)

  • File - XI - Mail Scenario. ( Urgent Issue )

    Hi ,
    Good Morning...
    I am doing File to mail Scenario.
    I am Using File & Mail Adapter.
    I got 5 files in FTP server named as
    SAP1.txt
    SAP2.txt
    SAP3.txt
    SAP4.txt
    SAP5.txt
    Now File adapter should pick this 5 files and make a attachments  to a single mail.
    I am able to pick one file and attach and send it to the mail.
    But now i have to pick all te files and attach to the single mail with same file names like in source.
    How should i proceed for the scenario.
    Points will be awarded.
    Regards,
    Jayasimha Jangam

    Hi Jangam,
    ur having many files should be maped under one file and then send to a mail adapter
    it better to go with BPM is there any any common value in all the files
    pls do chk out this blog
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    /people/community.user/blog/2006/09/07/email-reporting
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c5816
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0964d7c-e66e-2910-24bb-ac535e4a5992
    /people/community.user/blog/2006/09/08/email-report-as-attachment-excelword
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    pls do  chk this links they r mainly blogs
    if found worth pls do the req
    Thanx
    Sampath

  • File to Mail Scenario error

    Hi All,
                    I did file to mail scenario. The source structure contain the following elements like <to>....</to>, <Subject>........</subject> etc (the source structure created by me). In Integration Directory I set the Mail adapter Message protocol as "XIPAYLOAD" and Mail attribute "Use Mail Package" selected.  So here my scenario should send a mail to which has i given "To Id" in my source structure. But when i go to SXMB_MONI, I found my message as red flag and it is showing information like "thrown during application mapping". Here what is the problem and how can i rectify the problem, please any one help me, 
    Thanks & Regards,
    Satish,

    Hi,
    you should add your email address to your user,add specific users list add you r user in alrtcatdef.
    generally you should maitain the email data type format like
    subject,from,to,content-type..
    se below link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    Regards
    Chilla..

  • File to mail  scenario

    In file to mail scenario how can we send a document/image as an attachment  along with the data?

    Go thru this link. It contains demos on how to work with Mail adapter
    https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/110ff05d-0501-0010-a19d-958247c9f798#xi [original link is broken]
    Have a look at these weblogs ....
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    /people/sravya.talanki2/blog/2006/01/12/xi-triggering-e-mails-with-multiple-attachments--problems
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    Regards,
    Shabari

  • File to Mail scenario? File not received only namespace

    Hi,
    I tried to do file to mail scenario. I read blogs and forum questions before posting this.
    My problem is that I am sending.dat file in file to mail scenario.
    I used XIPAYLOAD and without Mail adapter
    When i received mail it contains attachement Untitled.xml and it does not contain my file data it contains only this.
      <?xml version="1.0" encoding="UTF-8" ?>
      <ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30" />
    I do not know how to create file with payload containing To, from subject, content things. I tried Michal blog and disabled unneccessary fields etc. and when i send email as file but now In RWB it gives error
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: java.io.IOException: no sender address specified
    regards
    hussaan

    Hi again,
    Simple message types and i use ximail30_xsd.txt from sap note as external defination
    Message mapping is also simple according to SDN TV.
    Adapter: Mail
    Transport Protocol: SMTP
    Message Protocol:XIPayload
    Adapter Engine: Integration Server
    smtps://smtp.googlemail.com:465
    Authetication Method: Plain
    User: complete email address
    Mail Attributes:
    From: email address
    To: email address
    Subject: test
    Content encoding: base 64
    Keep attachement: Option Checked
    No other change i did, With this configuration i receive email with untitled.xml attachement which contains only namespace info (no data).
    In my other try i changed message mapping and uses to create payload which michal refers by using constants(text to describe TO, from, subject) and text functions(concat)  in message mapping fields.
    Integration driectory setting for that
    Adapter: Mail
    Transport Protocol: SMTP
    Message Protocol:XIPayload
    Adapter Engine: Integration Server
    smtps://smtp.googlemail.com:465
    Authetication Method: Plain
    User: complete email address
    Mail Attributes: option checked
    Content encoding: base 64
    Keep attachement: Option Checked
    With this option it gives error in RWB that no sender  found
    Regards
    hussaan

  • Unable to get source file content as mail body in file to mail scenario

    Hi Friends,
    I am facing one problem with one of my file to mail scenario in PI(SP9).  I have done bypass scenario(without IR only with ID objects). Scenario is working fine, i am getting mail also.  But my requirement is i want complete source file content as a mail body (not xml format, text format).  I have checked all options, but configured scenario bydefault taking source content as a attachment and mail body is empty.  I have tested below options
    1. If i choose message protocol as FCC mechanism at source side content at target side i am getting xml format as a attachment( In mail adapter i have selected message protocol as xi payload, and without packate option on mail adapter). If i choose message protocol as xi all, i am getting 2 files as a attachment (one file as a payload content and second file as a source file content in xml format).
    2. If i choose message protocol as file at souce side that time i am getting source complete content as a attachment at target side in xml format, but mail attached file content is flat file(.xml extension) format. When i tried to open attachment file that time i am getting error in explorer, but i can see only one row in explorer  remaining rows unable to see.
    Please share your ideas on this.

    Hi,
    Follow below steps
    1. First basis level need to configure setup(SMTP) for mail.  After that only mail will go from SAP.
    2. Source side depending on requirement take communication channel(idoc, file etc)
    3. Receiver side communication channel take mail adapter and configure below setup
       3.1 select message protocol XI ALL/ XI PAYLOAD(WITH PACKAGE or WITHOUT PACKAGE)
       3.2 if message protocol is XI ALL, the complete content will be sent as a attachment along with payload file
       3.3 if message protocol is XI PAYLOAD, the source message, the source message will be sent as attachment.  Playload file filter automatically.
       3.4 If you use PACKAGE option on mail adaper, this time source strucute need to import from SAP (some standard structure only will be support, without strucutre we can't work).  If you choose package option no need to give mail id on communication channel, we need to pass mail id's from source structure.
    I hope now clear.

  • Socket Exception in File to Mail Scenario

    Hi All,
    I developed file to mail scenario, where I am getting the following error in SXMB_MONI :-
    <b>  <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  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="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: java.net.SocketException: Software caused connection abort: connect</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error></b>
    This is the communication channel configuration I made :-
    Adapter Type - Mail
    Transport Protocol - SMTP
    Message Protocol - XIALL
    Adapter Engine    - Integration Server
    URL                    - smtp://smtp.registeredsite.com
    Enable Checkbox for "Configure User Authentication"
    Authentication Method - Plain
    User                          - [email protected]
    Password                  - *****************
    In Mail Attributes :-
    From                         - [email protected]
    To                             - [email protected]
    Subject                     - Test Mail
    Content Encoding      - Quoted-Printable
    Please Help me out.
    Thanks
    Madhu.

    Raj,
    Thanks for your answer. It solved my problem. Thanks you very much.
    Thanks,
    Madhu.

  • File - BPM (RFC) - Mail Scenario

    My scenario is File to Mail scenario thru BPM. in BPM I need to make RFC Call. I set ASMA in File sender adapter and File Nmae is not accessible in BPM Mapping. we are PI7.0 SP12. Im sure this is possible but for some reason not working. Any clue ?

    Hi,
    >>So Q1: Im not getting Filename into BPM though I checked ASMA in the Sender File Adapter
    You cannot take the filename (using Dynamic Configuration) in Message Mapping inside BPM transformation step. So I will propose to take it before entering into BPM.
    >>Q2: I need to send attachment name as Dynamic which I should get from the Input Message. we are on PI7.0 SP12.
    Check the blogs in sdn, you will get more idea on this. If I get any I will reply back
    Regards
    Suraj

  • How to configure receiver communication channel in File to mail scenario?

    Hi all,
            I'm working in FIle-to-Mail Scenario. I did all the required configuration In Integration repository. As per my Scenario whenever a text file stored in Application server of the R/3 system. it should be sent as a attchment with a mail.so i set a sender communication channel with file adapter in sender R/3 system . i dont know which business system should i refer for my receiver communication channel.because my receiver end is  a mail server. should i create any third party business system for this one?
    can anyone suggest me to define a receiver comm channel in a right manner?
    helpful answers will be rewarded.

    Hi,
    Check these
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    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/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/content.htm
    Regards
    Seshagiri

  • Error in File to Mail Scenario

    Hi All,
      I am getting the following errror at adapter level in File to Mail Scenario in XI production
    Mail: error occured: com.sap.aii.af.ra.ms.api.RecoverableException: java.io.IOException: server not responding OK to RCPT TO; 554 Relay access denied
    In XI development the scenario is working fine. I also checked with basis people for the configurations of the two servers and it is same.
    Can any one suggest the possible ways to solve the above error.
    Regards
    Prakash

    Hi All,
       I tried with one more SMTP server in both development and production , In development mail is going. But in production i am facing the following error in receiver adapter.
    Mail: error occured: com.sap.aii.af.ra.ms.api.RecoverableException: java.net.ConnectException: Connection refused
    Exception caught by adapter framework: java.net.ConnectException: Connection refused
    Delivery of the message to the application using connection Mail_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: java.net.ConnectException: Connection refused.
    Kindly provide some solution to solve the above errors.
    Regards
    Prakash

  • File To Mail Scenario Clarification

    Hi!
    Can someone help me with this....
    1)In a File To Mail Scenario, while selecting the mail server, do we need to select only the mail server or we can select any server...I mean, when I was doing this scenario, I selected my Windows 2003 server....as the mail server and the url as smtp://ipaddress....Also, I tested it, by putting the Source payload in the FTP server......Then, used SXMB_MONI to check the file....I saw the success flag... My question here is, how to check the mail......Can, you give me the step by step instructions for testing the File to Mail scenario....
    2)I loaded Eclipse on my system, How to open that (execute that)...I mean...I want to learn Java Mappings..Where should I put the  code.....etc.... Step by step instructions with screen shots please....
    Thanks....

    >>2)I loaded Eclipse on my system, How to open that (execute that)...I mean...I want to learn Java Mappings..Where should I put the code.....etc.... Step by step instructions with screen shots please....
    Open the "eclipse.exe" and go on help. It will say how to create your first java project. Once you are comfortable with tool then go for Java Mapping. (Efficient way of learning
    thanks
    Farooq

  • Xml file to mail scenario with zip file as an attachment

    Hi experts,
    I have  a file to mail scenario. File is in xml format.
    At receiver side, first I want to zip this file and send the zip file as an attachment using mail adapter.
    How can i achieve this?
    Regards
    Divia

    Hi Shabarish,
    In the module tab i have specified the below beans
    localejbs/AF_Modules/MessageTransformBean                           contentType
    AF_Modules/PayloadZipBean                                                    zip
    sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean           mail
    In the module configuration i mentioned as
    Transform.ContentDescription   file
    Transform.ContentDisposition   attachment:filename="file.xml"
    zip.filenameKey                      contentType
    zip.mode                                zipOne
    Now i am getting the mail with zip file as an attachment.But the name of the attachment i got is MainDocument.zip
    Even the file name inside the zip is MainDocument.xml.
    How can i specify my own file name for both zip file and the file inside the archieve folder.Please help me.
    Regards
    Divia

  • File to mail scenario with zip file as an attachment

    Hi experts,
    I have a file to mail scenario.The mail contains a zip file as an attachment.
    The file in the input folder is a zip file. I want to send this zip file via email using mail adapter.How can i achieve this?Please help me to solve it out.
    Regards
    Divia

    Hi Narath,
    Do check the below link it will be helpfull
    Troubleshooting SOAP, HTTP and Mail Adapter Scenarios with TCPGateway
    Thanks
    Sampath

Maybe you are looking for