SPOOL Download

Hi Everyone,
I have a report which is run in background. When i try to download the spool into excel file, not all the columns are not downloaded. Is there a setting that i need to check/change so that when i download the spool to excel, i will be able to download all the columns?
Please help!
Thanks,
Jim

Hi Jim,
Check the related link. Might get your solution:
Re: upload data from excel sheet
search in SDN with :  want to move spool to internal table and then to excel file.
Sorry I am unable to get the link...for this
Reward points if this helps.
Manish
Message was edited by:
        Manish Kumar
Message was edited by:
        Manish Kumar

Similar Messages

  • Spool download truncate

    Hello all,
    I have an issue related to spool download.
    I run the transaction MB5B in Background mode and at the end I have a spool of 320.000 pages.
    I would download it as text file, but the file created is truncated at page 29.986.
    Please help me, I've already set my parameters in order to see 999.999 pages but it doesn't work.
    I need to provide the stock in a certain date to the auditors and I don't know any workaround.
    Thanks a lot in advance
    Massimiliano

    Hi,
    use transaction  SP01, select your spool request, select menu 'goto -> Display requests->Settings'. In the poped up screen insert from page 1 - 29000. You should repeat the same for the pages 29001 - 580000 and so on until you get all you pages downloaded. At the end you can gather your list to one document.
    BR,
    Maru

  • EA60 Spool download per Invoice

    Hello Team,
    I am working on EA60(Invoice printing) of ISU. Here If I am running the prinitng based on protion Wise , system will create a single spool request containg all the document .  Now I am writing an enhancement wherein to convert the spool into PDF. It works fine converting the spool to PDF. But as system generate a single spool corresponding to all the invoices so my converted PDF contains multiple pages.
    If there any way I can make multiple spool corresponding to every invoice by running the report based on proting.
    The Idea is to download the PDF corresponding to every Invoice.
    I tries the external mail option in print parameters given in EA60 but it will great n mail corresponding to N invoices within the group & it is very diffcult to download every invoice from mail & make a repository .
    Also suggest if I use external mail option while running EA60 portion wise can I have mail header linked with Invoice no or Consumer no so that looking at mail I can say that this invoice belongs to this consumer.
    Regards,
    Pankaj

    Hi Fox,
    Here is a small sample code for you:
    REPORT ZTEST.
    PARAMETERS:
         P_OBEL LIKE ERDK-OPBEL.
    DATA:
         L_PDF  TYPE W3MIMETABTYPE,
         L_SIZE TYPE I.
    START-OF-SELECTION.
         CALL FUNCTION 'ISU_GET_PDF_FILE'
              EXPORTING
                   X_OPBEL         = P_OPBEL
              IMPORTING
                   Y_PDF_FILE_SIM  = L_PDF
                   Y_SIZE          = L_SIZE.
         CALL FUNCTION 'GUI_DOWNLOAD'
              EXPORTING
                   BIN_FILESIZE  = L_SIZE
                   FILENAME      = 'C:\TEMP\BILL.PDF'
                   FILETYPE      = 'BIN'
              TABLES
                   DATA_TAB      = L_PDF.
    Regards,
    KPG

  • ITAB TO SPOOL

    Dear Experts,
    There are many threads regarding spool.
    But here I had given task by functional that I had to develop an object which show a some data list, in which i have to tick mark and send selected list as a mail to particular party.
    Also same thing to do as mass mailing for scheduling in back ground for all party.
    Now problem is I have an internal table with list of customer and it's particular details which i have to send by email.
    Now i know how to convert spool to pdf but i don't know how to convert internal table to spool.
    Please note i had try with many example which had already posted in sad.sap.com.
    i had got only one binary spool from it successfully. but which is not convert into pdf.
    Please i know that if i develop smartform for it is to easy but i want to do mass mailing and i had already developed module-pool for it.
    Please guide
    how do i convert my internal table to spool in specific layout with out using smart form. if it is in oops then it will be more helpful for conceptually.
    thanks & regards,
    Nayan Lad

    Hi,
    please find below prgroms are use full this Spool program will convert to PDF RSTXPDFT4.
    and this program Spool download
                   T A B L E S   & T Y P E S                             *
    TYPES : BEGIN OF ty_mail_data ,
              text(4000),
           END OF ty_mail_data.
    DATA : t_mail_data TYPE TABLE OF ty_mail_data WITH HEADER LINE ,
           l_mail_data TYPE TABLE OF ty_mail_data WITH HEADER LINE,
           w_char(4000),
           w_char1(4000),
           filenamee LIKE ibipparms-path.
    PARAMETERS: p_spool TYPE tsp01-rqident.
    Fetching Spool data into internal table
    CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB'
         EXPORTING
              rqident = p_spool
         TABLES
              buffer  = t_mail_data.
    DELETE t_mail_data WHERE text(1) = '-'.
    READ TABLE  t_mail_data WITH KEY text(1) = '|'.
    IF sy-subrc EQ 0.
      formatting Internal table according to file fromat...
      LOOP AT t_mail_data.
        IF t_mail_data-text(1) EQ '|' OR  t_mail_data-text(1) EQ '-'.
          l_mail_data-text = w_char .
          APPEND l_mail_data.
          WRITE :/ w_char.
          CLEAR w_char.
          w_char = t_mail_data-text.
        ELSE.
          MOVE t_mail_data-text TO w_char1.
          CONCATENATE w_char w_char1 INTO w_char.
        ENDIF.
      ENDLOOP.
      l_mail_data-text = w_char .
      APPEND l_mail_data.
      WRITE :/ w_char.
    ENDIF.
    CALL FUNCTION 'F4_FILENAME'
         IMPORTING
              file_name = filenamee.
    CALL FUNCTION 'GUI_DOWNLOAD'
         EXPORTING
              bin_filesize            = 1024
              filename                = filenamee
              filetype                = 'ASC'
         TABLES
              data_tab                = l_mail_data
         EXCEPTIONS
              file_write_error        = 1
              no_batch                = 2
              gui_refuse_filetransfer = 3
              invalid_type            = 4
              OTHERS                  = 5.
    IF sy-subrc <> 0.
    MESSAGE e000 WITH text-i02.    "Exception in GUI_DOWNLOAD
    ENDIF.
    Edited by: BRsankar on Sep 29, 2011 9:13 AM
    Edited by: BRsankar on Sep 29, 2011 9:14 AM

  • How to take backup of an entire module pool program with code,screen,etc.

    Hi experts,
    I have some important data in the ides server for which i want to take backup of them.
    I have some question regarding the same.
    1.How to take backup/download of an entire module pool program with code,screen,etc.
    2.How can we take backup/download for a DB table with its structure?
    3.How can we take backup of a search help?
    Please give some suggestions abt the same.
    Regards,
    Ashesh.

    Hi,
    May be just for viewing, try downloading from SE80 transaction from the others option.
    Here just try issuing the print, it will generate the spool.
    Now using the spool, download to your desktop as required. It will have all the information regarding the attributes, fields, elements everything.
    The only issue is, may be you need to take all the screens separately.
    Regards,
    Santhosh.

  • Print driver was not installed. Operation could not be completed (error 0x00000002)

    So, here's my problem.  Wondering if anyone else has seen this or knows where I can find logs to get more information about this.
    I have some Vista x64 systems on a domain with a print server serving both x86 and x64 print drivers.  All was working fine, until one day I updated the drivers, expecting them to push out to the clients.   It did for most, but for a few of the Vista x64 systems it failed.  Not only did it fail, but it seems to have prevented me from installing any HP print drivers, even for locally connected HP printers.   A couple of the machines were critical and after hours of trying things (resetting print spooler, downloading new drivers, etc) I had to rewrite them since system restore was not working (another long story).
    So, now I have one PC left that is reporting the above 0x00000002 error when trying to install drivers, and theres a very complicated web of programs installed on this system and I'd prefer not to install it. 
    Any ideas what I can do to solve this.   Same error happens whether using the drivers that come with windows, downloading the drivers from the HP website (both the individual drivers and the universal print drivers), or whether I hook the printer directly to the printer or if its through the network.   Right now I'm trying to hook up a laserjet 8150N and getting that error.
    Any ideas?
    Thanks,
    Karl

    Did you ever find a solution to your problem? I am having the same issue with loading drivers on Windows 7 x64 machines.

  • How to get Formatted Excel file when downloading spool request of a r paint

    I have scheduled a Report painter program  in background  & spool is generated .
    When I download the output in the Excel file its not in the proper format . We need to format the file file by adding  deleting blank Line in the report .
    Can it be possible when we Download the Report painter. Its come The generated Excel file should come in formatted way.
    Thanks

    kiro123 wrote:
    I have scheduled a Report painter program  in background  & spool is generated .
    >
    > When I download the output in the Excel file its not in the proper format . We need to format the file file by adding  deleting blank Line in the report .
    >
    > Can it be possible when we Download the Report painter. Its come The generated Excel file should come in formatted way.
    >
    >
    > Thanks
    Yes the report painter report especially in the hierarchial format will not make much sense when you download to excel. Until now I also have not seen any solution to this.

  • Download SPOOL to an internal table in Background

    Hello,
    I want to Download the Spool to an internal table, but in Background, the functions
    RSPO_RETURN_SPOOLJOB
    RSPO_RETURN_ABAP_SPOOLJOB
    don't work.
    Does anybody know another function or way to do it?
    Thank you very much,
    Maite.

    Hello,
    Thanks for your help but I'm afraid it doesn't work...
    In my system the function SO_SPOOL_READ doesn't exists... It might be obsolete.
    The function RSPO_DOWNLOAD_SPOOLJOB doesn't work in Background... it sends a message xxx bytes transferred and cancels the job. and the file it is not created.
    I don't know why these RSPO functions work in different way in background...
    Maite.

  • How to download the Contents of Spool Requests as one line into Local File

    Hello All,
    I am running a report (Tcode- MC40)in background and i want to download the output from Spool list .
    but the issue with me is, in spool the contents are displaying in 2 rows, where as i want to downlod the details in 1 row by filtering some fields as per my need. There is no option to download SINGLE LINE / DOUBLE LINE  as like if i run in foreground .
    If i run it In Foreground , there is option to see the ouput in SINGLE LINE/DOUBLE LINE ... Same way i want to downaload the spool in background , as the report takes much time , so it has to run in back ground...
    anyone please suggest any idea ??
    Thanks all.

    try :
        CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
          EXPORTING
            rqident              = i_spools-rqident
            first_line           = 1
            last_line            = 0
            desired_type         = ' '
          IMPORTING
            real_type            = real_type
            sp_lang              = sp_lang
          TABLES
            buffer               = so_ali
          EXCEPTIONS
            no_such_job          = 1
            job_contains_no_data = 2
            selection_empty      = 3
            no_permission        = 4
            can_not_access       = 5
            read_error           = 6
            type_no_match        = 7
            OTHERS               = 8.

  • How to download data from spool to excel file

    Hi,
    I have requirement like....i need to download data from spool to excel file.
    Please let me know the process how to download...
    <removed by moderator>
    <removed by moderator>
    Thanks,
    Khasimsa
    Moderator message: please (re)search yourself before asking, do not assign priorities, do not offer re-ward
    locked by: Thomas Zloch on Sep 8, 2010 1:18 PM

    Hi try this way..
    *FM called that returns the Spool Request Number data into and internal table
      CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB'
        EXPORTING
          rqident              = p_spool                     "Spool Request Number
          first_line           = 1
        TABLES
          buffer               = it_spool_xls                            "Internal table that will have the Spool Request No data
        EXCEPTIONS
          no_such_job          = 1
          not_abap_list        = 2
          job_contains_no_data = 3
          selection_empty      = 4
          no_permission        = 5
          can_not_access       = 6
          read_error           = 7
          OTHERS               = 8.
    *To convert the spool data into excel format
      CALL FUNCTION 'SO_RAW_TO_RTF'
        TABLES
          objcont_old = it_spool_xls               "Internal table having spool data
          objcont_new = it_xls_spool.           "Int table having Excel format data converted from Spool data
    "call GUI down Load by passing  it_xls_spool
    Prabhudas

  • Download Tab Delimited file from spool!

    Hi Experts,
    Is there any way to download tab delimited txt file from spool?
    Spool is created for Statements and Invoices from Sap Script and Smartform which is in OTF format.
    I am able to download this in Text file but I need this file in tab delimited format.

    I don't understand what you want to do as it seems impossible : the spool contains miscellaneous data, not compatible with tab delimited files which are used to store 2-dimensional tables (columns, rows).

  • Download spool to PDF document on application server

    Hi,
    I am using function CONVERT_OTFSPOOLJOB_2_PDF to convert a sapscript spool and then downloading the internal table provided to a pdf file on the application server. The sapscript form contains company logos.
    After transferring the file from the application server to PC and then opening the pdf document I get the following message:
    "There was an error while trying to parse an image."
    The PDF doc contains everything except the company logo.
    I noticed that this works (i.e. company logo is present in the downloaded file) when I transfer the internal table that contains the PDF contents onto my PC using GUI_DOWNLOAD using mode 'BIN'. However, when I transfer the contents of the same internal
    table to a file on the application server using abap statement:
    'Open Dataset <filename> FOR OUTPUT IN BINARY MODE'
    I get the problem described above.
    I noticed that SAP has provided standard program RSTXPDFT4 to convert a spool and download it into a PC file. However is there a similar program that downloads a spool onto the application server? Perhaps there is a 'special' way in downloading PDF documents onto the application server?
    I don't this problem with sapscripts that do not have a company logo.
    Is there a certain restriction on 'Open Dataset'with transfering logos in PDF documents?
    Any help would be greatly appreciated in the form of reward points.
    Thanks
    Liam

    Hi,
    We convert some of our spools to pdf and store them on the app server using following high level process.
    CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
           EXPORTING
                src_spoolid = p_spool
                no_dialog   = 'X'
                dst_device  = 'LOCL'
           TABLES
                pdf         = lt_pdf
           EXCEPTIONS
                OTHERS      = 0.
    Write PDF file
      CALL FUNCTION 'GUID_CREATE'
           IMPORTING
                ev_guid_32 = l_guid.
      CONCATENATE '/your_path_goes_here/'
                  l_guid
                  INTO l_filename.
      CONCATENATE l_filename '.pdf' INTO l_filename.
    Store
      OPEN DATASET l_filename IN TEXT MODE.
      IF NOT sy-subrc IS INITIAL.   " only write pdf if new
        LOOP AT lt_pdf.
          TRANSFER lt_pdf TO l_filename.
        ENDLOOP.
      ENDIF.
      CLOSE DATASET l_filename.
    If it doesn't work, I would 1st try and play with image type. I'm wondering if it's tripping on image conversion. Perhaps revert to 1st principles and try monochrome bitmap and a few variations thereof. I stand by my code above. Definitely works. HTH, Dave

  • Spool to PDF - Problems with downloading PDF file when converting with job

    Hi all!
    I've got a problem. I've got a program that writes a smartform into the spool. After that, I am using the function modules RSTS_GET_ATTRIBUTES and CONVERT_OTFSPOOLJOB_2_PDF to convert it into PDF. I retrieve a internal table with the binary content for the PDF file. Now i can download the file to the desktop by using the method cl_gui_frontend_services=>gui_download.
    But there is a problem: when the spool excesses 99 pages, the function module CONVERT_OTFSPOOLJOB_2_PDF asks the user via popup if the PDF should be created in background. If the user commits, the internal tables that should contain the binary PDF data is emtpy. A background job writes the binary data into the spool. The user has got an empty file that will be generated by cl_gui_frontend_services=>gui_download.
    So, is it possible to suppress the popup to create the PDF allways online? Or how can I write the PDF file if there will be create any spool id in background? You'll find my current code below.
    * Prüfen ob es die übergebene Spoolnummer überhaupt gibt
      SELECT SINGLE * FROM tsp01 INTO ls_tsp01 WHERE rqident = id_spoolid.
      IF ( sy-subrc <> 0 ).
        cf_error = 'X'.
        EXIT.
      ENDIF.
    * TemSe-Objekte speichern sequentielle Daten. Ein TemSe-Objekt kann aus
    * mehreren Teilen bestehen. Dieser FB ermittelt die wichtigsten Attribute
    * eines TemSe-Objekts. Falls das Objekt aus mehreren Teilen besteht, werden
    * die Attribute entsprechend zusammengefaßt.
      CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
        EXPORTING
          client        = ls_tsp01-rqclient
          name          = ls_tsp01-rqo1name
          part          = 1
        IMPORTING
          objtype       = ld_objtype
        EXCEPTIONS
          fb_error      = 1
          fb_rsts_other = 2
          no_object     = 3
          no_permission = 4
          OTHERS        = 5.
      IF ( sy-subrc <> 0 ).
        cf_error = 'X'.
        EXIT.
      ENDIF.
      IF ld_objtype(3) = 'OTF'.
        lf_is_otf = 'X'.
      ELSE.
        lf_is_otf = ' '.
      ENDIF.
      IF ( lf_is_otf = 'X' ).
    *   Konvertiere OTF-Spoolauftrag nach PDF
        CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
          EXPORTING
            src_spoolid              = id_spoolid
            no_dialog                = ' '
    *        pdf_destination          = 'T'
          IMPORTING
            pdf_bytecount            = ld_numbytes
            pdf_spoolid              = ld_pdfspoolid
            btc_jobname              = ld_jobname
            btc_jobcount             = ld_jobcount
          TABLES
            pdf                      = lt_pdf
          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.
        IF ( sy-subrc <> 0 ).
          cf_error = 'X'.
          EXIT.
        ENDIF.
      ELSE.
    *   Konvertiere ABAP-Liste-Spoolauftrag nach PDF
        CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
          EXPORTING
            src_spoolid              = id_spoolid
            no_dialog                = ' '
          IMPORTING
            pdf_bytecount            = ld_numbytes
            pdf_spoolid              = ld_pdfspoolid
            btc_jobname              = ld_jobname
            btc_jobcount             = ld_jobcount
          TABLES
            pdf                      = lt_pdf
          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.
        IF ( sy-subrc <> 0 ).
          cf_error = 'X'.
          EXIT.
        ENDIF.
      ENDIF.
      WHILE ( lf_file_ok = '' ).
    *   Die in der Tabelle lt_pdf enthaltenen Binärdaten werden nun in eine
    *   Datei geschrieben. Da alle übergebenen Tickets in die gleiche Datei
    *   geschrieben werden, kann der im Speicher gehaltente Protokolleintrag
    *   gelesen werden
        CALL METHOD cl_gui_frontend_services=>gui_download
          EXPORTING
            bin_filesize              = ld_numbytes
            filename                  = cd_filename
            filetype                  = 'BIN'
    *    append                    = SPACE
    *    write_field_separator     = SPACE
    *    header                    = '00'
    *    trunc_trailing_blanks     = SPACE
    *    write_lf                  = 'X'
    *    col_select                = SPACE
    *    col_select_mask           = SPACE
    *    dat_mode                  = SPACE
          confirm_overwrite         = 'X'
    *    no_auth_check             = SPACE
    *    codepage                  = SPACE
    *    ignore_cerr               = ABAP_TRUE
    *    replacement               = '#'
    *    write_bom                 = SPACE
    *    trunc_trailing_blanks_eol = 'X'
    *    wk1_n_format              = SPACE
    *    wk1_n_size                = SPACE
    *    wk1_t_format              = SPACE
    *    wk1_t_size                = SPACE
    *  IMPORTING
    *    filelength                =
          CHANGING
            data_tab                  = lt_pdf
          EXCEPTIONS
            file_write_error          = 1
            no_batch                  = 2
            gui_refuse_filetransfer   = 3
            invalid_type              = 4
            no_authority              = 5
            unknown_error             = 6
            header_not_allowed        = 7
            separator_not_allowed     = 8
            filesize_not_allowed      = 9
            header_too_long           = 10
            dp_error_create           = 11
            dp_error_send             = 12
            dp_error_write            = 13
            unknown_dp_error          = 14
            access_denied             = 15
            dp_out_of_memory          = 16
            disk_full                 = 17
            dp_timeout                = 18
            file_not_found            = 19
            dataprovider_exception    = 20
            control_flush_error       = 21
            not_supported_by_gui      = 22
            error_no_gui              = 23
            OTHERS                    = 24.

    Creating a PDF file with over 99 pages through SAP seems rather unreasonable to me. What are you printing - Encyclopedia Britannica? For cripes sake... Have you thought about creating more than one spool request or using something completely different? Why do you have to do this through spool? You can get Smartform output directly into PDF, there are a lot of example out there.
    The only solution that comes to mind is rather brutal - create a copy of the function module and get rid of the popup. Although it just might time out after that...

  • Downloading spool to PDF background

    Hi friends
    How can i downlaod spool to PDF format in back gorund.
    i know we cna download background into server as we required in PDf format.
    i am able to downlaod but when i go to AL11 tcode and open i am not able to see in PDF format..
    is there any way to downlaod to front end PC through back ground ..
    if the file store in application server how user can view the PDF document.
    Please help

    Hi Ramesh,
    Check the Sample programs:
    RSTXPDFT4
    RSTXPDFT5
    The FM is: CONVERT_ABAPSPOOLJOB_2_PDF
    check this link as well.
    http://help.sap.com/saphelp_47x200/helpdata/en/85/54c73cee4fb55be10000000a114084/frameset.htm
    <b>Reward points if this helps.
    Manish</b>

  • Multiple invoices(spool jobs) download to multiple PDF files or 1 PDF file

    Hello techies:
    Has anyone written a program that takes the spool jobs of multiple Invoices from table TSP01 and then download these multiple invoices to multiple PDF files or to
    One PDF file depending on selection screen?
    This is an urgent request from client for archiving.  Any help is highly appreciated !
    Thanks so much
    SilviaB

    Hi Chris
    Try printing from another browser, such as Firefox. There have been issues between eBay's coding practices and how Safari interprets them.

Maybe you are looking for