Mail Content to PO Reminder / Expeditures ( ME91F )

Dear MM Gurus ,
As per the requirement , I have to set up three different reminder e-mails as per "purchasing value Key".
1. Configured PV keys
2. Maintained in the Material Master
3. Info records Updated
4. Copied to PO as usual.
5. Defined output types in order to capture the prints & "external send" option to reminder e-mail.
In this scenario , the reminder expedites dates triggered.
I have made the print ( ZNEU ) first and called ME91F for the expediter. It works but having a problem with e-mail body.
How can I write e-mail body to the vendor to capture these automatically. Please help.

hi Jurgen,
thanks for sharing the snote.
FYI : I am ABAP person.
I am trying to check is it truly not possible to get body text & mail subject in any ECC system or its just happening in our IDES system.
Meanwhile can you please check in your system, is it really sending mail(without mail body) for standard NACE for MAHN with MEDRUCK.
Actually we have to send PO reminder mails AUTOMATICALLY to vendor depending on delivery date & MAHN1/MAHN2/MAHN3 fields in delivery tab at line item level. But the format of attachment will be customized as per our client along with some basic body in email.
Can you please provide some steps how to achieve this ? what needs to be configured in MAHN. And what needs to be developed for Smartforms and driver program ? If possible any code snippets please.
I had understanding that developing a simple smartform & copy of driver program SAPFM06P and attaching in NACE in MAHN under medium 5(external send) will solve my requirement. but came to know that ME91F & ME9F also plays some role. And there is some background job as well for automatic mail sending...that background program also I don't know .
We are into realization phase in implementation project and running out of time. that's y seeking help.
Any direction or code snippets please....
Regards'
Pankaj Khare

Similar Messages

  • Can't Mail Contents of this Page after MobileMe update!

    In Safari, you used to be able to do a "cmd I" or go to the File Menu and go down to "Mail Contents of this Page" select it and it would paste in to Mail a screen shot of the Safari page you were on.
    Now when you do this, after the MobileMe update has been run and installed. Safari no longer can find the Mail app. Here is a copy of the text of the error message that you get now.
    "Safari couldn’t create an email message because it couldn’t locate an email application.
    You can use the Mail application included with Mac OS X to send webpages. To do so, you need to install Mail using the Mac OS X installation CDs."
    I'm on a MacBook 2 Ghz INtel Core 2 Duo, with MAC OS X (10.5.2), Mail version 3.4 (last modified 7/11/08) Safari version 3.1.2 (last modified 6/30/08), MobileMe version 5.1 in the Preference Pane.
    The suggested solution of reinstalling mail would not seem to work as it would reinstall older versions of mail that would not have the functionality of being use MobileMe. It would seem to be that a Safari path is what is required to have the code know that the Mail app has been renamed(?).
    CW Rice
    Sheldonville, MA

    Hi, I'm on 10.5.4 I must have mistyped my OS version number. I took the version number for MobileMe from the About This Mac information. I was surprised like you see a version number of 5.1 I have run Software update as well just now to see if any newer versions of my software are there. None I'm up to date.
    I do know that when I ran the MobileMe updater it said that it fixes problems in Mail, right now some things in various software applications still refer to .Mac. I still think that somewhere in the Mail app that the name was changed, so that Safari is looking for the old name in a string of code that executes the placing a copy of the current page in Mail as an outgoing mail message.
    As for that activity bar in Safari, I guess I have never noticed it until now, on a laptop the bottom of the page is some times obscured by the dock which I have at the bottom. I truly noticed it more when I ran the MobileMe page.

  • Business Workplace Inbox : Mail Content Not Displayed

    Friends,
    We have a problem in displaying contents of the mail(SAP Inbox) in one of the PC's. When we reply w/refernce to that message the content is displayed properly. And also the same mail content is displayed properly in another PC's for the same user.
    We thought this is a GUI problem and re-installed SAP GUI(all components) but still the issue exists.
    Any other settings are required to be done to solve this problem? Can anyone please help us solving the issue?
    Note: we are using SO_DOCUMENT_SEND_API1 for creating the mail notification and the content is passed as 'RAW'.
    Thank you very much for your help and suggestions.
    Cheers,
    MS
    Message was edited by: Srinivasa Maram

    Srinivas,
    1) Is the problem only with the message being sent through custom code using SO_DOCUMENT_SEND_API1? What happens if you send a message using SAPOffice?
    2) Are the patch levels of the GUI same on both machines? Are you sure both PCs are configured exactly the same? Especially wrt to Windows & IE patches. I vaguely remember there were some issues a while ago with some IE patches. Normally in most client environments the desktops upgrades are controlled centrally and users do not have admin rights. Make sure the user has not done upgrades/installs on the PC in question. If that were the case the PC may needs to be reimaged.
    BTW - What version  are you on R/3 and SAPGUI?
    Regards,
    Ramki Maley

  • How to make "Mail Contents os this page" in safari 7?

    Hi everybody,
    I need for my daily work to make once or twice a day an upload of an mailing PNG picture. Bevor the upgrade to Maverick Safari 7 I used the safari version 5.1.10 which works great to make "Mail contents of this page" (File Menu > Mail Contents of this file). Now in the Safari 7 version this option is not anymore available and it is change to SHARE "Email this page". This is not the some and it does not match the legal proposing.
    I appreciate as answer for a good solution or which steps shoud I do to get this option again.
    Thx a lot

    Hi Carolyn,
    Thanks a lot for your help and sorry for the inconvenience. I follow your instruction but it is still not working.
    I tried to use now another Mac which I have here, with Mac system 10.6.8, where I use the safari version 5.1.10 (6534.59.10) and it works perfect.
    Here are the screenShots:
    The screenshot from the older computer: here you see the option Mail contents of this page.
    Using that older Mac we have the perfect result, where you see the legal text + images, which i sent to me in bcc.
    The result from my Mac with Maverick and after following the instruction:
    You see the full legal text but no the image!
    Maybe this is just a minor bug in Safari, to exploring yet and to improve. For the meantime I have to use the older Mac only for this part of the job. Not A PERFECT DAY (lou reed, RIP) but not the end of the world!
    Thanks for you help and I´m looking forward to get news on this issue from you.
    <Image Edited By Host>

  • I have two computers one 10.5.8 one 10.6.8.  Updated the 10.6.8 and now my mail has disappeared on one computer - do I sync account to get all my mail content back?

    I have two computers one IMac 10.5.8 one MacBookPro 10.6.8.  Updated the MacBookPro 10.6.8 and now my mail has disappeared on that computer - do I sync account to get all my mail content back onto the MacBookPro?

    You can do it. This article from Macworld will be helpful to you:
    http://www.macworld.com/article/161087/2011/07/install_lion_over_leopard.html
    I recommend the "brute-force" method.
    Just make sure you have your data backed up properly!

  • How do I save e-mail content on my MacBook Air,so I may print them as plain text?

    How do I save e-mail content on my MacBook Air, so I may ptint the content as plain text?

    10.7 Lion
    http://support.apple.com/kb/PH4858
    10.8 Mountain Lion
    http://support.apple.com/kb/PH11746

  • Using the Mail content and Mail Attachment in the mapping

    Hi,
    I have a requirement in which I need to read a file from the mail server and I am using the sender mail adapter for this. I have to convert the attachment of the mail in to the payload. To do this I am using the payload swap bean and mail transform bean. Now the issue is I have to get the information from both attachment and the mail content and need to map it to the target message. Please let me know how to do this.
    Thanks!
    ~Vaas

    Not sure if there is a staright forward way to achieve this.
    But I can think of a work around for your scenario.
    >>To do this I am using the payload swap bean and mail transform bean.
    Instead of doing it this way, try
    1. Message Transform bean that will transform the payload(content of the mail) to XML.
    2. PayloadSwapBean to switch Payload and Attachment.
    3. Message Transform bean to transform the attachment to XML.
    4. Custom adapter module to read the attachment, contnet and create your own desired XML.
    Alternatively, step 4 could be replaced by a Java mapping doing the same operation.
    Regards
    Jai

  • Attachments send as mail content

    I have experienced the following several times:
    When sending a mail with word or xls file attached, the files are being send as mail content !
    Workaround is to open the attached files, make a bogus change+save and resend--> problem solved.
    Very annoying problem ! Doesn't happen always but when it happens it can be reproduced...
    Related to 10.5.2? (I don't recall to have the same problem under 10.5.1)
    Anyone with simular problems? Solutions?
    Ex:
    --Apple-Mail-4-903560157
    Content-Disposition: attachment;
    filename=persberichtwedstrijd_AGH_15032008v2.doc
    Content-Type: application/octet-stream;
    x-unix-mode=0755;
    name="persberichtwedstrijd_AGH_15032008v2.doc"
    Content-Transfer-Encoding: base64
    0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAACAAAAzwAAAAAAAAAA
    EAAA0QAAAAEAAAD+////AAAAAM0AAADOAAAA////////////////////////////////////////
    ///////////////////////////////////////////////////////////////////////////s
    pcEAcWATBAAA+BK/AAAAAAAAEAAAAAAABgAA3A0AAA4AYmpianFQcVAAAAAAAAAAAAAAAAAAAAAA
    AAATBBYAF8QAABM6AQATOgEA3AUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//w8AAAAA
    AAAAAAD//w8AAAAAAAAAAAD//w8AAAAAAAAAAAAAAAAAAAAAAKQAAAAAAMgEAAAAAAAAyAQAAMgE
    AAAAAAAAyAQAAAAAAADIBAAAAAAAAM

    A workaround may be to use Finder's "Crete Archive..." and send the compressed version.

  • How to insert a hyperlink in mail content for workflow

    Experts,
    I want to insert a hyperlink in mail content when i use sendmail type step in workflow.
    How to do it?
    Thanks you very much!

    Hi, Venkat
      Thanks you for your help!
      I try to use '<a href=''https://login.yahoo.com/config/login_verify2?&.src=ym''>Yahoo mail</a>' in the mail, but
      my outlook display the mail content is '<a href=''https://login.yahoo.com/config/login_verify2?&.src=ym''>Yahoo mail</a>',
      is not a hyperlink.
    Ken.Li

  • Email signature between mail content in ipad/iphone

    I need to launch the mail composer with some content in it. I have already written a html content. The mail is looking properly, but the mail signature is coming in between the mail content.
    How to remove that mail content.
    in MFMailComposeViewController object's setMessageBody, I have the set the isHTML parameter to YES.
    Here is the HTML Content I am setting as body
    [emailBody setString:@"<html><body><div id=\"\" style=\"display: inline;float: left;\"><a style=\"position: absolute;margin-top: 20px; -webkit-box-shadow: 0px 3px 5px #444;-moz-box-shadow: 0px 3px 5px #444;box-shadow: 0px 3px 5px #444;\" href=\"xyz.com\"><img src=\"http://xyz.jpeg\" alt=\"img\" width=\"120px\" height=\"140px\"/></a><p style=\"position: absolute;margin-top: 170px; \"><b><i>Magazine Name</i></b></p><p style=\"position: absolute;margin-top: 20px;margin-left: 140px; margin-right: 3%;\"><i>Parents & Kids Magazine </i>is a resource for busy families, providing real-life solutions, sound advice, creative ideas and practical information to make their lives easier. Its informative articles and features appeal to parents—from conception through the teen years. Unlike national parenting magazines, <i>Parents & Kids </i>provides Jackson area families with information specific to their communities.</p></div><div id=\"\"style=\"position: absolute;margin-top: 190px;\"><p>To view this page in the online Digital Edition <a href=\"xyz.jpeg\"><b><i>click here</i></b></a></p><p>To view this page on your iPad do one of the following:</p><dl ><dd><p>- &nbsp &nbsp If you have the Magazine Central App on your iPad <a href=\"http://\"><b><i> click here.</i></b></a></p></li><dd><p>- &nbsp &nbsp If you do not have the Magazine Central App on your iPad <a href=\"http://\"><b><i> click here.</i></b></a></p></li></dl></div></body></html>"];

    Hi Kristina...
    Try "resetting" the devices...
    Hold the On/Off Sleep/Wake button and the Home button down at the same time for at least ten seconds, until the Apple logo appears.
    Then try again. If that didn't help, on one device tap Settings > General > Reset > Reset All Settings. If that helped, do the same for the other device.

  • How to create checkbox in mail content

    Hello,
    I have created a program to send mail. The requirement is to write some text in mail content along with pdf.
    The issue I am facing is that the mail content(body) should contain check boxes.
    At present the mail body fetches all text from SO10 standard text. I have tried inserting symbol in SO10 ( SAP-SYMBOLS ) but the out displays <697>,, instead of checkbox in mail.
    How should I create checkbox that are displayed in mail body.?
    <removed by moderator>
    Edited by: Thomas Zloch on Aug 10, 2011 12:01 PM

    go to the standard text > change editor > select PC editor
    now you can put an HTML TAG
    <br>
    <input type="checkbox" name="option1" value="Milk"> Milk
    <br>
    I can see the check box in SAP, but not in OUTLOOK... not sure whether we an issue with SAP or OUTLOOK or we entirely look in different way..

  • Receiver Mail Adapter: Formatting the mail content

    Dear All,
    I'm using a receiver mail adapter. I would like to format the content of the mail using the contents of the XML message. For example:
    XML Message
    <Order>
      <OrderID>1234</OrderID>
      <CustomerName>Sandeep Joseph</CustomerName>
      <NetValue>7467.99</NetValue>
      <Link>http://locahost:7000?OrderID=1234</Link>
    </Order>
    Mail Content
    Dear Approver,
    Please approve the Order - 1234, Customer - Sandeep Joseph
    Link: http://locahost:7000?OrderID=1234
    Thanks,
    Are there any modules which would help formatting to this extend? Or any other mechanism?
    Thanks,
    Sandeep

    The easiest means is to use XSL mapping and create the Content Type as HTML and emded the cotent within HTML tags.
    One such example is shown by Praskash in this blog,
    /people/community.user/blog/2006/09/07/email-reporting
    /people/community.user/blog/2006/09/08/email-report-as-attachment-excelword
    If you use the Mail Package option then you can also wite a UDF in your mapping that will populate the content field. For every newline you can use the java new line \n and so on.
    Regards
    Bhavesh

  • How to get Formatted Mail Content through Java Application

    I am using a mail sending function in my applet code which is listed below:
    Main content is fetched from a format tool bar in JSP Page and it is passed as parameter to applet and it is used inside the mail content.
    Same content when passed and executed in a JSP page, the formatted content is not lost and it is included in mail content as what it is fetched from Format Tool Bar.
    Format is lost when it is used inside the Java Application mail sending function.
    The below code I have used to send mail:
    package com;
    import java.util.HashSet;
    import java.util.Properties;
    import java.util.Set;
    import javax.mail.BodyPart;
    import javax.mail.Message;
    import javax.mail.Multipart;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeBodyPart;
    import javax.mail.internet.MimeMessage;
    import javax.mail.internet.MimeMultipart;
    class mailsendClass
    public void sendmail(String from,String host,boolean debug,String msgText)
         try
              Set tomailsid = new HashSet();
              Set ccmailsid = new HashSet();
              //to mail ids           
              tomailsid.add("[email protected]" );          
              tomailsid.add("[email protected]" );
              tomailsid.add("[email protected]" );
              //cc mail ids
              ccmailsid.add("[email protected]" );
              ccmailsid.add("[email protected]" );
              String mailarray[]= (String[])tomailsid.toArray(new String[tomailsid.size()]);
              String ccmailID[]= (String[])ccmailsid.toArray(new String[ccmailsid.size()]);
              Properties props = new Properties();
              //props.put("mail.smtp.port","425");
              props.setProperty("mail.smtp.host", host);
              if (debug) props.setProperty("mail.debug", ""+debug);
              Session session = Session.getInstance(props, null);
              session.setDebug(debug);
              String mailsubject = "Mail Subject";
              // create a message
              Message msg = new MimeMessage(session);
              msg.setFrom(new InternetAddress(from));
              javax.mail.internet.InternetAddress[] toAddress=new javax.mail.internet.InternetAddress[mailarray.length];
              for (int i=0;i<mailarray.length ;i++ )
              toAddress=new javax.mail.internet.InternetAddress(mailarray[i]);
              System.out.println ("id inside to address loop " + i + " is "+ mailarray[i]);
              System.out.println ("toAddress " + i + " is "+ toAddress[i]);
              msg.setRecipients(Message.RecipientType.TO, toAddress);
              msg.setSubject(mailsubject);
              try
                   javax.mail.internet.InternetAddress[] CCAddress=new javax.mail.internet.InternetAddress[ccmailID.length];
                   for (int i=0;i<ccmailID.length ;i++ )
                        CCAddress[i]=new javax.mail.internet.InternetAddress(ccmailID[i]);
                        System.out.println("CC Array is ===> " +CCAddress[i] );//          
              msg.setRecipients(Message.RecipientType.CC,CCAddress);
              catch(Exception ss)
                   System.out.println("CC mail Exception is ====>"+ ss);     
                   msg.setSentDate(new java.util.Date());
    //          Multipart multipart = new MimeMultipart("relative");
                   Multipart multipart = new MimeMultipart("alternative");
              BodyPart messageBodyPart = new MimeBodyPart();
              messageBodyPart.setContent(msgText, "text/html");
    //          messageBodyPart.setContent(msgText, "text/plain");
              multipart.addBodyPart(messageBodyPart);          
                   msg.setContent(multipart);
              Transport.send( msg );
         catch (Exception e)
              System.out.println("The Exception is ------>"+e);
    public class SendMail {
    public static void main(String[] args)
         System.out.println("before Mail Send ");
         mailsendClass mail = new mailsendClass();
         String from="[email protected]";
         String host="172.16.2.6";
         String msgText="<p><strong>Index</strong><br />I have posted the following PDFs (Second Pages) as mentioned to start producing the Index:<br />• Engage<br />• Chapters 1–6<br /><a title='ftp:///Index' href='ftp://index/'>ftp:///Index</a><strong><br />XML Coding - Files with errors</strong><br />• Engage<br />• Chapters 1–6<br /><a title='ftp:///XML_Coding_Need%20Fixing' href='ftp://xml_coding_need%20fixing/'>ftp:///XML_Coding_Need%20Fixing</a></p>";
         mail.sendmail(from,host,true,msgText);
         System.out.println("after Mail Send ");
    Content placed in format tool bar is as follows:
    Index
    I have posted the following PDFs (Second Pages) as mentioned to start producing the Index:
    • Engage
    • Chapters 1–6
    ftp:///Index
    XML Coding - Files with errors
    • Engage
    • Chapters 1–6
    ftp:///XML_Coding_Need%20Fixing
    Content fetched from format tool bar inside JSP page is as follows:
    <p><strong>Index</strong>
    I have posted the following PDFs (Second Pages) as mentioned to start producing the Index:
    &bull; Engage
    &bull; Chapters 1&ndash;6
    <a title="ftp:///Index" href="ftp://index/">ftp:///Index</a><strong>
    XML Coding - Files with errors</strong>
    &bull; Engage
    &bull; Chapters 1&ndash;6
    <a title="ftp:///XML_Coding_Need%20Fixing" href="ftp://xml_coding_need%20fixing/">ftp:///XML_Coding_Need%20Fixing</a></p>
    Fetched Content inside Java Application through parameter and it will use as input for mail content is as follows:
    <p><strong>Index</strong>
    I have posted the following PDFs (Second Pages) as mentioned to start producing the Index:
    • Engage
    • Chapters 1–6
    <a title="ftp:///Index" href="ftp://index/">ftp:///Index</a><strong>
    XML Coding - Files with errors</strong>
    • Engage
    • Chapters 1–6
    <a title="ftp:///XML_Coding_Need%20Fixing" href="ftp://xml_coding_need%20fixing/">ftp:///XML_Coding_Need%20Fixing</a></p>
    Actual mail received after Java Application execution is as follows:
    Index
    I have posted the following PDFs (Second Pages) as mentioned to start producing the Index:
    ? Engage
    ? Chapters 1?6
    ftp:///Index
    XML Coding - Files with errors
    ? Engage
    ? Chapters 1?6
    ftp:///XML_Coding_Need%20Fixing
    Unicode characters in the mail content are replaced by “?”.
    In the function listed above I have used the MIME Setting as
    Multipart multipart = new MimeMultipart("alternative");
    I have tried by using “relative” MIME format also as
    Multipart multipart = new MimeMultipart("relative");
    But I am not getting the actual format passed as input to the Java Application in the mail content.
    Can anybody let us know how to overcome this problem?
    Thanks in advance.

    You need to really understand how the different multiparts work instead of just guessing.
    But for your application, you don't need a multipart at all. Just use msg.setText(msgText, null, "html");
    Although that doesn't explain your problem, it will simplify your program.
    How are you determining that the mail received doesn't have the formatting? Are you viewing it in a
    mail reader (e.g., Outlook)? Or are you fetching it with JavaMail?
    Are you using an Exchange server? Exchange will often reformat your message to what it thinks you meant.

  • Mail content coming as Attachment too.

    Hi -
    While we are trying to send mails using SO_DOCUMENT_SEND_API1 ,
    the mail content is coming as attachment .
    Can you suggest whats worng ?
    Thanks,
    sandhya

    Hi,
    Try using the sample code below:
    *& Report  ZBC_ITAB_TO_EXCEL_NEW                                       *
    REPORT  ZBC_ITAB_TO_EXCEL_NEW                   .
    CLASS: cl_abap_char_utilities DEFINITION LOAD.
    DATA: docdata LIKE sodocchgi1,
          objpack LIKE sopcklsti1 OCCURS 1 WITH HEADER LINE,
          objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE,
          objbin1 LIKE solisti1 OCCURS 10 WITH HEADER LINE,
          objbin2 LIKE solisti1 OCCURS 10 WITH HEADER LINE,
          objbin_final LIKE solisti1 OCCURS 10 WITH HEADER LINE,
          reclist LIKE somlreci1 OCCURS 1 WITH HEADER LINE,
          tab_lines TYPE sy-tabix.
    DATA: gd_sender_type LIKE soextreci1-adr_typ.
    DATA: c_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab,
          c_ret TYPE c VALUE cl_abap_char_utilities=>cr_lf.
    DATA: c_dev TYPE sy-sysid.
    DATA: BEGIN OF i_data OCCURS 0,
          a(20),
          b(20),
          END OF i_data.
    DATA: BEGIN OF st,
          f1(2) TYPE c,
          f2(2) TYPE n,
          END OF st.
    DATA: itab1 LIKE TABLE OF st WITH HEADER LINE,
          itab2 LIKE TABLE OF st WITH HEADER LINE.
    DATA: n TYPE i.
    PARAMETER: p_email1 LIKE somlreci1-receiver,
                           p_sender LIKE somlreci1-receiver.
    START-OF-SELECTION.
      itab1-f1 = 'AA'. itab1-f2 = '01'. APPEND itab1.
      itab1-f1 = 'BB'. itab1-f2 = '02'. APPEND itab1.
      itab1-f1 = 'CC'. itab1-f2 = '03'. APPEND itab1.
      itab2-f1 = 'ZZ'. itab2-f2 = '26'. APPEND itab2.
      itab2-f1 = 'YY'. itab2-f2 = '25'. APPEND itab2.
      LOOP AT itab1.
        CONCATENATE itab1-f1 itab1-f2 INTO objbin1 separated BY c_tab.
        CONCATENATE c_ret objbin1 INTO objbin1.
        APPEND objbin1.
      ENDLOOP.
      LOOP AT itab2.
        CONCATENATE itab2-f1 itab2-f2 INTO objbin2 separated BY c_tab.
        CONCATENATE c_ret objbin2 INTO objbin2.
        APPEND objbin2.
      ENDLOOP.
      LOOP AT objbin1.
        MOVE objbin1-line TO objbin_final-line.
        APPEND objbin_final.
      ENDLOOP.
      LOOP AT objbin2.
        MOVE objbin2-line TO objbin_final-line.
        APPEND objbin_final.
      ENDLOOP.
      PERFORM process_email.
      c_dev = sy-sysid.
      IF sy-sysid = c_dev.
        wait up to 5 seconds.
        SUBMIT rsconn01 WITH mode = 'INT'
        WITH output = 'X'
        AND RETURN.
      ENDIF.
      IF sy-subrc = 0.
        WRITE: / 'Email succesfilly delivered'.
      ELSE.
        WRITE: / 'failure'.
      ENDIF.
    *&      Form  process_email
    *       text
    FORM process_email.
      IF p_sender EQ space.
        gd_sender_type = space.
      ELSE.
        gd_sender_type = 'INT'.
      ENDIF.
    *Body
      docdata-obj_name = 'Mail_Excel_File'.
      docdata-obj_descr = 'Excel file attachment'.
      objtxt = 'Attached is the sample Excel file'.
      APPEND objtxt.
      DESCRIBE TABLE objtxt LINES tab_lines.
      READ TABLE objtxt INDEX tab_lines.
      docdata-doc_size = ( tab_lines - 1 ) * 255 + strlen( objtxt ).
      CLEAR objpack-transf_bin.
      objpack-head_start = 1.
      objpack-head_num = 0.
      objpack-body_start = 1.
      objpack-body_num = tab_lines.
      objpack-doc_type = 'RAW'.
      APPEND objpack.
    *Attachment
      n = 1.
      DESCRIBE TABLE objbin1 LINES tab_lines.
      objpack-doc_size = tab_lines * 255.
      objpack-transf_bin = 'X'.
      objpack-head_start = 1.
      objpack-head_num = 1.
      objpack-body_start = n.
      objpack-body_num = tab_lines.
      objpack-doc_type = 'XLS'.
      docdata-obj_name = 'Excel_File_Attachment1'.
      objpack-obj_descr = 'Excel File Attachment1'.
      APPEND objpack.
      n = n + tab_lines.
      DESCRIBE TABLE objbin2 LINES tab_lines.
      objpack-doc_size = tab_lines * 255.
      objpack-transf_bin = 'X'.
      objpack-head_start = 1.
      objpack-head_num = 1.
      objpack-body_start = n.
      objpack-body_num = tab_lines.
      objpack-doc_type = 'XLS'.
      docdata-obj_name = 'Excel_File_Attachment2'.
      objpack-obj_descr = 'Excel File Attachment2'.
      APPEND objpack.
    *Create the list of recipients
      reclist-receiver = p_email1.
      reclist-rec_type = 'U'.
      reclist-express = 'X'.
      APPEND reclist.
    *Send the e-mail
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = docdata
          put_in_outbox              = 'X'
          commit_work                = 'X'
        TABLES
          packing_list               = objpack
          contents_bin               = objbin_final
          contents_txt               = objtxt
          receivers                  = reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      COMMIT WORK.
    ENDFORM.                    "process_email
    Hope it helps
    Regards
    Mansi

  • Sending Mail Content as Input to Java WebService through SOA

    Hi Experts,
    I am working on a SOA project in 11.1.1.6
    My project requirement is to send Mail Content (a paragraph with 3 lines with new lines in middle of statements) as input to the Java API which is deployed as webservice.
    To one of the arguments of the Java API, I need to pass this mail content as Input. Need your expert advice on the same. Thanks in Advance.
    Example of Mail Content:
    Hi,
    This is a Test Mail
    Thanks

    - create a new webservice in the composite and link it to your bpel
    - in your bpel invoke the partnerlink
    - to "format" you mail you could create a custom xsl which will create the mail in html format for you"
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <xsl:output method="html"/>
    <xsl:template match="/">
    Hi,<br/>
    <br/>
    This is a Test Mail<br/>
    <br/>
    Thanks
    </xsl:template>
    </xsl:stylesheet>Or css and style the html email in a big cleaner way

Maybe you are looking for

  • WSH_NEW_DELIVERIES_S Reaching maximum value in Oracle apps 11.5.10.2

    Hello Friends, In one of our production system, WSH_NEW_DELIVERIES_S Reaching maximum value.Current application version is #11.5.10.2 and Database version is 11.2.0.3.0 Can any one help what we can do, do we have any Meta link Note ID's or Patches to

  • People recognition in pse11

    Recognition works properly about a year. After importing some pictures last week it doesn't work. When i try to add a face manually the rectangular box did not appear. Organizer shows the message that automatically recognition has to do before. I can

  • Forms | Pages | Screens

    Good Day, I'm a simple guy, programming Visual Basic since version 3, HTML since Netscape ruled the world. The concept of Pages | Forms | Screens is something I am familiar with. In Flex - It seems this concept is obfuscated. I understand I can have

  • Process multiple files issues

    Hi all, I tried to process multiples files with PSE9. My purpose was : Source DNG files Photo optimization, add a tag left bottom and record the results into jpeg high quality files in an empty directory. The results I got were : -optimization applie

  • Temporary table - yes or no?

    I need to create a list of reports on the fly. The user will be able to pick from the list (with check boxes) which reports he wants printed. The reports will also be created on the fly. It's a long list of reports (30+) and it is always different. T