Spool requests deletion after printing through code

i need to delete the spool requests after it has been printed, the deletion should be through coding.

hi
first use the tcode sp01 to check the spool requests...if u're able to the requests u wanted..in the program, call this FM
RSPO_SPOOLJOB_DELETED
and pass the required parameters.
regards,
shamim

Similar Messages

  • How to control automatic deletion of spool requests while check printing

    hi friends
    When i do cheque payment run (F-58), my spool getting deleted after printing. In my User setting SU01,
    Delete after output is not selected, still it is getting deleted from spool. We have informed users to uncheck this option once the spool request is created at the end of this run. But our users feel there should be some way to disable/uncheck or save this option automatically rather than changing each spool request settings everytime the posting is run.
    Please could you suggest me how to disable/uncheck this option 'Delete after printing if no errors' permanently. I have done the necessary settings in user master record but still it's the same.
    please advice.
    Regards,

    Hi Nathan,
    Solution is only to maintain in SU01 , its picking from there only.
    May be your  user needs to log-off once status is changed in SU01, ask him to check what it is showing for him in SU3.
    So if you deactivate  option in SU01/SU3 , it should work as same is working in our environment.
    You can test yuorself using below steps
    1) Login with your ID , create one spool request
    2) check the status in SP01 and check if its ticked  or not
    3) change the tick mark in SU01 , logoff. and login again .
    4) create another spool request
    5) check status now for new spool request in SP01 and check if it is ticked.
    Regards,
    Edited by: Gagan Deep Kaushal on Oct 31, 2010 5:00 PM

  • Lockbox spool deleted after print

    Hi All,
    We have a issue where the user has mistakenly selected delete after print option while processing the lockbox job in background. And while printing the lockbox spoolm printer was jammed and it did not print the lockbox spool correctly (unable to read anything on print).
    my question: is there any way to retrive the spool if yes how? if NO then is there any standard report which will give me same details as the spool.

    no solution

  • Old spool requests delete

    Hi all,
    still we are facing spool over flow issue, even though we installed kernel level-236/64bit.
    We had scheduled a batch job to convert spool request deletion date with the report-RSPO2010, and it is running fine.(it run daily before spool reorg job run).  SPOOL_REORG job also finishing with out errors but still spool numbers volume is very high.
    SAP_BASIS level is 18.
    Any idea to over come this issue. Please guide me.

    Hi Nani,
    Please refer to the following post:
    Re: Database error: TemSe->XRTAB(3)->1 for table TST01 key
    This over flow may occur due to lot of spool requests being generated as a result of certain background jobs or manual requests from users while generating some reports. During busy time of business this happens.
    To know which job is responsible to genereate more number of spool request please do following:
    T-Code: SM37
    Job name: "*"
    User name: "*"
    Select "FINISHED" check box.
    Job Start Condition:
    From date: Past 10 days to cureent day (date) and click execute button.
    In the resulting window within "Ln" column you will see a mat like symbol representing the job generated spools. Select that particualr job and right click and select "Spool List" which will display number of spools generated by the job. You can contact the owner of the job and communicate with him if the number is too big.
    Please let the community know if more information is required.
    Regards,
    Nani Chowdary.

  • Splitting the Spool Request for Form Printing

    Hello,
    I have a requirement where I need to print data for 1500 employees (1 Page per employee) which makes 1500 pages per spool request. Now, there is a change in the printer due to which the printer only accepts only 300 pages in the buffer. So, after printing 300 pages, it stops. Is there any way I can split the spool request and generate 5 spool requests (1 request for every 300 pages) so that all the pages are printed at once? Please let me know.
    Regards,
    Venkata Phani Prasad Konduri

    i have created a program using which you can create multiple pdf from a single spool number
    first in the code below i have taken a spool number which has 2 pages in it.
    second you must use the FM : RSPO_RETURN_SPOOLJOB  in the program to get the content of the spool .  while to perform analysis on how to build logic to split the spool otf/pdf user the FM RSPO_DISPLAY_SPOOLJOB, here by passing the spool number you will get the content in display mode and then based on the keyword you will build logic for e.g in my case i have to perform segregation based on material number so it can be used to decide how many pages are reserved by a specific material number.
    another important point to kept in mind is that otf begins with "//"  and a page ends with "EP" and last page ends with  "//" along with "EP". It can be used to remove the number of lines to keep specific pages .
    program layout as with proper documentation has been provided.
    REPORT  zdk_spool_split.
    * DATA DECLARATION.
    TYPES : tbuf LIKE tline OCCURS 1.
    FIELD-SYMBOLS: <buf> TYPE tbuf.
    FIELD-SYMBOLS : <lit_otf> TYPE ANY TABLE.
    DATA : lit_otf TYPE STANDARD TABLE OF itcoo.
    DATA : objcont LIKE soli  OCCURS 0 WITH HEADER LINE.
    DATA : format(5) TYPE c, dummy TYPE i.
    DATA : buffer_pdf TYPE STANDARD TABLE OF tline.
    DATA : p_file LIKE rlgrap-filename VALUE 'C:\temp\file1.pdf'. "#EC NOTEXT
    DATA : numbytes TYPE i VALUE 255.
    DATA : cancel.
    DATA : otfcmd LIKE itcoo VALUE '//'.
    DATA : pdfcnv_archive_index LIKE toa_dara.
    DATA : bin_file TYPE xstring,
            pdf_username TYPE c.
    * GET THE SPOOL NUMBER FROM THE USER.
    PARAMETERS : p_sid TYPE tsp01-rqident OBLIGATORY.
    * GET THE CONTENT OF THE SPOOL NUMBER
    CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
       EXPORTING
         rqident              = p_sid
       TABLES
         buffer               = objcont
       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.
    IF sy-subrc <> 0.
       MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    * INCORPORATE YOUR LOGIC TO DELETE LINES WHICH ARE NOT REQUIRED.
    * IN MY CASE I HAVE REMOVED LINES FROM 351 TO 715 TO REMOVE THE SECOND PAGE FROM MY SPOOL
    * MY OBJCONT AFTER DELTED BEGINS WITH "//" AND ENDS WITH "EP" AND "//"
    DELETE objcont[] FROM 351 TO 715.
    * IT ONLY CONTAINS ONE PAGE OUT OF 2 PAGES FROM THE SPOOL NUMBER I HAVE PROVIDED.
    * CONVERT OTF TO PDF
    lit_otf = objcont[]. " GET THE OTF IN CORRECT OTF FORMAT
    ASSIGN buffer_pdf TO <buf>.
    format = 'PDF'. " CHOOSE THE CORRECT FORMAT IE PDF MUST FOR CONVERSION
    CALL FUNCTION 'CONVERT_OTF'
       EXPORTING
         format                = format
       IMPORTING
         bin_filesize          = dummy
       TABLES
         otf                   = lit_otf
         lines                 = <buf>
       EXCEPTIONS
         err_max_linewidth     = 1
         err_format            = 2
         err_conv_not_possible = 3
         OTHERS                = 4.
    IF sy-subrc IS NOT INITIAL.
       MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    * GET THE NUMBYTES OF THE PDF CONTENT OBTAINED AFTER THE CONVERSION
    * CORRECT NUMBYTE IS VERY IMPORTANT OTHERWISE IT WILL NOT GENERATE
    * PDF IN CORRECT FORMAT.
    PERFORM convert_otf2pdf_end(rstxcpdf) TABLES <buf>
                                           USING otfcmd
                                                 numbytes
                                                 pdfcnv_archive_index
                                                 bin_file
                                                 pdf_username.
    * NOW DOWNLOAD THE PDF TO VIEW IN ACTUAL PDF AT DESIRED PATH
    PERFORM download_w_ext(rstxpdft) TABLES <buf>
                                      USING p_file
                                            '.pdf'
                                            'BIN'
                                            numbytes
                                            cancel.

  • Spool not empty after printing

    Hi,
    I have tried finding a similar issue in the forum but no good.
    Would anybody know the reason that spool keeps full even after the job that was triggered successfully printed the desired documents and the spool is still there?
    This should be empty as per daily activities.
    any help is welcome
    regards,

    Most of the spools are not automatically deleted after prinitng is complete. In general, spools older than the maximum set age are regularly deleted through background jobs, you can also restrict deletion to 'Requests already printed'. Please check the Spool administration SPAD and check with your basis team.
    Regards,
    Ganesh

  • How to print Spool requests for cheque printing sequentially

    Dear All,
    I am making vendor payments and printing cheques using F-58. It automatically creates a spool requests at the end of the transaction. When i complete all my payments and go to SP01 for viewing spool requests, the last request appears at the top of the list.
    If i select 3 consecutive requests and print them at a time, the last request gets printed first on the first cheque number and the first request gets printed on the last cheque number.
    This results in anomaly in the cheque number assigned in the system and the printed cheque as the last payment is printed on the first cheque.
    I am using dot matrix printer with  page format fixed for cheque specifications. The cheques are printed properly as per the format except the order of printing.
    Kindly let me know how to print multiple requests sequentially from the spool requests list such that the spool request number printed matches with the serial cheque numbers.
    Regards,
    SAP_2009

    Hi,
    I understod your issue.
    Whenever you posted multiple payment documents, and after that if you want to take cheque printouts sequentially by using more spool requests.........there is a way to sort out this issue.
    1) Select all of your spool requests and click on Sort in ascending Order (CtrlShiftF5) and click on Print directly (CtrlShiftF8). By doing this you will get the cheque printouts sequentially according to your payment document sequence.
    Hope this will help you
    Assign ********, if it solved your problem.
    Thanks,
    Srinu

  • Print preview for the spool request without actual printer hooked u to SAP

    Hi,
    We do not have any printer connected to SAP system. But the business team just wants to do print preview of a document using the SAP local printer settings thorough SP01. They do not want to print it.
    They say that SAP has many printer drivers in its setting. So even if the printer is not attached they should be at least able to do a print preview ?
    Is this possible ? What do I need to do ?
    Regards,
    Rajesh.

    Rajesh Thomas,
    the preview function needs a printer - for whatever reason.
    If NO printer is defined in the system, someone should be able to set up a printer, i.e. locl with driver SAPWIN. Try.
    Regards,
    Clemens

  • Deleting spool requests automatically

    Hi
    We are on R/3 4.7 Enterprise Extn Set 110. I would like to ensure that spool jobs which have printed successfully be deleted automatically. I need some help in getting this done.
    There are some places where I could configure this however I was not sure which would work.
    SU01 / Defaults  / Spool Control / Delete After Output
    SPAD / Admin / Settings / Admin / Automatically delete old spool requests. This has a time limit whic I can set. For instance All .... h
    SP01 / Spool Requests / Select Spool Request / Request Attributes / Spool Attributes / Delete After printing after no errors.
    To me the third one (from SP01) seems just right. But SP01 would show up requests which only belong to me. I would like to ensure that this works for every spool request for every user. How do I go about this? Does this have to be done in IMG? if so how?
    thanks
    ravi

    You need read the Note 16083 - Standard jobs, reorganization jobs
    the SAP_REORG_SPOOL job, also read
    Note 130978 - RSPO1041 - Replacement for RSPO0041
    About :
    But SP01 would show up requests which only belong to me
    dear cleare your user name in Created By and after execute, you will see all in past day , or selected period (it works in ECC, i do not know how it works in 4.7, but i'm think it's are same).
    Regards.

  • Spool Request Not Created for Dunning Printing

    Hi,
    We are running Dunning Program and Printing dunning Letters, system automatically printing Dunning letter and finishing the printing job, not generating any Spool Request.
    For testing purpose, we re-generated dunning letters through from DUNNING History, there system Generating Spool request.
    Any guess, do we missing something to generate Spool request in Dunning printing through normal process, we are using Zform.
    Regars...Raja

    Dear,
    If it is Z program then please debug the same with the help of ABAper and check if the data is picked or not also you can check with your Basis Consultant.
    Br,Vivek

  • After print the script, how to keep spool with out get deleted

    After getting sales order acknowledgment print out, the spool automatically get deleted after print out. But i need same spool request number to produce PDF file.
    How to keep the spool request number with out get deleted.

    Change ur print attribute delete immediately -- if you check delete immediately,it will delete.
    reward Points if it is useful.
    Thanks
    Seshu

  • Spool Deleted  After the Payment Run

    Hello SAP Guru,
    My client is having one issue quite often; the problem is after running the payment run via F110 the printing spool is getting deleted specifically for one company code; however, for rest of the company codes spools don't get deleted automatically. Interestingly, the payment run is run by the same user id so why the spool gets deleted for one company code but not for others?
    I've checked sp01 and there is no spool exist for that company code. 
    Here is the problem: Lets say when they run a payment run for over 200 checks and printer doesn't print out the checks they can't go back to locate the spool for this specific payment run. Due to this problem they have to delete each check individual and reprint via FCH7 which is really a time consuming.
    Could you please let me know why the spool getting deleted or how I can print out the 200 checks again without voiding them recreating new check numbers?
    Please advise,

    Go to SP01 or SP02 select the request and go to properties and you will get a check box - "Do not delete the spool" deselct the same and your issue will get resolve.
    This you have to do before printing the spool.
    Uttam.
    Edited by: Uttam Agarwala on Jul 18, 2011 10:09 AM
    Edited by: Uttam Agarwala on Jul 18, 2011 10:12 AM

  • REQUIRE One spool request for n copies in one print command in smartform

    Hii Friends,
              I created a smartform..I require 5 copies of that form..There is a text which needs to be changed in evry copies...eg Original in first copy
                            Duplicate in second copy
                            Triplicate in third copy....n so on
    So i used a loop n i am calling smartform 5 times....The problem is i need one spool request to be created..
    Note: By default sometimes it create one spool request and sometimes 3 spool request...
    Pls share your inputs ............
    Thanks,
    Regards,
    Sujit.

    hi,
    this is more complicated see below description from help
    regards,darek
    Printing Several Forms in One Print Request
    Use
    You want to bundle several forms into one print job.
    Print Request vs. Spool Request
    SAP Smart Forms allows you to bundle several forms to form one output unit. This output unit is called a print request. A print request is different from a spool request:
    Whether a new spool job is created in the spool depends on the settings in the spool dialog.
    Whether a new print request starts depends on the standard parameters of the generated function module you set in SAP Smart Forms. For each print request, the spool dialog is called only once. If you suppress the dialog, you can pass parameters for spool processing only at the beginning of the print request.
    This means that a print request gathers several forms before submitting them to spool processing. Thus they cannot be spread over several spool requests. Vice versa however, you can include several print requests into one spool request.
    Procedure
    Use function module SSF_FUNCTION_MODULE_NAME to retrieve the name of the function module generated from the Smart Form (see also: Integrating the Smart Form Into the Application).
    Call the Smart Form for the first time and set the NO_CLOSE parameter of the control structure. This prevents the print request from being closed after accepting the output of the Smart Form and allows you to include all other form output into this print request as well. Leave the NO_OPEN parameter empty.
    Instead of calling the Smart Form for the first time you can also call function module SSF_OPEN .
    If you want to start a new spool request for the print request, set the TDNEWID field of the Output Options in this first call.
    For all other form output of the application program that you want to include into the print request, use a loop to set both the NO_OPEN field and the NO_CLOSE field of the control structure.
    To close the print request, in the call of the last Smart Form set the NO_OPEN parameter and unmark the NO_CLOSE parameter.
    Instead of calling the Smart Form for the last time, you can also call function module SSF_CLOSE .
    Result
    The forms you called in the steps described above are included into one print request. If in the first step you started a new spool request, you can now view its status in the spool request overview (transaction SP01 ).

  • Printing Script without a spool request

    Hi Experts.
    when executing transaction F.62, it is giving a spool request instead of printing the form or generating preview.
    my requirement is that I need to print the script directly after the transaction is executed.

    Hi,
       Go to Txn. NACE... select your Application and click on "Condition Records" button.... Select your Output Types... then choose your condtion.... inside the screen... Please maintain "4" under the column Date/Time... then Select the line.. and click on the "Communication" Button.. here please flag "print Immedieately" and "Release after Output"
    Regards
    GK.

  • MD01 printing immediately - spool request

    Dear,
    after running MD01, automatically scheduling agreement lines are printed. In the details of the spool request the checkbox "Print Immediately" is flagged. How can I avoid this field to be flagged?
    Thnx!

    Check in NACE transaction for the outputtype.Change the output condition record as per your requirement.

Maybe you are looking for