Flat File to Mail Adapter

Hi,
I have the mail contenent in the flat file, so i want to send this flat file to my Gmail account through the XI system. How can i do that.
Please give me some links or information related to this. What interface we need to take for file and Mail, How we need to do the mapping and all.
Points will be rewarded for helpful answers.
Thanks in Advance,
Best Regards,
Vijay

I have the mail contenent in the flat file, so i want to send this flat file to my Gmail account through the XI system. How can i do that.
file( attachment ) to mail
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]
Best Regards,
Srikanth
Reward the useful answers and you will get one point yourself

Similar Messages

  • E-Mail reporting in file to mail adapter scenario

    Experts,
       I am working on a file to mail adapter in which, have to just send a mail to the recipient by  putting a subject line and mail body.
    am following the following example
    /people/community.user/blog/2006/09/07/email-reporting
    but my requirement is not to send the mail attachment. I just need to send a mail body stating the error location.
    here at teh receiver side, have downloaded a mail.xsd. in this "subject line","from field" , "to" field is there but there is no "mail body" field .
    Can any one please help me out. I just require to send a mail body to the recipient.
    Thanks
    Veeru

    Expert,
       I have used but still am getting teh attachment not as a mail body.
    Isit possible to send the mail body via XSLT mapping , for eg
    <?xml version='1.0'?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://perks.com/MailTest">
      <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
        <xsl:template match="/">
       <ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
        <Subject>Error files from XI</Subject>
        <From>from mail ID</From>
        <To>to mail id</To>
        <Content_Type>text/html</Content_Type>
        <Content>
         <xsl:text xsl:space="preserve">The error files for which service entry has not been created:</xsl:text>
         <xsl:value-of select="$break"/>
         <xsl:value-of select="$break"/>
         <xsl:value-of select="$tableB"/>
         <xsl:value-of select="$thB"/>
         <xsl:value-of select="$tdB"/>
         <xsl:text xsl:
        </Content>
       </ns1:Mail>
      </xsl:template>
    </xsl:stylesheet>
    Any suggestions?
    Thanks
    Veeru

  • Help Required on File to Mail Adapter scenario

    Hi all,
    Can someone give me some links or material regarding the step by step procedure to configure a file to mail adapter scenario (including the design and configuration). I have already gone through help.sap.com, but I need more clarification. So please guide me accordingly
    Regards
    V.Kartik

    Hi Karthik,
         Also check these links on File to Mail adapter scenario:
        Blogs:
        /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
        /people/sap.user72/blog/2005/06/08/sending-attachments-in-mails
        Sap File on Mail Adapter:
        https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05
        Also check these similar threads:
        How to implement file to mail scenario
        What is the process for sending file thru email using Mail Adapter ???
    Regards,
    Subhasha Ranjan

  • Reading huge flat file through SOAP adapter

    Hi Everybody,
        In one of our interface we need to read big flat file using soap adapter at sender side into xi and we are using java map to convert into xml. but before that i need to split this flat file into multiple files  in the first message mapping. and in the second map we have to write a java map to do the flat file conversion to XMLBut i got struck up in reading this big flat file into XI as i need to declare some datatype to read this entire file. Can anybody tell me how i can do this. is it a possible to do first of all with SOAP adapter . 
    Thanks
    raj

    hi vijay,
      Thanks for your prompt reply. Due to some reasons i am not allowed to use file adapter . i can use only JMS adapter or SOAP adapter. we tried few scenarios with JMS content conversion but what ever scenario i am asking here is complex at multilevel i can't even use JMS in this case. so we are thinking to read whole file using SOAP adapter and then we are planning to split the file into multiple files, as file can be huge size ,using java mapping and in next level we want to use another mapping to do content conversion. SO I have to do experiements whether this is a feasible solution or not. because when u declare at sender side
    <ffdata_MT>
    <Recordset>
        <ROW>    String type
    when u declare like this and when u sent the flat file using SOAP adapter at sender side we are getting whole file which we sent at part of "ROW" as string. but inside java mapping i need to see whenther i can split this in XI ,so that i can use these split files in next mapping for content conversion. Hope i am clear now. I want to know whether it is a feasible solution or not.
    I really appreciate if sombody give some idea on this
    Thanks
    raj

  • File to Mail Adapter issue

    I am trying FILE-TO-MAIL ADAPTER senorio
    I have file contains following data(more than one row data in file)
    emailaddress,subject, content
    I used receiver Data type
    https://websmp205.sap-ag.de/~sapidb/012006153200000361852004E/ximail30_xsd.txt
    If text file is only one record it is sending mails as mail defininition is 1..1 in ximail30_xsd
    I changed the mail definition in ximail30_xsd to 0...unbounnd and recreate the external definition andcreated interface based on external definition.
    I am getting validation error.
    please advice me.

    Hi,
    ><i>I changed the mail definition in ximail30_xsd to 0...unbounnd and recreate the external definition andcreated interface based on external definition.</i>
    Maybe you can consider using MultiMapping to send the multiple Mails out of XI.
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    Is this what you want?
    Regards
    Bhavesh

  • File to mail adapter scenario.

    Hi All,
    i have a file to mail adapter scenario.
    here i get the data from tthe different vendors and what ever comes in should be validated and  if needed sent as an attachment or detached from the message and then from receiver mail adpter to application server..if possible content conversion has to be done.
    my questions are...
    <b>1.whare should we validate the data..is it in the XI server or receiver mail adapter..
    if so..how to do that validation
    2.how can we send as attachments ..
    3.how can we detach them..i.e if attachments are not required 4.if content conversion conversion has to be done where is that done..
    4.after coming out of the receiver adapter....how can we send it to the appliocation server.</b>
    Thanks in advance..
    cheers,
    raghavesh
    Message was edited by:
            Raghavesh Reddy
    Message was edited by:
            Raghavesh Reddy

    Raghavesh,
    Not sure if i follow the entire question.
    ><i>here i get the data from tthe different vendors and what ever comes in should be validated</i>
    I guess you are getting files using the file adapter.
    ><i>and if needed sent as an attachment or detached from the message and then from receiver mail adpter to application server..if possible content conversion has to be done.</i>
    Not sure I follow this part. You validate your incoming file and what do you do
    1. If the file is valid?
    2. If the file is invalid?
    are you sending mails in both cases.
    Like pinted out there are multiple places where validations can be done,
    1. Module -->  https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f013e82c-e56e-2910-c3ae-c602a67b918e
    2. Mapping --> Graphical / Java
    There are many options and they all depend on the incomuing payload and the entire process.
    So , if you can give us more details, maybe an optimum solution can be discusses.
    Regards
    Bhavesh

  • How o place Flat file Using JMS Adapter.

    Hi Frnds,
    I have one scenario ,
    Sender side i am having IDOC, i want convet the IDOC into Flat file. But my receiver side i have to use only JMS Adapter,
    Flat file i have to place in FTP Server using JMS Adapter.
    Can ne share your thoughts..
    Regards,
    raj

    Raj,
    The below Link will help
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50061bd9-e56e-2910-3495-c5faa652b710
    Surya,
    Welcome Back to SDN.
    Regards
    Agasthuri Doss

  • File to mail adapter

    hey guys
    i m doing a file to Mail scenario in which i have to send mail in report format and assign the receivers dynamically,i m making use of /people/community.user/blog/2006/09/07/email-reporting to send mail in report format and /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address to assign receiver dynamically but m kinda lost in hoe should i combine these two scenarios,what will be the structure of my source and target message be?
    can anyone help me in deciding how will my source and target datatypes look like?
    thanx and really appreciate ur help
    ahmad

    Your structure is dependent upon the messages that you want to import and export.  What file formats are you trying to use?
    If you are trying to follow Michal Krawczyk's Mail Adapter weblog then take a look at the XML message in his blog, it has fields <subject><to><from><content>.  It appears that he imported an Email structure from an XSD, but there is no reason you can't create that structure yourself in the IR.
    As for the weblog by Prakash Arunachalam, he provides an XML structure in his weblog at the bottom I believe.
    Message was edited by:
            Harrison Holland

  • Flat file with soap adapter

    Hi,
      Can anybody tell me is it possible to send flat file as an atttachment via soap adapter.
    Regards,
    Dhill

    Hi Doss,
      Thank you, my user have given details as
    URL Name : https:
    xxxxx
    and
    Headers details as :
    Ent-sender:   XXXX
    Ent-receiver:  YYYY
    Ent-APRF:  ZZZZZ
    Ent-filename: client_file_name
    Please let me know how we need to specify this in receiver soap communication channel.
    Regards,
    Dhill

  • IDoc flat file over AS2 adapter to IDoc adapter

    Hi,
    The scenario is IDoc flat file(.txt) over AS2 adapter to IDoc adapter. Could anyone help on how to convert the IDoc flat file to xml in AS2 adapter to execute the mapping further? we are using PI 7.0.
    Thanks in advance!
    -zameer

    Hi,
          Since you are on Pi 7.0, you would not be able to use the modules for this in PI 7.1.
    You would need to refer this document for converting from Idoc flat to XML
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a?quicklink=index&overridelayout=true
    In your sender AS2 adapter, you can pass the file as is to an abap mapping which will do the conversion to Idoc xml. the output of the abap mapping goes to your message mapping then for conversion.
    Another option would be to use a custom adapter module in the sender AS2 adapter to call the Aabap mapping to do the conversion into Idoc xml.
    The custom adapter module would do a JCO/RFC call which will do the conversion before passing the data back to the adpter module.
    Regards

  • Sending Text File through Mail Adapter

    Hi Group,
    I need to send my Target as Mail attachment in the Text File?Can any body Suggest

    Hi swabap,
         You need to use PayloadSwapBean module in the Mail receiver adapter. This module will send the payload as an attchment to the mail server.
    Check the following link
    <a href="/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure:///people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    Regards,
    Akshay

  • Send .bmp or .jpg File over Mail Adapter

    Hi All,
    I need assistance on the scenario: .jpeg or .bmp File -> XI -> SapInbox
    The contents of a file will be only the image and nothing else.

    Hi All,
    I have configured my Sender as File Adapter and Receiver Mail Adapter.
    I have my source File (.jpg) on my PC.
    I have the following problems in RWB when I check my Adapters :
    File = Sender Adapter v2727 for Party '',Service 
              MyServiceName': Configured at 2006-10-11
                                           09:40:39 GMT
             History:
               - 2006-10-11 10:16:50 GMT: Error: No suitable
               sender agreement found
    Mail = I get Status Green MyServicName:MyCommunicationChannel  running: started
    I cannot create a Sender Agreement as my interface is only going to get the File and send it out to Mail.
    What is it that I am missing.

  • File to Mail Adapter but only payload no namespace

    Hi SAP Guru's,
    I want to know how to handle File to Mail interface with only payload in the text file.
    I am only getting this in the file
    ACK3|24052010095354|4BC8612A7A530073E100800024590A61|1005241738SPBC8612A7A5000|D0000018|SXI|75130|(INFO) File Sent|PAYMENTS
    and I want to transform the structure like this to perform mapping otherwise mapping won't work.
    <ns0:ContentContainer xmlns:ns0="http://s.com/xi/pa/10/lite">
       <payload>ACK3|24052010095354|4BC8612A7A530073E100800024590A61|1005241738SPBC8612A7A5000|D0000018|SXI|75130|(INFO) File Sent|PAYMENTS</payload>
    </ns0:ContentContainer>
    I believe it is only possible through xslt but I don't to know how to use it.
    Can somebody please help me to resolve this issue.
    Thanks,
    Iqbal

    Hi
    You can use FCC in sender channel, with slight change in ur structure,
    ns0:ContentContainer xmlns:ns0="http://s.com/xi/pa/10/lite">
    *<data>*
    <payload>ACK3|24052010095354|4BC8612A7A530073E100800024590A61|1005241738SPBC8612A7A5000|D0000018|SXI|75130|(INFO) File Sent|PAYMENTS</payload>
    *</data>*
    </ns0:ContentContainer>
    Parameters
    Record set str          data,1
    data.fieldNames       payload
    data.fieldSeparator  'nl'
    Try it
    Regards
    Ramg

  • Addition of a header line to a flat file using Custom Adapter Module?

    Is the header that you want to add to the input file always a constant?
    In that case why go for a module. Directly map the required constants during the mapping to your IDoc.
    My suggestion is to avoid the module

    Hi Shabrish,
    The Header is not a constant field always as the value changes per file adapter so a module will be helpful, and it will be a must to add the Header record as the first line.
    Can you suggest/direct me to some appropriate blogs? Thanks
    Regards,
    Nipun

  • File to RFC, and through RFC response i am trying to trigger the Mail adapt

    Hi All,
    Right now i am doing File to RFC, its working fine but now the requirement is when xi connect to ftp and picks the  file need to send one success mail after the file pickup and data sent to BW system again i need to send one mail and also error alerts to inbox.
    Till now i am not using BPM, can we do this without BPM pls let me know
    now i am trying to achieve this in File to RFC, and through RFC response i am trying to trigger the Mail adapter.
    or else  i need use only BPM pls share  the steps which i need to be configure.
    Am i correct or pls suggest me some idea to achive this and also pls share some smaple ones in BPM .
    Thanks in advance
    Venkat

    With BPm, follow this:
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    Instead of receiving the response in file, use mail adapter
    Regards,
    Prateek

Maybe you are looking for