Empty mail content problem in so_document_send_api1

of the function, mail and the content delivers properly. But when I try to send the mail to another friend of my in the same network but different address, mail still delivers but the content bec omes empty. I try to send both of us at the same time and he got the empty mail and I got the proper mail. what can be the reason for this problem ? if anyone enligths me about this unusual situa tion I will be preciated. thanks in advance..
Edited by: Aselsan IT Department on Mar 23, 2009 9:39 AM

Hi,
Please check with the Basis person.
Some settings might not be done.
Best Regards,
Suresh

Similar Messages

  • Mail Problem with multipart/mixed Content, "empty mails" via IMAP

    I do need some help.
    Here is my setup. I have a OSX Mountain Lion Server with the mail service running. fetchmail is collecting mail from a pop account. I have two Mac clients - one with Outlook for Mac, one with Apple Mail,
    Everything is fine exept...
    ... if I receive a mail from an Exchange Server with a PNG-Image in the signature (e.g. a company logo) then...
    ... this mail will be displayed as an empty mail. Correctly spoken, the mail header is there, but the mail body ist not shown. The body is there - I can see it if I swich to the raw view in mail.
    So I tried to figure out what the reason might be. I also tried several ideas from other discussions here - without success.
    This error is concerning only mails with the Content-Type: multipart / mixed - coming from Exchange Servers. The mail body is not displayed. It seems to be that something is corupptung the IMAP Envelope of these mails.
    - Is it a security problem?
    - Is it a filtering problem?
    - Is it a settings problem in Apple Mail and Outlook for Mac?
    - Is it a settings problem in fetchmail?
    I don't know... I think it is a settings problem in the main.cf - but I don't know what to do.
    Can anybody help???
    Kind regards,
    Robert.

    Problem solved!
    It was a bug in fetchmail. Try out the version 6.3.26. You have to compile fetchmail yourself... it is not a great thing. And everything is working.
    http://developer.berlios.de/project/shownotes.php?group_id=1824&release_id=19356
    Robert

  • What's with the new edition of Pages using Maverick?  Google rejects the files  with the following message attached "The reason for the problem: 5.3.0 - Other mail system problem 552-'5.7.0 This message was blocked as its content security threat?

    I recently upgraded both Pages 09 (I believe) and went to OSX 10.9 Maverick .... now I am unable to send a pages document to a friend on gmail.  Google rejects the message and attachment with the following explanation -
    The reason for the problem:
    5.3.0 - Other mail system problem 552-'5.7.0 This message was blocked because its content presents a potential\n5.7.0 security issue.

    Same Problem here
    IWORKS 09    pages, keynote, numbers does not send in MAIL (mac) because of "This message was blocked because its content presents a potentialsecurity issue"
    its a problem not only on GMAIL but also Live, Hotmail, Yahoo, and other services...
    The problem is that gmail and others haved yet accepted the latest iworks 09 files. its a problem that apple can ask then to fix but its up to the gmail and others to fix it.
    Solution!!!:
    1 - Send it by exporting to office files
    2 - Saving the files as old iwork documents
    3 - Command P and save as PDF
    4 - Save in icloud and send the URL
    So you can still send them but have to take a bit more of your time
    i hope you understand my english is not optimal
    And if you have any questions feel free to ask me

  • Hi  problem while getting mail content

    hi dude getting problem while retriving mail content from multipart/mixed mail the content is displaying like this
    javax.mail.internet.MimeMultipart@146218a
    please help me out

    In case it wasn't clear to you, you've got a message with attachments.
    See this entry:
    http://java.sun.com/products/javamail/FAQ.html#mainbody
    If you still don't get it, ask a more detailed question.

  • 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

  • Unable to view sent mail content

    Has anybody had the problem of not being able to view sent mail content in the sent mailbox? When a message is selected from list, the message "The message from XXXXXXX <[email protected]> concerning “title” has not been downloaded from the server. You need to take this account online in order to download it." when I try to view a sent message. This issue applies to all the sent messages in the sent mailbox, I can see a complete list of messages, just not the content?

    If this is a POP account and you’re running Mac OS X 10.3 (Panther), as your profile indicates, you probably have the problem described here:
    Overstuffed mailbox is unexpectedly empty
    If you’re just starting to experience the problem, doing what the article suggests might work. If you’ve let the problem to become worse over time, however, it may be too late to solve it as described in the article.
    Because of the differences between Mail 1.x and Mail 2.x, further discussing your problem here might confuse other users with apparently similar problems running Mac OS X 10.4 (Tiger), so please start a new topic in the Mail & Address Book - Mac OS X 10.3 & earlier forum, or just look for other threads discussing the same problem there. This is actually a FAQ in that forum.

  • Preferable database for storing the Inbox Mail Content

    Hi All
    we are developing one Email clinet software by using java mail API,
    we are getting the inbox mail content without any problem, but when storing the data in database is giving problem, now i'm using MS Access database
    For mailbody content used as MEMO type.
    Error is : Count Field is Incorrect
    thankq in advance
    vasu

    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

  • Empty Mails in SOST

    Hi,
    I have a workflow that sends empty mails (look at the workitem in SOST the mail is empty), but when I look at the workitem via transaction SWI1 the contents is there. Anybody who has had a similar experience? If yes, have can I solve the problem?
    Thank you in advance.
    /Elvez

    Hi Elvez,
    => Verify the <i><b>SCOT</b></i> settings for mail.
    => Try executing following transaction, which will synchronize the runtime buffer of workflows.
    <i><b>SWU_OBUF - Synchronize Runtime Buffer</b></i>
    Still if the problem persists, following could be the checklist to verify-
    1. Create the SendMail task again in workflow.
    2. First write the text message of the Send Mail
    3. Then add the container variables whereever you want in the text message. Don't move any of the text after this.
    4. Save the workflow. Activate & test.
    This should result in the required solution.
    Hope this helps.
    PS If the answer solves your query, plz close the thread by rewarding each reply.
    Regards

  • Mail content disappears...

    Hi,
    i have a problem with Mail.App on my mac..
    Some mails contents disappears !! I can read them on my iPhone, or on my mobile me account, but not on my macbookpro..
    I try to repair premission, delete caches files, etc. Check font book, rebuild mail boxes
    Nothing change
    Have you an idea ??
    Thanks
    Carl

    Thanks Chris,
    However I only have the files that I copied from XP (on USB stick) and I copied them onto the PC which is now running Linux Mint. I made an account in Thunderbird (same email address/password). It created a new folder. I browsed until I found the folder where I had copied the contents and pointed to this folder. When I then opened TB it started by saying it was making a summary. It then showed an empty inbox. Moreover, When I then check the folder, the original files now show 0 bytes. So this does not work for me.
    M.

  • How I solved my Spotlight+ Mail indexing problem

    OK, so I thought I would post my solution to a stubborn indexing problem, for people who may have the same issue (and it does seem many people do).
    Problem: Spotlight index was unreliable. In particular, Spotlight was terrible at indexing mail. It could not find the messages by content that it would find by searching the "from" field, nor could it find those reliably. Unusable.
    What DID NOT work:
    -- adding and removing any folder whatsoever in the Privacy preferences of Spotlight. The index would rebuild, but with the same problems.
    -- doing this via terminal (e.g, using sudo mdutil -E /Volumes/MyHardDisk)
    -- using Onyx
    -- using Spotless
    -- simply reinstalling the system
    -- manually modifying the plist files inside the .spotlight folder to add and remove the folders that would not get indexed.
    What DID work:
    -- first, I reinstalled the system. That's not such a big deal. Upgrade up to 10.4.6
    -- then, I authorized the root user (that's probably not necessary) (this, you do by using Netinfo manager)
    -- Then, I deactivated the index (via terminal:
    sudo mdutil -i off /Volumes/MyHardDisk
    -- now the tricky part. This concerns Mail, in particular.
    I have a very complex mail folder (tens of thousands of messages). I noticed that inside each mail folder, I had two things that were not supposed to be there
    1. a copy of each folder.mbox which was empty, but with the same name without the extension .mbox. This is probably something that was created while importing mail from Panther to Tiger, for what I can tell.
    2. Most importantly, a file named ".index.ready". This also, apparently, was an old legacy coming from Panther. I suspect this was the main problem for the lack of indexing in Mail.
    Ok, so... I deleted these folders and files. If you have a complex structure of subfolders, you can delete the files with an Unix command by first cd to your mail folder, and then use
    find . -name \.index.r* -ok rm {} \;
    which will ask you confirmation before deleting each file.
    It was faster to remove the empty subfolders by hand, as they all had different names.
    -- Ok, at this point, I erased entirely the .Spotlight-V100 directory which stays at the root of your computer. You can do it with a rmdir command from the terminal or, as I did, you can login as root (remember, we activated root), use a utility that allows you to see hidden files (e.g., Tinkertool), and move it manually to the trash folder.
    Then I emptied the trash. For superstition, I restarted, and let the index be built again (that took about 5 hours in my computer, for an HD with about 60 gb occupied on it).
    Now everything seems to work perfectly fine. I don't know whether this procedure can be shortened, but I do know that nothing else worked for me. I thought I would post it here as I spent sooo much time to solve this problem, and furthermore, I found that none of the suggested solutions would work.
    OK, your responsibility to do it, if you want to do it. Hope nobody needs to!
    Best to you all,
    l.
      Mac OS X (10.4.6)  

    Thank you, thank you, thank you, Lucabo! Using ideas from your post, I also (at least for now) solved my Mail indexing problem. One day (not even after an upgrade) Mail just quit finding messages by content, even when I had open a message with that content!
    What I did:
    -- In System Preferences, told Spotlight to index only Mail (I just use grep from a Terminal window for everything else!)
    -- Ensured Mail app wasn't running
    -- Backed up my Library/Mail folder to an external disk
    -- Turned off indexing via Terminal (after sudo sh), with
    mdutil -i off /Volumes/MyHardDisk
    -- Deleted old files in my mailboxes (inside the whatever.mbox folders):
    .index.ready
    mbox
    tableofcontents
    content_index
    It was clear that mbox, tableofcontents, and content_index were left over from a previous version of mail - they hadn't been accessed since I upgraded.
    Note that I didn't delete the whatever.mbox folders (just the plain mbox file inside)!
    -- Deleted (in Terminal) the .Spotlight-V100 in the root directory
    -- Restarted my Mac. The indexing started itself. Since I had it set up to index only Mail, it took about 3-ish hours to finish (I have 100s of 1000s of emails in thousands of folders).
    After the indexing finished, all the test searches that I tried worked. From now on I will always be suspicious if search doesn't find anything!
    Also, I just checked - using the Spotlight field on the menu bar now works better too. When the Mail search problem showed up, I tried using the Spotlight field and the Spotlight window, but they would just flash up a few items, remove the list, over and over, sometimes with the beachball, then finally settle to an empty list. Now the Spotlight field seems to work.
    I infer that the Spotlight index gets corrupted, and that the Spotlight code doesn't notice that it's reading junk from the index...
    BTW, about the same time that search quit working, some emails in my Inboxes got highlighted with a dark brown background color. Have no idea why. They aren't marked as Junk (the junk messages have the text in the usual lighter brown). But, when I select a message with the dark brown highlight, mark it as junk, then mark it as not junk, the dark brown highlight goes away. On some occasions, just quitting Mail and restarting makes the dark brown highlights go away - but not always. Sigh... at least it's not a show stopper, even if it is ugly!
    Thanks again, Lucabo, for your post!
      Mac OS X (10.4.6)  

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

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

  • CRASH! Safari 2.0.3 & Mail 2.0.7 apple-i command "Mail Contents of Page"

    In Safari [versions above] the apple-I command "Mail contents of this page" crashes my entire computer every time. Everything freezes. Complete crash, requires emergency restart with power button. Even option-apple-esc will not bring up the "force quit" options. When this happens, Activity Monitor indicates that 100% of the CPU effort suddenly is taken up by Mail.app
    Mac OS X version is: 10.4.6 with all updates installed.
    The shfit-option-I "mail link to this page" works perfectly.
    It happens on any web page visited.
    Is anyone else having this problem?
    PowerBook G4   Mac OS X (10.4.6)  
    PowerBook G4   Mac OS X (10.4.1)  
    PowerBook G4   Mac OS X (10.4.1)  

    I installed Tiger as an upgrade from Panther 10.3.9.
    I would have responded earlier, but I just ran the unix maintenance scripts (MacJanitor 1.3) and Repaired permissions, and rebooted just to make sure this wasn't the issue. I tried it again, and once again had issues. It took five to ten minutes, but it finally launched Mail and did what it should. In the meantime, I actually saw Mac OS X come to a standstill (menu bar clock seconds stopped ticking) for the first time ever. I tried again after Mail was open, and it worked instantly. Next to try some preference dumping.....

Maybe you are looking for

  • Explorer Context Menu Convert Sends Files to the Printer

    Right-clicking PSD files and choosing "convert to PDF" sent the files to the printer!!!  I had hoped it would have brought up a dialog to convert the files to PDF... (I was looking for "combine as PDF" -- I'm not sure what happened to it?) I'm runnin

  • How can I get a list/count of my iPhone App purchases?

    What I'd really like is to export my list of iOS application purchases with associated metadata (e.g., Publisher, Size, etc). Current price would be nice, but I realize that isn't embedded in the app file. Anyone found a solution for this yet? There

  • Ibook g4s / dying out?

    is it just me or does there seem to be a noticeably greater number of 'ibook, blue or black screen, hard drive dying, cold restart, etc ...' posts lately? i wonder because my 5 year old machine just gave up the ghost on the weekend. (yes, it was due

  • Logo not appearing when connecting to xp windows

    Ued to work fine before latest upgrade to phone. Now unable to transfer pics as phone is not being detected.

  • Photoshop Installation failed

    Hi, I'm trying to download Photoshop Creative Cloud but it keeps giving me the following message: Installation failed The download appears to be damaged. Select cancel, wait a few minutes and try again I've been trying for a few days but the result i