Send spool list ceated by Job (SM36) as pdf-file via email

We are running the report RM06EFLB (Transaktion ME84 - "Create Releases") in the background.
The Job is creating a spool list with 17 pages.
I want to send this 17 pages (in a readable form) to a number of persons.
This did I try so far:
- Distribution list with Recipient type "via Internet" as Spool list recipients in the Job. (Tried different formats for ABAP List in Transaction SCOT)
=> Email is send to recipients, attachment is readable depending on format.
     Problem: attachment is not complete, it contains only about 15 pages (985 rows).
- Distribution list with Recipient type "Internal User - SAP-Office" as Spool list recipients in the Job.
=> Document is sent to Business Workplace
     Problem:  attachment is not complete, it contains only about 15 pages
Any ideas how to get the complete spool list?
Is there mayby a report around  that is sending a spool list as pdf-file via email to a number of recipients?
(Would like to maintain this Report as an additional step in the job. The spool-number should be selected from the previous step.)
Thank you for your help.
Jens

Oh sorry - here is the coding which is used in that program:
First use function module  'CONVERT_ABAPSPOOLJOB_2_PDF' to convert the spool entry into pdf.
Loop at output table PDF and concatenate all lines into a string. Convert string to xstring.
Then call mail class:
DATA: lv_pdf_x TYPE xstring,
        lv_subject TYPE string,
        lv_doc_desc TYPE so_obj_des,
        lv_mail_body TYPE soli_tab.
  DATA: ls_atta TYPE rcf_s_att4mail_hex,
        lt_atta TYPE rcf_t_att4mail_hex.
* -- Fill parameter
  lv_subject = 'Requested Report'."#EC NOTEXT
  lv_doc_desc = 'Report XXL'."#EC NOTEXT
*  lv_mail_body = ?
  ls_atta-name = lv_doc_desc.
  ls_atta-extension = 'PDF'.
  ls_atta-content = p_pdf_x. <- This is your xstring
  APPEND ls_atta TO lt_atta.
  TRY.
      CALL METHOD cl_hrrcf_services_mail=>send_web_mail
        EXPORTING
          p_subject              = lv_subject
          p_receiver             = p_receiver->email_address
          pt_atta_hex            = lt_atta
          p_sender               = p_sender->email_address
          p_body_c               = lv_mail_body.
    CATCH cx_hrrcf.
  ENDTRY.
I hope that you have the above mentioned class in your system but it should work with other email functions as well.
Regards
Nicola

Similar Messages

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

  • I have an HP Photosmart C4180 all in one printer scanner and copier, I can't figure out how to scan more than one page at a time and then send as a PDF file via email

    I have an HP Photosmart C4180 all-in-one, printer, scanner and copier.  I can't figure out how to scan more than one page?  It will only let me do one page at a time and then I have difficulty sending pages 1, 2 and 3 as one docuement.  Any ideas??
    Thank you, Jetteski

    Hello Jetteski,
    Hello Jetteski, Thanks for the post.
    Since you are running a MAC, check the below links for some excellent information on scanning.  Good Luck!
    http://goo.gl/M8Cl2
    http://goo.gl/cufK6
    http://goo.gl/OTQoR
    I work for HP but my posts and replies are my own....Thank you!

  • Trouble send PDF file by email

    Hi I down loaded the new ios7 app and since then I have had trouble sending PDF files via email can any 1put any light in it?

    Just like any other file...
    On Sat, Mar 7, 2015 at 12:16 AM, larrys19338374 <[email protected]>

  • How to stop sending spool list of a particular step in a batch job to the Distribution list

    Hi  All
    I have a Batch job  with three steps ( Three programs) which will be sending Spool list for all the 3 steps to the assigned distribution list
    My user requirement is he want only the spool list for the 3rd step only (Exclude 1st and 2nd)

    Hi,
    you can consult your Basis consultant and also check few settings in T.code-SPAD

  • How to send a pdf file via http call

    Hi Experts,
    Please try to think on how you would send a file like a pdf file via the http call. You might need to convert the pdf in a character string which can be sent via http. The character string then might need to  get converted back into a pdf and saved in a file. Read through the Archive Link API guide to see how they send the body of a file.
    Please it is urgent......
    Thanks
    Basu

    so you want to push the PDF file over http to external system.
    where is pdf file stored.
    for examle if its in the clients desktop, you can use gui_upload to upload to internal tabble (type BIN) then use FM SCMS_BINARY_TO_XSTRING to conver the binary table to type string.
    then use cl_http_client class to push the file to the destination.

  • To send output as a PDF attachment via email

    Hi experts
    I have the (smartform) output data in OTF format..and displaying it in PDF form with FM 'HR_EFI_SHOW_PDF_FORM' .
    Now the requirement is <b>to send this output as a PDF attachment via email</b>.
    Please help me with sample code to perform this.
    Regards,
    Matt.

    Hi,
    Check this links,
    /people/sap.user72/blog/2004/11/10/bsphowto-generate-pdf-output-from-a-bsp
    Also for email:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8cd6adbb-0301-0010-39ba-938c601d5db9
    Refer the following link for more details:
    http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
    Thanks,
    Reward If Helpful.

  • Why can't I send a pdf file by email?

    Why can't I send a pdf file by email?

    How are you trying to send it? What happens when you try? What version of Reader?

  • No Microsoft files listed in the settings "convert into PDF files"

    Hi, I wanted to convert different Microsoft Office files, but it doesn't work. There are no Microsoft files listed in the settings "convert into PDF files". I had the trial version of Adobe Acrobat Pro XI installed on a MAC in Windows that runs trough Parallels. Hope somebody can help. Thx

    Hi Rahul,
    many thanks for your suggestion.
    Yes, Parallels is a virtual machine on the top of MAC and I can see all files in the Windows Explorer. Also the ones I created on the MAC top with the Microsoft Office Software Word or Excel for MAC as well the ones I created earlier on a Windows PC.
    Unfortunately there is no possibility to convert files into PDF format with a click on the right mouse. And Adobe also doesn't open Word documents because it doesn't support this format.
    But nonetheless it wouldn't be a solution that I prefer to convert in adavance every single file in a PDF format. I need to create a PDF package from different formats.
    I assume this issue has to do something with MAC or Parallels, because this function of the Adobe Versions Acrobat 8 Pro and XI Pro work well on a Windows PC. I just don't understand why there are no Microsoft Office file formats listed in the Adobe settings. This settings also can't be changed. I tried to find out but couldn't find any hint for this problem thus I'm a bit at a loss... Maybe you have another idea?
    Regards
    Ly

  • Trying to attach pdf files to emails I'm sending to myself.  Instead of attaching the file, it copies the text.  I want the file so I can have it on my iPad.  I've been able to do this in the past, but not the last two tries.  What's wrong?  Thanks.

    Trying to attach pdf files to emails I'm sending to myself.  Instead of attaching the file, it copies the text.  I want the file so I can have it on my iPad.  I've been able to do this in the past, but not the last two tries.  What am I doing wrong?  Thanks.

    You aren't doing anything wrong.
    If the PDF is short enough, your iPad Mail app will display the text as part of the mail.
    Actually it is still an attachment.
    Tap and HOLD on the text and you should see options to "Open In..." that will allow you to open the PDF in most PDF readers such as iBooks, GoodReader, etc.

  • How do i add acrobat to my printer list so i can create a pdf file. Mac 10.6.8?

    How do i add acrobat to my printer list so i can create a pdf file. Mac 10.6.8?

    Good day,
    Beginning w/ the release of Mac OS 10.6.8, the process to create PDF files with Acrobat changed.  The Adobe PDF Printer no longer exists.  To create a PDF using Acrobat, please refer to the instructions in this document: http://helpx.adobe.com/acrobat/kb/cant-print-pdfs-mac-os.html
    -David

  • Sending .fdf file via email + exiting full screen mode

    Hi everyone,
    I have the following code attached to a button on a pdf form that sends the form data in a .fdf file via email:
    var f = this.getField("useraddress");
    this.mailForm(true, f.value, "", "", "RSVP");
    Apparently the following line gets the user address from a field:
    var f = this.getField("useraddress");
    I created a field called "useraddress" and set it to be hidden but I don't know how to have my email address continually popuate this field so that it can be used in the above code to automatically send the .fdf file to my address.
    Would someone be able to tell me how I'd do this?
    Also just one other question if that's okay?
    The pdf is set to open up in full screen mode automatically. I want to add a button that will take the viewer out of full screen mode but I'm not sure what the code would be to do this. Can someone tell me how to do this also?
    Thanks in advance for any help.

    Yeah I probably should - I'm not that familiar with javascript so I didn't know I could. Have worked out the correct way now so thanks.
    I also noticed that when the .fdf file is attached, Acrobat names the file with a generic file name, eg. ACR5037112.fdf - is there a way to automatically name the file with the contents of one of the fields in the form?
    Also, do you have an idea of what the code would be to exit out of fullscreen mode when a button is clicked?

  • %%[ Warning: Empty job. No PDF file produced. ] %%

    Merging ps files into pdf file using "adobe distiller XI pro", i am getting warning message that is "%%[ Warning: Empty job. No PDF file produced. ] %%". My code working perfectly with "adobe distiller 7 standard" . But i don't know why is not working in Adobe Distiller XI.
    Kindly give me a solution.

    OS不明。
    > runfile.psを利用したところ
    細かくなるが、「RUNFILEX.PS」ではない? ファイル名を1文字でも間違っていると、正確な情報には辿り着けなくなる。
    Acrobat Distiller 8.1以降では制限が加えられているという。
    文書番号 : 232142
    Acrobat Distiller 8.1 におけるアクセス制限の問題
    − 「RUNFILEX.ps」ファイルを使用して、複数の PostScript ファイルを 1つの PDF ファイルに統合することができません。
    「Acrobat Distiller 8.1 ではファイルオペレータがアクセスできるフォルダおよびファイルが制限されています。」
    文書番号 : 222406
    ページの挿入または置換の際にエラー「...Subset fonts have the same name and cannot be merged(同じ名前のサブセットフォントがあるため結合できません)」
    Acrobat 7.0 Proでは、[ファイル/PDFの作成/複数ファイル]を選ぶことで複数ファイルを対象に結合させたPDF文書を作成でき、順番も入れ替えられる。また、対象ファイルにはPostScrip tファイルも含まれている。
    Acrobat 9ではどうだった?
    ポートフォリオ文書への検討は?

  • How do i send a file via email so it opens in booklet form to other people

    how do i send a file via email so it opens in booklet form to other people

    You would appear to be doing the right method as in this work through:http://support.en.belgacom.be/app/staticpages/devices/en/#/nokia/c3-00/email/sending-an-email-messag...
    Is there similar problem with Email without attachment?
    Happy to have helped forum in a small way with a Support Ratio = 37.0

  • How to send .CSV file via email in Oracle10g/11g PL/SQL

    Hi Guys,
    Can any one let me know or suggest me how to send .csv file via email attachment using Oracle PL/SQL.
    Thanks in advance!
    Regards,
    LRK

    A FAQ. Use UTL_MAIL (if attachment is 32KB less). Else use UTL_SMTP. Search this forum. Search using google.

Maybe you are looking for

  • Excise and Vat amount fetching in crystal reports

    Hi Document:GRPO (Draft) Reports Format:Crystal Reports Im not able to fetch the values of Excise(BEDCessHcess) and Vat applicable to each items in row. Plz suggest me the wayout. Thanks

  • Run time error during message mapping transformation

    Hello,       i created a scenario and tried to execute . i got this error . RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ZCRM_CRMXIF_ORDER_SAVE_M01/IDOC/BEGIN. The message is: Exception

  • Build a DLL in LabVIEW & Use the DLL in LabVIEW

    I am trying to build a DLL for the simple vi with LabVIEW and want to use the DLL in LabVIEW. is it impossible? I wrote a vi and it have 2 terminals. one is the input for numeric dbl data type and one another is the output for numeric dbl 1D array da

  • Toggle mighty Mouse button 3

    I need some way of easily toggling the action of the third button (clicking the scroll wheel) on a might mouse. I have to access several programs on a remote site via a java citrix server that can only be accessed via a secured web web site (don't as

  • TableView: selectedRowKey=" %=selected% " fails when null

    Hello, having a HTMLB:TableView and the key column being PersNo (a NumC 8) it is not possible to define an unselected state for my table view when using the selectedRowKey attribute: selectedRowKey="0" or selectedRowKey="00000000" works fine, but as