PDF-Email- spool

i have a spool generated whicn needs to be converted into PDF file format and Excel file format. Both the files PDF and Excel having the data from spool should be sent as attachment in an email. Is ther any function modules which can handle this scenario ?

Hi,
Check this blog where he has explained clrealy about sending email..
/people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
seshu.

Similar Messages

  • ALV GRID SPOOL PDF EMAIL

    Hello,
    I'm getting frustrated with a ALV issue.
    My report creates a ALV grid which I'm able to print to spool, afterwards create a PDF and finally send to a specific email adress with the PDF attached.
    What I'm wondering is, why when calling 'REUSE_ALV_GRID_DISPLAY' I'm getting this print parameter dialog.
    Moreover calling function 'SET_PRINT_PARAMETERS' has no effect to the parameters showing in the dialog?!
    As I finally want to run this report within a scheduled job I do not want that popup.
    I now read the forum entires for half a day, tried almost everything, but without success.
    Maybe someone can help with my code?
    * Declaration section
    DATA: itab_feldkatalog   TYPE   slis_t_fieldcat_alv,
          wa_feldkatalog     TYPE   line of slis_t_fieldcat_alv,
          gs_layout          TYPE   slis_layout_alv,
          gs_print           TYPE   SLIS_PRINT_ALV.
    *   output as PDF eMail
        g_repid = sy-repid.
        CALL FUNCTION 'SET_PRINT_PARAMETERS'
          EXPORTING
    *        destination   = 'LOCL'      " Printer
            layout        = 'X_65_200'  " Format
            line_count    = '65'        " Line Count
            line_size     = '200'       " Line Size
            in_parameters = gs_print-print_ctrl-pri_params.
    *   Print parameters
        gs_print-print              = 'X'.
        gs_print-prnt_title         = 'X'.
        gs_print-no_coverpage       = 'X'.
        gs_print-no_print_listinfos = 'X'. 
        gs_print-no_print_selinfos = 'X'.
        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
          EXPORTING
            i_callback_program     = g_repid
            i_callback_top_of_page = 'TOP_OF_PAGE_SETUP'     
            I_GRID_TITLE           = 'Risk MM Report'
            I_SAVE                 = 'A'
            IT_FIELDCAT            = itab_feldkatalog
            is_layout              = gs_layout
            IS_VARIANT             = is_variant
            IS_PRINT               = gs_print
          TABLES
            T_OUTTAB               = t_inv_cond.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        perform pdf_email.  " create PDF and send by email
    Thanks a lot!

    Thanks for your help.
    This modifications solved my problem!
        CALL FUNCTION 'GET_PRINT_PARAMETERS'
          EXPORTING
            immediately            = ' '
            line_size              = 220
            release                = 'X'
            mode                   = 'CURRENT'
            no_dialog              = 'X'
          IMPORTING
            out_parameters         = gs_print-print_ctrl-pri_params
            valid                  = gv_valid
          EXCEPTIONS
            archive_info_not_found = 1
            invalid_print_params   = 2
            invalid_archive_params = 3
            OTHERS                 = 4.
        NEW-PAGE PRINT ON PARAMETERS gs_print-print_ctrl-pri_params NO DIALOG.
    *   Print parameters
        gs_print-print              = 'X'.
        gs_print-prnt_title         = 'X'.
        gs_print-no_coverpage       = 'X'.
        gs_print-no_print_listinfos = 'X'.  " display no listinfos
        gs_print-no_print_selinfos  = 'X'.
        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
          EXPORTING
            i_callback_program     = g_repid
            i_callback_top_of_page = 'TOP_OF_PAGE_SETUP'       " Ref. to form
            I_GRID_TITLE           = 'Risk MM Report'
            I_SAVE                 = 'A'
            IT_FIELDCAT            = itab_feldkatalog
            is_layout              = gs_layout
            IS_VARIANT             = is_variant
            IS_PRINT               = gs_print
          TABLES
            T_OUTTAB               = t_inv_cond.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        NEW-PAGE PRINT OFF.

  • PDF is changing all my pdf documents into a word document - My boss sent me a pdf email through outlook and when I try to open it changes to a word document

    PDF is changing all my pdf documents into a word document - My boss sent me a pdf email through outlook and when I try to open it changes to a word document Help this is so frustrating

    Hi tinam74565130,
    That does sound frustrating! It sounds as though the filename associations have become confused on your computer. You should be able to reset that easily. Here are some instructions:
    Change which programs Windows uses by default - Windows Help
    How to change the default application for a file type | Macworld
    Please let us know how it goes.
    Best,
    Sara

  • How to print a pdf email attachment in android system

    How to print a PDF email attachment

    You need
    - an application server JAVA with Adobe Document Service installed
    - you need to configure the connection between that Java instance and your ERP system
    https://www.sdn.sap.com/irj/sdn/adobe
    Markus

  • Error in SAPscript pdf email attachment

    Hi All,
             I have implemented the functionality in ABAP where I can send SAPscript output to user via pdf-email in its inbox.The functionality is working fine in Dev n Test system with no issues.As the form is moved into Prod system, the user is complaining that after opening the mail of pdf, a mail is sent to unknown, unexisting email id indicating that user opened the mail.As the email id is unexisting, the user receives back the mail of Delivery failure.
    Please help in this.Rest is working fine.

    Hi Neeraj_C ,
      I have also a same requirement . i don't know much about Script.Can you please send me the procedure how do u achieve this scenario . If u give the sample code of this scenario it will be very helpful for me.
    Thanks & Regards,
    Kumaran Duraiswamy.

  • .pdf email attachments open in photoshop.  How do I get them to open in Reader?

    Hey,
    .pdf email attachments open in photoshop.  How do I get them to open in Reader?
    thx

    You need to change your file association to open .pdf files with Adobe Reader.
    See http://windows.microsoft.com/en-us/windows/change-file-open-program#1TC=windows-7

  • Problem pdf email attachment

    Hi Friends,
    I need expertise help in pdf email attachment. I have data in internal table which has to be sent as pdf mail attachment. I need help in converting the data to pdf format. After conversion I can use SO_NEW_DOCUMENT_ATT_SEND_API1 to send the mail.
    Expect earliest reply.
    Thanks,
    Nidhya

    Dear Friends,
    Thanks for your reply, but I need help in converting the data in internal table to pdf.
    Pls find my code below: With this code, I get email send with PDF attach, but the data inside the file is not in correct format.
    Pls help me to correct.
    DATA : mailrec    LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
           mailbin    LIKE solisti1 OCCURS 0 WITH HEADER LINE,
           mailbin1   LIKE solisti1 OCCURS 0 WITH HEADER LINE,
           mailtxt    LIKE solisti1 OCCURS 0 WITH HEADER LINE,
           mailhead   LIKE solisti1 OCCURS 0 WITH HEADER LINE,
           i_otf      LIKE solisti1 OCCURS 0 WITH HEADER LINE,
           i_pdf      LIKE solisti1 OCCURS 0 WITH HEADER LINE,
           mailstruc  LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
           maildata   LIKE sodocchgi1 OCCURS 0 WITH HEADER LINE.
    DATA : BEGIN OF i_sotf OCCURS 0.
           INCLUDE STRUCTURE itcoo.
    DATA : END OF i_sotf.
    DATA : i_itcpo LIKE itcpo,
           i_itcpp LIKE itcpp.
    DATA : v_tlines   TYPE i,
           v_len_in   LIKE  sood-objlen,
           v_len_out  LIKE sood-objlen.
    maildata-obj_name = 'Document'.
    maildata-obj_descr = 'Transfer Details'.
    maildata-obj_prio = 1.
    maildata-doc_size = strlen( mailtxt ).
    mailstruc-head_start = 1.
    mailstruc-head_num = 0.
    mailstruc-body_start = 1.
    mailstruc-body_num = 1.
    mailstruc-obj_name = 'transfer'.
    mailstruc-doc_type = 'RAW'.
    APPEND mailstruc.
    mailrec-receiver = '[email protected]'.
    mailrec-rec_type = 'U'.
    APPEND mailrec.
    CLEAR i_itcpo.
    i_itcpo-tdgetotf = 'X'.
    REFRESH mailbin.CLEAR mailbin.
    WRITE 'Report Title:' TO mailbin-line+3.
    WRITE sy-repid         TO mailbin-line+18.
    APPEND mailbin. CLEAR mailbin.
    WRITE  'User : ' TO mailbin-line.
    WRITE  sy-uname TO mailbin-line+11.
    APPEND mailbin. CLEAR mailbin.
    WRITE  'Date of Report : ' TO mailbin-line+3.
    WRITE sy-datum USING EDIT MASK mask MM/DD/YYYY TO mailbin-line+21.
    APPEND mailbin. CLEAR mailbin.
    WRITE  'Time of Report : ' TO mailbin-line+3.
    WRITE  sy-uzeit TO mailbin-line+21.
    APPEND mailbin. CLEAR mailbin.
    APPEND mailbin.
    WRITE  'Transfer ' to mailbin-line+3.
    APPEND mailbin. CLEAR mailbin.
    APPEND mailbin.
    WRITE  sy-uline TO mailbin-line+3.
    APPEND mailbin. CLEAR mailbin.
    LOOP AT i_disp.
    SHIFT i_disp-index LEFT DELETING LEADING '0'.
    WRITE i_disp-index TO mailbin+3.
    WRITE i_disp-pernr TO mailbin+6.
    WRITE i_disp-ename TO mailbin+16.
    WRITE i_disp-persk TO mailbin+57.
    WRITE i_disp-btrtl TO mailbin+60.
    APPEND mailbin. CLEAR mailbin.
    ENDLOOP.
    CALL FUNCTION 'SX_OBJECT_CONVERT_SCR_OTF'
      EXPORTING
        FORMAT_SRC            = 'RAW'
        FORMAT_DST            = 'OTF'
        DEVTYPE               = 'POSTSCPT'
        FUNCPARA              = ''
        LEN_IN                = v_len_in
    IMPORTING
       LEN_OUT               = v_len_out
      TABLES
        CONTENT_IN            = mailbin
        CONTENT_OUT           = mailbin1
    EXCEPTIONS
       ERR_CONV_FAILED       = 1
       OTHERS                = 2 .
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    REFRESH mailbin.
    CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
      EXPORTING
        FORMAT_SRC            = 'OTF'
        FORMAT_DST            = 'PDF'
        DEVTYPE               = 'POSTSCPT'
      FUNCPARA              =
        LEN_IN                = v_len_in
    IMPORTING
       LEN_OUT               = v_len_out
      TABLES
        CONTENT_IN            = mailbin1
        CONTENT_OUT           = mailbin
    EXCEPTIONS
       ERR_CONV_FAILED       = 1
       OTHERS                = 2 .
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    REFRESH mailbin1.
    DESCRIBE TABLE mailbin LINES v_tlines.
    mailstruc-head_start = 1.
    mailstruc-head_num = 0.
    mailstruc-body_start = 1.
    mailstruc-body_num = v_tlines.
    mailstruc-transf_bin = 'X'.
    mailstruc-doc_type = 'PDF'.
    mailstruc-obj_name = 'Mid-month transfer'.
    mailstruc-doc_size = v_tlines * 255.
    APPEND mailstruc.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
      EXPORTING
        DOCUMENT_DATA                    = maildata
       PUT_IN_OUTBOX                    = 'X'
      TABLES
        PACKING_LIST                     = mailstruc
       OBJECT_HEADER                    = mailhead
       CONTENTS_BIN                     = mailbin
        RECEIVERS                        = mailrec
    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 .
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    But i dont get the result in expected format. I am not getting first 2 characers of the line. instead of report, date, time in separate line I get everything in a single line as follows :
    Report Title: ZHRPY0003
    er : VACNIDHYA Date of Report : 02.05.2007 Time of Report
    : 10:31:27 Mid-month Inter-Company Transfer
    --- 1 00002609 Carla Pineda FT
    2010
    - 1 -

  • Interactive PDF / Email marketing

    I have a 20 page newsletter that I'm sending out through an eblast. I have several paragraphs in the eblast summarizing exciting points in the newsletter. What I'm trying to do is where it says "read more on page 14" in the eblast, have a link that takes the viewer directly to page 20 instead of just opening the generic PDF. I'm also trying to make it so in the PDF version where it says "story continued on page 4" the reader can click that and it will take them to page 4 instead of having to scroll through the newsletter manually. Our newsletters are hosted on our website so we usually link to the website like: www.website.org/newsletters/fall2009 and the newsletter opens from there.
    Does anyone know how to make this happen? I've never done it before and haven't worked with this type of PDF/email marketing so I'm at a loss. If you have any suggestions please send links to detailed instructions and be detailed so I can figure it out!

    You will have to set up bookmarks and links to those bookmarks. Several folks should be around tomorrow who are good at this type of action, so please be patient.

  • Opening PDF Email Attachments

    My PDF email attachments open in Microsoft Word and can't be read. How can I open PDF attachments in Adobe without first having to do a 'Save As'? I have Adobe on my laptop.

    nyrozzie wrote:
    My PDF email attachments open in Microsoft Word and can't be read. How can I open PDF attachments in Adobe without first having to do a 'Save As'? I have Adobe on my laptop.
    The problem is a file association. 
    If you are using Verizon's webmail then you need to fix the file association in your web browser.
    If you are using an email client (Outlook, Outlook Express, Thunderbird, etc.) you need to fix the file association in your computer (varies as to how based on OS and client).
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.

  • PDF email archives: How to selectively re-export to new archive/.pst?

    A while back, I made PDF email archives of a variety of Outlook folders, and eventually deleted the Outlook messages in question.
    Now, unfortunately, I am wishing I had not.  So, a few "save the day" type of questions:
    1) Can I convert an entire PDF email archive, or portions of an archive, back into Outlook format?  How?  (If you know the answer to this, ignore the rest!)
    2) Can I selectively search a PDF email archive, and then group-export the messages displayed in the search results into a separate PDF email archive? How?  I can manage to use the filters to select a group of messages, but I can't manage to re-export them to a new archive or a PDF portfolio.
    thanks,
    Erik

    It cannot be done in InDesign, but, as you surmised in Acrobat.
    You'll need to ask in the Acrobat forums. I don't know of any changes like that in Acrobat DC but because I don't program in JavaScript, I might have overlooked it. Try one of these forums:
                                 Creating, Editing & Exporting PDFs                        
                                 Rich Media & 3D                        

  • PDF Email Creation for Clients

    Hi, I would like to create a PDF email form that I can then hand over to a client that only has the free acrobat reader. If I create a form with his email address, will he be able to view, save and print the completed/submitted forms?
    I seem to be going back and forth on whether or not to scrap this idea and build him an HTML form on my website and then just add a PDF download link for the people that want to print and snail-mail.

    I guess I just answered my own question. My solution will be to Enable Usage Rights and delete the "submit by email" button. Then my client will instruct them to save the file and return it in a reply email.

  • Pdf email attachments won't open

    After upgrading to IOS 7 the pdf email attachments are not opening...just says "loading" and never loads.

    Hi DVFFTI,
    I'm not sure from your description if you're having the same problem I was having.
    In my case, PDF attachments would only display as a single image of the first page of the PDF.
    The only option I had was to Copy or Save the image. I couldn't open a preview of the full PDF in Mail or tap to 'Open in...' a different app.
    Turns out that I had too many apps on my iPhone that can read PDFs, for example, Dropbox, Evernote, iBooks, Kindle, etc. even a Canon app for remote printing.
    Removing one of them fixed the issue for me.
    I remember this happening before and seeing other threads about this, so I don't think it's specific to iOS 7.
    Give it a go and see if it fixes your problem. Hope it helps.

  • Why cant i read PDF email toake copies why is my pdf turned off or stop working

    why cant I read PDF email to make copies  why is my PDF turned off or stoppd working [email address removed]

    You really need to provide some information if you expect anybody to help you.

  • Determine size of pdf from spool

    All,
    does anyone know how to determine size of pdf from spool.
    i'm using RSPO_RETURN_ABAP_SPOOLJOB to get pdf file, but i want to know its size.
    any idea?

    Assume the PDF data is in internal table gt_messg_att.
    MOVE p_spoolno TO lv_spoolno.
    * CONVERT THE SPOOL TO PDF
      CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
        EXPORTING
          src_spoolid                    = lv_spoolno
          no_dialog                      = lc_no_dialog
    *     DST_DEVICE                     =
    *     PDF_DESTINATION                =
       IMPORTING
         pdf_bytecount                  = lv_bytecount
    *     PDF_SPOOLID                    =
    *     OTF_PAGECOUNT                  =
    *     BTC_JOBNAME                    =
    *     BTC_JOBCOUNT                   =
       TABLES
         pdf                            = gt_pdf_output
       EXCEPTIONS
         err_no_otf_spooljob            = 1
         err_no_spooljob                = 2
         err_no_permission              = 3
         err_conv_not_possible          = 4
         err_bad_dstdevice              = 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
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ELSE.
    * Transfer the 132-long strings to 255-long strings
        LOOP AT gt_pdf_output INTO wa_pdf_output.
          TRANSLATE wa_pdf_output USING ' ~'.
          CONCATENATE v_buffer wa_pdf_output INTO v_buffer.
          MODIFY gt_pdf_output FROM wa_pdf_output.
          CLEAR wa_pdf_output.
        ENDLOOP.
    * TO CONVERT THE DATA INTO PDF FORMAT ELSE THE PDF FILE
    * WON'T OPEN & REPORT WOULD GIVE A MESSAGE THAT
    * THE FILE IS DAMAGED & COULD NOT BE OPENED
        TRANSLATE v_buffer USING '~ '.
        CLEAR : wa_messg_att,
                gt_messg_att.
        DO.
          wa_messg_att = v_buffer.
          APPEND wa_messg_att TO gt_messg_att.
          SHIFT v_buffer LEFT BY 255 PLACES.
          IF v_buffer IS INITIAL.
            EXIT.
          ENDIF.
          CLEAR wa_messg_att.
        ENDDO.
      ENDIF.
    * Get size of attachment
      DESCRIBE TABLE gt_messg_att LINES lv_cnt.
      READ TABLE gt_messg_att INTO wa_messg_att INDEX lv_cnt.
      lwa_doc_data-doc_size =  ( lv_cnt - 1 ) * 255 + STRLEN( wa_messg_att ).

  • Problem opening  Microsoft Office & PDF Email attachments

    Just got a Motorola Razr.  Having a problem opening Microsoft Office (e.g. Work, Excel) and PDF Email attachments.   Receive message "winmail.dat Unsupported file type".   Can open jpg files.  I have Quick Office, which is suppose to enable you to do this, but does not seem to make a difference.   Wonder if it is an Android 2.3.5 issue.  I used to have a Blackberry and this was not an issue.  This is a showstopper for me and I will return the phone if I can't read Microsoft Office and PDF files attached to emails.  My email server / client is Verizon.
    I would appreciate any recommendations.

    Hope this is one of those "better late than never" scenarios.
    The problem sounded familiar, and it's one that's been around for a long, long time.  I don't think it's a Razr problem, or a Droid problem, but it is about email clients.  I've had similar issues with email on computers.
    The problem starts with Outlook's RTF format.  It saves the document's formatting info (bold, underline, etc.) and other info in the winmail.dat file, and some email clients simply can't decode it. 
    The sender can change the format of what they're sending, though, and I believe that the most recent versions of Outlook can change those format setttings on a person-by-person basis (don't want to start a rumor here because I could be wrong about that).
    Just copy and paste the error message into Google (or your preferred search engine, and you'll see some info that might be helpful.

Maybe you are looking for