PDF files in Mail

For a while now I have been having trouble with pdf files in Mail. Sometimes I cannot even open them as they appear as a little black dot. The trouble came to a head recently when one of the pdf files I work with for some reason opened up without one of the pages it should have had. This file opens fine on the other iMac we have that is running Tiger and when that iMac saves the file then I can open it just fine as well. But when I save it the page is missing on both mine and the other. Please help... my job is at stake! And I am not exaggerating

What kind of computer and email program is sending it to you? If these are multi-page PDFs, they could show up in the body of the message, rather than as a separate attachment. If they do, you should be able to simply drag the file from the body onto your Desktop, and then you can open it with Preview or Acrobat Reader.
Are you able to do this, and what happens when you drag the PDF into an open Safari window?
Mulder

Similar Messages

  • I can not open PDF files in mail on iPhone 6plus

    hhas anyone had a problem opening PDF files in mail.  I get a grey screen

    Try a reset, no data loss.  Hold down the home/sleep button together until you see the apple logo and then release, then wait for the phone to boot back up.
    then check again.

  • HR: Need to Send the Paysilp as a PDF file through Mail to Employees

    Dear All ,
           Need to Send the Paysilp as a PDF file through Mail to Employees.
           can anyone please suggest any Standard Function Modules which takes the Payslip Form as input and convert it into PDF and can send it through mail to the concern employees.
          Can anyone please explain the procedure in detail.
    Thanks in Advance,
    Regards.

    venu,
    below is code which helps to generate pdf ,,,,hope u know how to use the mail sending function
    data:
    fm_name TYPE RS38L_FNAM, "Smart Forms: FM Name
    sf_name TYPE TDSFNAME
    value 'YOUR_FORM_NAME', "Smart Forms: Form Name
    P_OUTPUT_OPTIONS TYPE SSFCOMPOP,
    P_JOB_OUTPUT_INFO TYPE SSFCRESCL,
    P_CONTROL_PARAMETERS TYPE SSFCTRLOP,
    P_LANGUAGE TYPE SFLANGU value 'E',
    P_E_DEVTYPE TYPE RSPOPTYPE.
    data:
    P_BIN_FILESIZE TYPE I,
    P_BIN_FILE TYPE XSTRING,
    P_OTF type table of ITCOO,
    P_DOCS type table of DOCS,
    P_LINES type table of TLINE,
    name type string,
    path type string,
    fullpath type string,
    filter type string,
    guiobj type ref to cl_gui_frontend_services,
    uact type i,
    filename(128).
    GET SMARTFORM FUNCTION MODULE NAME ---
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    FORMNAME = sf_name
    IMPORTING
    FM_NAME = fm_name
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
    EXPORTING
    I_LANGUAGE = P_LANGUAGE
    I_APPLICATION = 'SAPDEFAULT'
    IMPORTING
    E_DEVTYPE = P_E_DEVTYPE.
    P_OUTPUT_OPTIONS-XSFCMODE = 'X'.
    P_OUTPUT_OPTIONS-XSF = SPACE.
    P_OUTPUT_OPTIONS-XDFCMODE = 'X'.
    P_OUTPUT_OPTIONS-XDF = SPACE.
    P_OUTPUT_OPTIONS-TDPRINTER = P_E_DEVTYPE.
    P_CONTROL_PARAMETERS-NO_DIALOG = 'X'.
    P_CONTROL_PARAMETERS-GETOTF = 'X'.
    ****...................................PRINTING.........................
    CALL FUNCTION fm_name
    EXPORTING
    CONTROL_PARAMETERS = P_CONTROL_PARAMETERS
    OUTPUT_OPTIONS = P_OUTPUT_OPTIONS
    (....) <--- your form import parameters
    IMPORTING
    JOB_OUTPUT_INFO = P_JOB_OUTPUT_INFO.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    P_OTF[] = P_JOB_OUTPUT_INFO-OTFDATA.
    ****...................................CONVERT TO PDF...............
    CALL FUNCTION 'CONVERT_OTF_2_PDF'
    IMPORTING
    BIN_FILESIZE = P_BIN_FILESIZE
    TABLES
    OTF = P_OTF
    DOCTAB_ARCHIVE = P_DOCS
    LINES = P_LINES
    EXCEPTIONS
    ERR_CONV_NOT_POSSIBLE = 1
    ERR_OTF_MC_NOENDMARKER = 2
    OTHERS = 3.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    now you can mail the pdf.
    Reward points if helpful
    Regards,
    jinesh

  • Single page PDF file in mail always appears in message body, instead of as an attachment, contrary to a multiple page PDF. Why?

    When sending a single page PDF file in mail, it always appears as an open file in the message body. Multiple page PDF files appear as attachments. Why the difference and how to change the behavior of single page PDF files so that they appear as attachments instead of open files?

    Hello billsbs,
    Welcome to the Apple Support Communities!
    I understand that when you add a PDF to mail you see its entire contents, but when you add two or more pages Mail shows them as a document icon. To change this behavior for that specific email, please follow the instructions in the attached article. 
    Mac OS X Mail: About PDF attachments
    Have a great day,
    Joe

  • Can't view PDF files in Mail

    After the 10.5 upgrade I can no longer view PDFs in Mail. Not sure if this is also due to the install of Adobe CS3, however now PDFs just show as a "mime-attachment" which do not display in any other app. Other 10.5.1 users can view these email attachments just fine.
    Is there a way to re-enable PDF files in Mail.app, so that mails with PDF files are displaying within mail.app correctly?

    Yes, I can view emails it is the PDF files I can't download or view.  In OS 4 I could touch the attachment and it would open up, now when I touch the attachment it just tries to download.  This is for all PDF files in gmail.

  • Cannot forward one page PDF files from mail app

    My earlier topic had incorrect problem report so I've created a new topic.
    The problem is i cannot forward one page PDF file from mail apps. I use imap set up for my work email.
    Multi page PDFs, photos, docs, numbers, all forward OK for both windows and Mac formats.

    Update: I hade had a reply from the Good Reader app developer saying this is a known issue even for them. However, they don't know if Apple will fix this or not.
    Basically mail app treats all one page PDF as if it's an image and will forward it the same as it would an image. Any non-apple based mail programs will have issues viewing this file..

  • Why my device not read pdf-files in mail messages?

    Qq
    why my Nokia device not read pdf-file on mail message?

    What is the operating system on that device?
    Do you have Adobe Reader installed?
    What exactly means "not read"?

  • Mountain Lion not opening pdf files in Mail

    Since installing ML I cannot open pdf files in Mail. I have updated Adobe Reader to the latest version, but no joy. I desperately need to open these files. Should I just give up and forward them to my wheezy old Sony running Windows XP?

    Also having this issue and it's a bit of a headache especially when removing Acrobat reader is not an option, i prefer to actually have my PDF files open from Mail in Acrobat Professional (not reader). Tried re-installing, no dice.

  • Attaching multipage .pdf file in Mail

    How do I attach a multipage .pdf file in Mail?  I am running OSX 10.8.2 on a MacBook Pro.  When I try to attach only the frst page attaches.

    Are you sure?
    When you add the multi-page attachment to your email only the first page shows. If you click on that first page to select it and then right click and choose Quick Look Attachemnt you should be able to see that all pages are there.
    Matt

  • Spool List more than 99 pages to PDF File to Mail

    Hi All,
    I want to convert a big spool list (342 Pages) to PDF file to send it by e-mail.
    I use the following code to convert my spool to PDF file:
    Convert to PDF file*
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
        EXPORTING
          src_spoolid              = w_spool_id
          no_dialog                = 'X'
          dst_device               = c_device
        IMPORTING
          pdf_bytecount            = gd_bytecount
        TABLES
          pdf                      = it_pdf_output
        EXCEPTIONS
          err_no_abap_spooljob     = 1
          err_no_spooljob          = 2
          err_no_permission        = 3
          err_conv_not_possible    = 4
          err_bad_destdevice       = 5
          user_cancelled           = 6
          err_spoolerror           = 7
          err_temseerror           = 8
          err_btcjob_open_failed   = 9
          err_btcjob_submit_failed = 10
          err_btcjob_close_failed  = 11
          OTHERS                   = 12.
      CHECK sy-subrc = 0.
    Transfer the 132-long strings to 255-long strings*
      LOOP AT it_pdf_output.
        TRANSLATE   it_pdf_output           USING ' ~'.
        CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
      ENDLOOP.
      TRANSLATE gd_buffer USING '~ '.
      DO.
        it_mess_att = gd_buffer.
        APPEND it_mess_att.
        SHIFT  gd_buffer LEFT BY 255 PLACES.
        IF gd_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    The problem with the FM 'CONVERT_ABAPSPOOLJOB_2_PDF' is when my spool have more than 99 pages. In this case, the FM generate a backscreen job (sm37) to convert my spool and generate a binary PDF spool.
    After this step, the 'FM SO_DOCUMENT_SEND_API1' send an e-mail with the binary PDF File recovered in the spool list but i can't open the file with Adobe Reader because the format is wrong.
    Someone knows how could i convert my big spool list to PDF file to send it by e-mail adress ?
    Thanks a lot for your precious help that i need so much !

    Generate big spool list
    REPORT  ZGEN_SPOOL.
    tYPE-POOLS: slis.
    TYPES: BEGIN OF str_mara,
    matnr TYPE mara-matnr,
    ersda TYPE mara-ersda,
    ernam TYPE mara-ernam,
    laeda TYPE mara-laeda,
    aenam TYPE mara-aenam,
    vpsta TYPE mara-vpsta,
    END OF str_mara.
    DATA: i_mat TYPE TABLE OF str_mara,
    wa_mat LIKE LINE OF i_mat.
    DATA:params LIKE pri_params.
    DATA: days(1) TYPE n VALUE 2,
    valid TYPE c.
    DATA: obj TYPE REF TO cl_salv_table.
    SELECT matnr
    ersda
    ernam
    laeda
    aenam
    vpsta
    UP TO 4999 ROWS
    FROM mara INTO CORRESPONDING FIELDS OF TABLE i_mat.
    TRY.
    CALL METHOD cl_salv_table=>factory
    IMPORTING
    r_salv_table = obj
    CHANGING
    t_table = i_mat.
    CATCH cx_salv_msg .
    ENDTRY.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
    EXPORTING
    * destination = 'QAS'
    list_name = 'ZTEST_VERTEX'
    list_text = 'TEST'
    no_dialog = 'X'
    immediately = ' '
    expiration = days
    IMPORTING
    * OUT_ARCHIVE_PARAMETERS =
    out_parameters = params
    valid = valid
    * VALID_FOR_SPOOL_CREATION =
    EXCEPTIONS
    archive_info_not_found = 1
    invalid_print_params = 2
    invalid_archive_params = 3
    OTHERS = 4
    IF sy-subrc ne 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    TRY .
    NEW-PAGE PRINT ON PARAMETERS params NO DIALOG.
    CATCH cx_sy_nested_print_on .
    ENDTRY.
    CALL METHOD obj->display.
    NEW-PAGE PRINT OFF.

  • Error in opening pdf file from mail attachment sent thru MII

    Hi,
    I am using MII 12.1.4 build(36).
    I have created a pdf file from BLS using PDF actions block and saving the file in web location as mentioned below:
    WEB://<ProjectFolder>/<subfolder>/Report.pdf
    I'm using the same file as attachment in my m a i l action block with attachment content type "application/pdf" and AttachmentContent "ImageSaver.EncodedImage" or "PDFDoc.Output".
    When i check the mail,i can see the attachment with some size of 8kb,but when I open the file i will get below error:
    "Adobe Reader could not open Report.pdf because it is either not supported file type or because the file has been damaged(for example,it was sent as an m a i l attachment and wasn't correctly decoded)"
    If I try to open the same file by exporting fit to my desktop,it opened properly.
    Anything I'm missing here?
    Thanks in Advane,
    Suresh

    Hi,
    According to below mentioned thread,this problem is fixed in 12.1.5 and above.
    Re: Attachment Content When sending PDF attachment in Send Mail Step
    Then I deployed the new patch ie SP07.
    Here there is one problem,ie in Menu page I can see the 12.1.7(Build40),when I open the workbech,it shows the previous patch 12.1.4(Build 36).Why is it so?
    All of my transactions running fine except the one which I have mentioned in my previous post.
    When I run the transaction mentioned in my previous post,it threw an excption for PDF Table Action block and the error mentioned below:
    [ERROR] Error found trying to execute action 'PDF_Table_0' Exception: [null]
    [ERROR] [PDF_Table_0] Action: Runtime threw an exception. Exception: [java.lang.StackOverflowError]
    When I can check the m a i l, I'm able to open the attached PDF file without error but without data.Is it because of the above mentioned error?
    Plz help me.
    -Suresh

  • PDF files in mail and evernote

    I guess I don't understand pdf files. I created a PDF 1 page file from word by going to print and then saving it as a PDF file...
    When I attach it to an email it appears open at my end and the recipient. When I send it via evernote. The same thing happens
    I want it to appear as an attachment:
    When I send it from my laptop
    Also when I send it from my ipad.  I guess I could save it in drop box if necessary
    Thanks for any explanation
    I will download tinker tool but would love some other options

    I found this solution in a previous thread:
    1. Open Terminal (Applications > Utilities > Terminal)
    2. copy and paste this line after the $:
    defaults write com.apple.mail DisableInlineAttachmentViewing -bool yes
    3. hit return
    4. you may need to restart Mail for the change to take effect, it worked for me without restarting Mail.
    5. to change it back you would do
    defaults write com.apple.mail DisableInlineAttachmentViewing -bool false

  • Can't see PDF files in Mail - Missing plug in

    Hello!
    Sometimes I can't see the PDF in Mail. In the message appears only blank page and a "Missing Plug in" .
    When I try to download a PDF file the Firefox sent to me a plug in in  Quick time page but I downloaded all and doesn't fix the problem.
    Please, advise me.
    Thanks

    Hi Ryan,
    This is not an Acrobat related issue, it is related to your local user profile, I will recommend you to contact your network administrator so that he can help you to create a shared user profile on the network.
    Regards,
    Aadesh

  • Error to Send PDF file using mail

    Hi all,
    I create a report that send an mail with 2 different pdf attach.
    I have a problem because one pdf attach is 663 KB and when I read it in mail it can not open the file and give me this error  :
    "Error opening PDF file --> There was an error opening this document.the file is damaged and could not be repareid "
    I send the same mail with another PDF file (64,2 KB) and all it's work correct.
    This files are in my application server, and this is the code that I use to read and send :
    data:   gt_table TYPE TABLE OF solix,
               gs_table LIKE LINE OF gt_table.
    open dataset wa for input in binary mode.
    if sy-subrc eq 0.
      do.
        read dataset wa into gs_table LENGTH alen.
        ctr = ctr + alen.
        if sy-subrc ne 0.
          exit.
        endif.
        append gs_table to gt_table.
      enddo.
    endif.
    close dataset wa.
    TRY.
    (1) crea Oggetto
          l_send_request = cl_bcs=>create_persistent( ).
    (2) E-Mail - Crea Oggetto e Body del messaggio
    (5)  bcs attachment
    l_attachment_size = ctr."tab_lines * 255.
          CALL METHOD l_doc->add_attachment
            EXPORTING
              i_attachment_type    = 'PDF'
              i_attachment_subject = l_attachment_subj
              i_attachment_size    = l_attachment_size
              i_att_content_hex    = gt_table."xsolix[].
    CALL METHOD l_send_request->set_document( l_doc ).
          CALL METHOD l_send_request->set_priority
            EXPORTING
              i_priority = '1'.
          CALL METHOD l_send_request->set_send_immediately( 'X' ).
    I find this link but the problem are not resolve : Compress Smartform PDF file before sending mail
    Can anyone help me to understand where is the problem ?
    thanks a lot
    Barbara

    Hi,
    I find the way to resolve this topic, thanking a collegue.
    The problem is the way that I use to read the file.
    If I read the file in the following way, the problem concerning the size are bypassing.
    DATA : gs_table LIKE LINE OF gt_table.
      DATA: l_xstring TYPE xstring.
      DATA : alen TYPE i.
      OPEN DATASET  p_p_file FOR INPUT IN BINARY MODE.
      IF sy-subrc EQ 0.
       DO.
        READ DATASET p_p_file INTO l_xstring.
         p_bin_filesize = p_bin_filesize + alen.
         IF sy-subrc NE 0.
           EXIT.
         ENDIF.
         APPEND gs_table TO gt_table.
       ENDDO.
      ENDIF.
      CLOSE DATASET p_p_file.
      CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
          EXPORTING
            buffer                = l_xstring
        APPEND_TO_TABLE       = ' '
         IMPORTING
           output_length         = p_bin_filesize
          TABLES
            binary_tab            =  gt_table .
    thanks a lot
    barbara

  • How To send a PDF file to mail

    Hi Friends,
    I am  having a file (D:\file.pdf) in ' D ' directory . Now I want to send this pdf  to perticular mail id ([email protected]). I tried so many examples but i am not able to solve this problem so please help to solve this one.
    I tried SO_NEW_DOCUMENT_SEND_API1 function modules and all but i am not getting please send small sample code .
    Thanks and Regards,
    Phani.

    go through this report=>
    : Report ZSAPTALK :
    : Author SAPdev.co.uk :
    : Description : :
    : Send mail message to SAP mail inbox. :
    : Please visit www.sapdev.co.uk for further info :
    REPORT ZSAPMAIL NO STANDARD PAGE HEADING.
    TABLES: DRAD,
    QINF,
    DRAW,
    SOUC,
    SOFD,
    DRAP.
    DATA: P_RETURN_CODE LIKE SY-SUBRC.
    data: d_username LIKE DRAP-PRNAM.
    mail declarations
    DATA : BEGIN OF NEW_OBJECT_ID. " the newly created email object
    INCLUDE STRUCTURE SOODK.
    DATA : END OF NEW_OBJECT_ID.
    DATA : BEGIN OF FOLDER_ID. " the folder id of the outbox
    INCLUDE STRUCTURE SOODK.
    DATA : END OF FOLDER_ID.
    DATA : BEGIN OF REC_TAB OCCURS 5. " the table which will contain the
    INCLUDE STRUCTURE SOOS1. " information on the destination
    DATA : END OF REC_TAB.
    DATA : BEGIN OF OBJECT_HD_CHANGE. " the table which contains the
    INCLUDE STRUCTURE SOOD1. " info for the object we will be
    DATA : END OF OBJECT_HD_CHANGE. " creating
    DATA : OBJECT_TYPE LIKE SOOD-OBJTP. " the type of object
    DATA : BEGIN OF OBJHEAD OCCURS 5. " the header of the object
    INCLUDE STRUCTURE SOLI.
    DATA : END OF OBJHEAD.
    DATA : BEGIN OF OBJCONT OCCURS 0. " the contents of the object
    INCLUDE STRUCTURE SOLI. " i.e. the text etc
    DATA : END OF OBJCONT.
    DATA : BEGIN OF OBJPARA OCCURS 5. " formatting options
    INCLUDE STRUCTURE SELC.
    DATA : END OF OBJPARA.
    DATA : BEGIN OF OBJPARB OCCURS 5. " formatting options
    INCLUDE STRUCTURE SOOP1.
    DATA : END OF OBJPARB.
    DATA : BEGIN OF T_MAIL_TEXT OCCURS 0, "Message table for messages to
    STRING(255), "user via mailbox
    END OF T_MAIL_TEXT.
    Parameter: p_uname like sy-uname.
    **START-OF-SELECTION
    START-OF-SELECTION.
    d_username = p_uname.
    PERFORM POPULATE_EMAIL_TEXT.
    PERFORM SETUP_TRX_AND_RTX_MAILBOXES USING P_RETURN_CODE.
    PERFORM CREATE_AND_SEND_MAIL_OBJECT.
    FORM POPULATE_EMAIL_TEXT *
    Inserts text for email message *
    FORM POPULATE_EMAIL_TEXT.
    CLEAR T_MAIL_TEXT-STRING. "puts a blank line in
    APPEND T_MAIL_TEXT.
    APPEND T_MAIL_TEXT.
    adds failed list on to end of success list.
    T_MAIL_TEXT-STRING = 'Test email message line 1'.
    APPEND T_MAIL_TEXT.
    T_MAIL_TEXT-STRING = 'Test email message line 1'.
    APPEND T_MAIL_TEXT.
    CLEAR T_MAIL_TEXT-STRING. "puts a blank line in
    APPEND T_MAIL_TEXT.
    T_MAIL_TEXT-STRING = 'Header1 Header2 Header3'.
    APPEND T_MAIL_TEXT.
    T_MAIL_TEXT-STRING = '----
    APPEND T_MAIL_TEXT.
    ENDFORM.
    *& Form SETUP_TRX_&_RTX_MAILBOXES
    Ensure that the mailboxes of the sender (INTMGR) are set up OK
    FORM SETUP_TRX_AND_RTX_MAILBOXES USING P_RETURN_CODE.
    get the user no of the sender in order to add the mail to the
    user name's outbox for future reference
    SELECT SINGLE * FROM SOUC
    WHERE SAPNAM = SY-UNAME. "SAP name of a SAPoffice user
    IF SY-SUBRC NE 0.
    "Error finding the SAPoffice user info for the user
    MESSAGE E064(ZR53) WITH SY-UNAME.
    P_RETURN_CODE = 1.
    EXIT.
    ENDIF.
    *Get the outbox No for the sender from the user No where the folder
    " type is an outbox
    SELECT * FROM SOFD WHERE OWNTP = SOUC-USRTP "Owner type from ID
    AND OWNYR = SOUC-USRYR "Owner year from the ID
    AND OWNNO = SOUC-USRNO "Owner number from the I
    AND FOLRG = 'O'."Output box
    ENDSELECT.
    IF SY-SUBRC NE 0.
    " Error getting folder information for the user
    MESSAGE E065(ZR53) WITH SY-UNAME.
    P_RETURN_CODE = 1.
    EXIT.
    ENDIF.
    ENDFORM. " SETUP_TRX_&_RTX_MAILBOXES
    *& Form CREATE_AND_SEND_MAIL_OBJECT
    FORM CREATE_AND_SEND_MAIL_OBJECT.
    FOLDER_ID-OBJTP = SOFD-FOLTP. " the folder type ( usually FOL )
    FOLDER_ID-OBJYR = SOFD-FOLYR. " the folder year ( usually 22 )
    FOLDER_ID-OBJNO = SOFD-FOLNO. " the folder no.
    OBJECT_TYPE = 'RAW'. " the type of object being added
    build up the object information for creating the object
    OBJECT_HD_CHANGE-OBJLA = SY-LANGU. " the language of the email
    OBJECT_HD_CHANGE-OBJNAM = 'PS to DM Interface'. " the object name
    mail subject 'Mass Linking of QA, pass/fail'
    MOVE TEXT-002 TO OBJECT_HD_CHANGE-OBJDES.
    OBJECT_HD_CHANGE-DLDAT = SY-DATUM. " the date of the email
    OBJECT_HD_CHANGE-DLTIM = SY-UZEIT. " the time of the email
    OBJECT_HD_CHANGE-OBJPRI = '1'. " the priority ( highest )
    OBJECT_HD_CHANGE-OBJSNS = 'F'. " the object sensitivity
    F is functional, C - company sensitive
    object_hd_change-skips = ' '. " Skip first screen
    object_hd_change-acnam = 'SM35'. " Batch imput transaction
    object_hd_change-vmtyp = 'T'. " Transaction type
    add the text lines into the contents of the email
    CLEAR OBJCONT.
    REFRESH OBJCONT.
    free objcont. " added this to delete the mail contents records
    LOOP AT T_MAIL_TEXT.
    OBJCONT-LINE = T_MAIL_TEXT-STRING.
    APPEND OBJCONT.
    ENDLOOP.
    CLEAR OBJCONT.
    build up the table of receivers for the email
    REC_TAB-RCDAT = SY-DATUM. " the date to send the email
    REC_TAB-RCTIM = SY-UZEIT. " the time to send the email
    the SAP username of the person who will receive the email
    REC_TAB-RECNAM = D_USERNAME.
    the user type of the person who will send the email ( USR )
    REC_TAB-SNDTP = SOUC-USRTP.
    the user year of the person who will send the email ( 22 )
    REC_TAB-SNDYR = SOUC-USRYR.
    the user number of the person who will send the email
    REC_TAB-SNDNO = SOUC-USRNO.
    the sap username of the person who will send the email
    REC_TAB-SNDNAM = SY-UNAME.
    get the user info for the receiver of the document
    SELECT SINGLE * FROM SOUC WHERE SAPNAM = D_USERNAME.
    IF SY-SUBRC NE 0.
    WRITE : / TEXT-001, D_USERNAME. "usnam.
    EXIT.
    ENDIF.
    the user number of the person who will receive the email ( USR )
    REC_TAB-RECNO = SOUC-USRNO.
    the user type of the person who will receive the email ( USR )
    REC_TAB-RECTP = SOUC-USRTP.
    the user year of the person who will receive the email ( USR )
    REC_TAB-RECYR = SOUC-USRYR.
    the priority of the email ( highest )
    REC_TAB-SNDPRI = '1'.
    check for delivery on the email
    REC_TAB-DELIVER = 'X'.
    send express so recipient knows there is a problem
    REC_TAB-SNDEX = 'X'.
    check for a return receipt
    REC_TAB-READ = 'X'.
    the sap username of the person receiving the email
    REC_TAB-ADR_NAME = D_USERNAME. "usnam.
    add this receiver to the internal table
    APPEND REC_TAB.
    CLEAR REC_TAB.
    call the function to create the object in the outbox of the sender
    CALL FUNCTION 'SO_OBJECT_INSERT'
    EXPORTING
    FOLDER_ID = FOLDER_ID
    OBJECT_HD_CHANGE = OBJECT_HD_CHANGE
    OBJECT_TYPE = OBJECT_TYPE
    OWNER = SY-UNAME
    IMPORTING
    OBJECT_ID = NEW_OBJECT_ID
    TABLES
    OBJCONT = OBJCONT
    OBJHEAD = OBJHEAD
    OBJPARA = OBJPARA
    OBJPARB = OBJPARB
    EXCEPTIONS
    ACTIVE_USER_NOT_EXIST = 1
    COMMUNICATION_FAILURE = 2
    COMPONENT_NOT_AVAILABLE = 3
    DL_NAME_EXIST = 4
    FOLDER_NOT_EXIST = 5
    FOLDER_NO_AUTHORIZATION = 6
    OBJECT_TYPE_NOT_EXIST = 7
    OPERATION_NO_AUTHORIZATION = 8
    OWNER_NOT_EXIST = 9
    PARAMETER_ERROR = 10
    SUBSTITUTE_NOT_ACTIVE = 11
    SUBSTITUTE_NOT_DEFINED = 12
    SYSTEM_FAILURE = 13
    X_ERROR = 14
    OTHERS = 15.
    IF SY-SUBRC NE 0.
    MESSAGE A063(ZR53) WITH SY-SUBRC.
    EXIT.
    ENDIF.
    call the function to send the already created email to the receivers
    CALL FUNCTION 'SO_OBJECT_SEND'
    EXPORTING
    FOLDER_ID = FOLDER_ID
    OBJECT_ID = NEW_OBJECT_ID
    OUTBOX_FLAG = 'X'
    OWNER = SY-UNAME
    TABLES
    RECEIVERS = REC_TAB
    EXCEPTIONS
    ACTIVE_USER_NOT_EXIST = 1
    COMMUNICATION_FAILURE = 2
    COMPONENT_NOT_AVAILABLE = 3
    FOLDER_NOT_EXIST = 4
    FOLDER_NO_AUTHORIZATION = 5
    FORWARDER_NOT_EXIST = 6
    NOTE_NOT_EXIST = 7
    OBJECT_NOT_EXIST = 8
    OBJECT_NOT_SENT = 9
    OBJECT_NO_AUTHORIZATION = 10
    OBJECT_TYPE_NOT_EXIST = 11
    OPERATION_NO_AUTHORIZATION = 12
    OWNER_NOT_EXIST = 13
    PARAMETER_ERROR = 14
    SUBSTITUTE_NOT_ACTIVE = 15
    SUBSTITUTE_NOT_DEFINED = 16
    SYSTEM_FAILURE = 17
    TOO_MUCH_RECEIVERS = 18
    USER_NOT_EXIST = 19
    X_ERROR = 20
    OTHERS = 21.
    IF SY-SUBRC EQ 0.
    MESSAGE I035(ZR53) WITH NEW_OBJECT_ID D_USERNAME. "usnam.
    ELSE.
    MESSAGE I036(ZR53) WITH D_USERNAME." sy-subrc.
    ENDIF.
    ENDFORM. " CREATE_AND_SEND_MAIL_OBJECT
    Also, check links....
    http://help.sap.com/saphelp_nw04s/helpdata/en/38/71f865c2c9a94ab1dce95792187c16/content.htm
    /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
    http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm
    http://www.geocities.com/mpioud/Z_EMAIL_ABAP_REPORT.html
    http://www.geocities.com/mpioud/Z_EMAIL_ABAP_REPORT.html
    http://www.thespot4sap.com/Articles/SAP_Mail_SO_Object_Send.asp
    http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm

Maybe you are looking for

  • Exception while updating a table

    Hi while updating a table throw entity bean i am getting Base EJBException java.sql.SQLException: ORA-01401: inserted value too large for column how to resolve this problem com.sap.engine.services.ejb.exceptions.BaseEJBException: SQLException while t

  • Need to know data type which could take the result of - data TYPE RAW.

    Hello, I have the following Req: I need to make a RFC call from one SAP system to SAP Banking Services system to retrieve Contract ID. But the field contract id happens to be of TYPE RAW. (16 characters) So my problem is - I need to know the data typ

  • Name of processed file in a module processor in XI 3.0

    Hello, I've got the scenario : Flat file -> XI -> IDOC. I have configured the parameter "source file name" with "*.xml" in the file adapter. Now i try to capture in a moule processor the name of the file which is processed (for exemple : 123456.xml)

  • How do I fix Preview?

    Preview is not opening any pictures like it was. My MacBook Pro is brand new, only 4 days old. Preview was opening pictures fine, but not anymore. Now it wont even let me Quit the program or Hide the program. If there's no way to fix it, can i delete

  • Number Range Interval Deactivated

    Dear Experts, Could anybody suggest on this problem as follows: While configuring Number range interval to GL Account,  the interval buttons(create) is deactivated and error message showing as No. Range is locked by sapuser for maintenace Srinivas