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

Similar Messages

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

  • Sending an excel sheet of  to mail Ids using file to mail scenario

    Hello,
    I have a folder with three folders archive exception and log. Log folders have the details of exception. I want the XML files that are in Exception, to be sent to resp email ids with the data in it to be stored in an excel sheet( data will be collected from the log file for the correspondng file in exception).
    eg: if test.xml is in exception its log will have an exception detail somethng like " Enter a value".
    In this case i want to give the exception details as well as some relevant details with it like material number etc , time at which the exception occured . These details are to be given in an excel sheet .
    Is it possible to do using file to mail scenario. Please help by explianing the procedure.
    Regards.

    This can be done with the help of some Java and ABAP coding. I can give you a general view on how to do this.
    1. Configure a file adapter for sender to pick up the exception files.
    2. While doing the mapping, create a UDF to store the values (which you need to send it to excel file) in a table in ABAP Stack.
    3. Create a ABAP Program in R3 (which can be schedule on regular intervals depending on ur req) to create an excel sheet based on the the data in the table (created in previous step). I am not sure how easy to code ABAP program to create an excel sheet.
    4. Create one more file adapter to send this excel sheet to the corresponding mail ids.
    This is a very high level view on doing this.

  • Send output types by mail as atteched file with mail text

    Hello,
    I need to send an invoice by E-mail. A psecific output type has been created (transmission meium 5).In NACE section ''Mail title and texts'' is processed (Texte created and Document title created).
    When I generate this output type in the invoice, the mail is sent to the partner defined in NACE but the mail contains only the invoice in pdf format, and no mail text.
    How can I send a text at the same time as the pdf file?
    Thanks.
    Benjamin

    I konw the way to send mail using function modules with pdf file as attachement.
    What I want to do is to use an ouput type with communication medium 5 and to add a text in the mail.
    Benjamin
    Edited by: Benjamin CABOT on May 11, 2009 1:30 PM

  • Using mail package in file to mail scenario

    For sending the mail in proper email format ,
    we have to check the USE MAIL PACKAGE option.
    the corresponding  TO, FROM ,SUBJECT and CONTENT
    need to be handled in mapping..
    Can anyone tell me which field in the mapping will match the req fields ????

    <ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
    <Subject>Hello</Subject>
    <From>[email protected]</From>
    <To>[email protected]</To>
    <Content>row1
    row2
    row3
    row4</Content>
    </ns:Mail>
    You can use UDF example to do this. Assume your original message payload is:
    <root>
    <text>row1</text>
    <text>row2</text>
    <text>row3</text>
    <text>row4</text>
    </root>
    Create a advanced user defined function like this:
    public void AddText(String[] a, ResultList result, Container container){
    codeString b = "";
    for (int j=0;j<a.length;j++)
    b = b + a[j] + "\n";
    result.addValue(b);[/code]
    Now you connect
    text -> addText -> Content

  • I want to drag files to mails but not in body of mail , more over the available type of attachments is only photo or video so how I can attach another type

    I want while replying incoming mails to drag files to mails but not in body of mail , more over the available type of attachments is only photo or video so how I can attach another type

    There is no dragging of anything in iOS.
    Attach as many files or emails as you'd like until it reaches the max capacity of attachements for the email provider.

  • Why is mail erasing or resetting outgoing mail servers?

    Yesterday morning, Mail had reset itself to have no outgoing mail servers. I manually reentered the outgoing mail server info, and Mail functioned properly until this morning. Today, Mail had reset the outgoin mail server onmy several email accounts to None--but it didn't "erase" the proper email servers' info.  I've now manually changed the outgoing mail server for each of my email accounts, and Mail is functioning properly.  I'd like to understand what's happenin and how to prevent the nuissance int he future.  Thanks in advance for your help.

    Hi Bill, I take it the Mac loses that info when logged out or restarted?
    It sounds like your Main pref file is corrupted...
    /Users/YourUserName/Library/Preferences/com.apple.mail.plist
    Trouble is it holds almost everything, not sure if you'd like to quit Mail trash that file & setup Mail all over again, or if it'd be better to try trashing it once Mail is up & running & have it attempt to rebuild that file from what is in memory.
    Do you have any backups of that file?

  • 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

  • How to attach Excel file in Mail Receiver Adapter?

    Hello Experts,
    In R/3 coding I have Internal Table data available for which i have to generate an Alert mail with Excel file attachment.
    This is the scenario of Proxy sender to Mail Receiver. but I don't know how to convert the Internal Table data into Alert mail excel File attachment.
    Please suggest me.
    Regards,
    Jagesh

    Hi Santhosh,
    Thanks for your suggestion.
    But without using XSLT mapping also, I have generated the Excel File attachment.
    Throgh R/3 coding I am passing following.
    G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-FROM = From Mail Address.
          G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-TO = TO Mail Address.
          G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-SUBJECT = 'Test Alert mail'.
          G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-DATE = SY-DATUM.
          G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-CONTENT_TYPE =   'text/plain;name="CSV_data.csv"'.
          G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-CONTENT = 'Testing1,Testing2,Testing3'.
          G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-CONTENT_DISPOSITION = 'attachment'.
    And in the Mail Receiver Adapter i have configured as following.
    Use Mail package and Keep Attachment both options are selectd.
    So I am getting the data in different columns in the excel file But How to set the Next ROW in Excel file?
    I thnk i am missing something in CONTENT value.
    Regards
    Jagesh

  • Send a mail if no file in Sender File Adapter

    Hello guys,
    I have one doubt. I have a sender File adapter with FTP transfer protocol. I want to pull the file every 24 hours. If the file does not exist, there is any way to have an error and send a mail to the client?
    Is a requierement to do one interface, they want that XI sends a mail if no file is encounteref in the server when XI goes to pull the file. Is this possible?
    Many thanks in advance.
    Regards,
    Xavi.

    Hi,
    Refer to following link
    Read Excel instead of XML through FileAdapter
    This has good example of developing module. Only code is available. For further help you can look in Help.sap for crating module they also provide sample code.
    No need to call alert from module . go upto 24 hars if no file is received set your own structure.
    Give condition in receiver detrmination to send mail if file is not picked.
    revert back for any clearity.
    Thanks
    Sunil Singh

  • How to process a text file (mail attachment) using the sender mail adapter?

    Hi guys,
    Is it possible to process mail attachments using the sender mail adapter? Let's say I have a structured text file (attachment) which needs to be mapped and sent to target system.
    Post please any thoughts or experience.
    Thanks,
    Olian

    Hi Olian,
    Have a look at these helpful links -
    1. http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05&overridelayout=true
    2. http://www.riyaz.net/blog/xipi-configuring-the-sender-mail-adapter/
    3. http://help.sap.com/saphelp_nw70/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm
    Regards,
    Sunil Chandra

  • 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

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

  • 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

Maybe you are looking for

  • Itunes 4.9 wont open

    I recently downloaded itunes 4.9 and now it wont open. There are no error messages popping up at all when i am trying to open it. My computer is also having trouble shutting down now, weird "end program" messages keep popping up. I have been reading

  • Date format in iPad Numbers not compatible with Excel or OpenOffice

    I use Apple Numbers on my iPad2 to collect data in the field, then download the file from iWorks as an Excel file to my PC running Windows XP and Office 2003. In the Numbers file, I want to enter dates in the format: mm/dd/yyyy hh:mm and that format

  • How do I reduce the number of pages in an iPhoto book from 100 to 50

    How do I reduce the number of pages in an iPhoto book from 100 to 50.  I have selected 153 photos to be put in the book and iPhoto automatically designated the book to be 100 pages in length.

  • To print text in sapscrpit.

    I want to print text maintained in standard tcode QM03 in sapscript . I have a y-report as driver program and want to print the text maintained for a notification number in the script. I have used "read_text". But i get only partial text. In the debu

  • What can I do with my iphone 4s that is locked to sprint but hasnt been activated?

    Can I sell it? Upgrade? Or am I stuck with a phone that doesnt work? Ideally I would just like to get it to work, it hasnt been activated yet, so surely someone can do something? Thanks