Generate spool request from an invoice

Hi,
I'd like to know is there any function module to generate an spool request from an invoice document generate previously by VF01 (VF04) SAP transaction code.
I'd like to generate on demand a spool request over an invoice previously generated by SAP
Anyone knows if it is possible?
Thanks

The billing process included the spool generation runs perfectly by stantard SAP funciontality.
But I'd like to generate a spool request whenever I want for an invoice previously generated and printed.
You know that for space requirements the spool request are deleted periodically, but I want to generate a spool request for an invoice, which spool request was generated and deleted. This behaviouir is reclaimed for a system process so, it's not possible to regenerated the spool request using the funcionality incluided in SAP by VF02, VF31 transactions code.
I need a function module or something like that, so import and invoice document number and export and spool request.
Thanks in advance,

Similar Messages

  • Is there any FM to generate spool request for error log of a background job

    Hi,
        I am going to create a program to create deliveries and do PGI. This program will be assigned to periodic background job.Now whatever  errors are generated in program i have to send the error log to spool request.Is there any FM for generating spool request with this error log  or how can this be done? Kindly provide sample code if possible.
    Thanks.
    Nimish Dongare.

    Hi Nimish,
    How are you doing, This is Shreekant working as ABAP developer, I sow your post in sdn forum, I have a similar requirement like I am changing the delivery taking some data from a flat file which is coming from other system and do PGI. If any error occurs during this process I need to capture it and present it as a report or create log file.. whichever is easier.
    Please can u help me how did u achieved this functionality for your requirement?.. pls. can u share some details.
    If u don mind, can u give me ur email id to communicate.
    Thanks,
    Shreekant

  • Generating spool request

    Hi Experts,
    My rquirement is to generate spool request without getting the output displayed  on the screen.
    <fs_outtab> is the dynamic internal table containing data. It will have several fields.
    I want to send this data to spool so that it can be seen when the background job runs.
    But I do not want the output to be displayed on the screen.
    << Removed >> Please don't forward links as it cannot be opened in my system.
    Thanks.
    Edited by: Rob Burbank on Jun 25, 2010 11:17 AM

    See try to make an alv grid diaplay program for the internal table.( like this)
    form fill_catalogue .
      wa_fieldcatalog-fieldname   = 'WERKS'.
      wa_fieldcatalog-seltext_m   = 'Plant'.
      wa_fieldcatalog-tabname     = 'IT_FINAL'.
    wa_fieldcatalog-emphasize   = 'X'.
      append wa_fieldcatalog to fieldcatalog.
      clear  wa_fieldcatalog.
      wa_fieldcatalog-fieldname   = 'LGORT'.
      wa_fieldcatalog-seltext_m   = 'St.Loc'.
      wa_fieldcatalog-tabname     = 'IT_FINAL'.
    wa_fieldcatalog-emphasize   = 'X'.
      append wa_fieldcatalog to fieldcatalog.
      clear  wa_fieldcatalog.
      wa_fieldcatalog-fieldname   = 'SHKZG'.
      wa_fieldcatalog-seltext_m   = 'Iss/Rec'.
      wa_fieldcatalog-tabname     = 'IT_FINAL'.
    wa_fieldcatalog-emphasize   = 'X'.
      append wa_fieldcatalog to fieldcatalog.
      clear  wa_fieldcatalog.
      wa_fieldcatalog-fieldname   = 'BUDAT'.
      wa_fieldcatalog-seltext_m   = 'Posting Date'.
      wa_fieldcatalog-tabname     = 'IT_FINAL'.
    wa_fieldcatalog-emphasize   = 'X'.
      append wa_fieldcatalog to fieldcatalog.
      clear  wa_fieldcatalog.
      wa_fieldcatalog-fieldname   = 'CHALAN'.
      wa_fieldcatalog-seltext_m   = 'Document No'.
      wa_fieldcatalog-tabname     = 'IT_FINAL'.
    wa_fieldcatalog-emphasize   = 'X'.
      append wa_fieldcatalog to fieldcatalog.
      clear  wa_fieldcatalog.
      wa_fieldcatalog-fieldname   = 'BOLNR'.
      wa_fieldcatalog-seltext_m   = 'Bill of Lading'.
      wa_fieldcatalog-tabname     = 'IT_FINAL'.
    wa_fieldcatalog-emphasize   = 'X'.
      append wa_fieldcatalog to fieldcatalog.
      clear  wa_fieldcatalog.
      wa_fieldcatalog-fieldname   = 'BRGEW'.
      wa_fieldcatalog-seltext_m   = 'Gross Wt.'.
      wa_fieldcatalog-tabname     = 'IT_FINAL'.
    wa_fieldcatalog-emphasize   = 'X'.
      append wa_fieldcatalog to fieldcatalog.
      clear  wa_fieldcatalog.
      wa_fieldcatalog-fieldname   = 'NTGEW_CH'.
      wa_fieldcatalog-seltext_m   = 'Net Chargeable Wt.'.
      wa_fieldcatalog-tabname     = 'IT_FINAL'.
    wa_fieldcatalog-emphasize   = 'X'.
      append wa_fieldcatalog to fieldcatalog.
      clear  wa_fieldcatalog.
      wa_fieldcatalog-fieldname   = 'SHIP_PARTY'.
      wa_fieldcatalog-seltext_m   = 'Customer/Vendor/Plant'.
      wa_fieldcatalog-tabname     = 'IT_FINAL'.
    wa_fieldcatalog-emphasize   = 'X'.
      append wa_fieldcatalog to fieldcatalog.
      clear  wa_fieldcatalog.
      wa_fieldcatalog-fieldname   = 'SAL_GRP'.
      wa_fieldcatalog-seltext_m   = 'Sales Group'.
      wa_fieldcatalog-tabname     = 'IT_FINAL'.
    wa_fieldcatalog-emphasize   = 'X'.
      append wa_fieldcatalog to fieldcatalog.
      clear  wa_fieldcatalog.
    endform.                    "fill_catalogue
    *&      Form  display
          text
    form display .
      call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
          i_callback_program = sy-repid
          it_fieldcat        = fieldcatalog[]
        tables
          t_outtab           = it_final
        exceptions
          program_error      = 1
          others             = 2.
    Then you must be accepting some parameters fromthe screen. just take the values from the selection screen
    press F9, and proceed as your requirement is.
    endform.                    "display

  • Generate spool request and PDF

    Hello Friends,
    I have the below requirement in Scripts.
    I need to generate spool request and also download the form as pdf simultaneously.
    I can able to generate spool request and able to download as PDF separately, but I want to do both in a single open_form is it possible?
    Regards.
    Krishna.

    Copy and Paste following code in a Z program type executable:
    REPORT ZRSTXPDFT4 LINE-SIZE 80.
    Read spool job contents (OTF or ABAP list) and convert
    to PDF, download PDF
    B20K8A0IKH replace WS_DOWNLOAD with GUI_DOWNLOAD
    SELECTION-SCREEN BEGIN OF BLOCK B WITH FRAME TITLE TEXT-015.
    SELECTION-SCREEN SKIP.
    PARAMETERS:
      SPOOLNO LIKE TSP01-RQIDENT.
    SELECTION-SCREEN SKIP.
    PARAMETERS :  DOWNLOAD AS CHECKBOX DEFAULT 'X',
      P_FILE LIKE RLGRAP-FILENAME DEFAULT 'C:\temp\file.pdf' NO-DISPLAY."#EC NOTEXT
    SELECTION-SCREEN END OF BLOCK B.
    DATA OTF LIKE ITCOO OCCURS 100 WITH HEADER LINE.
    DATA CANCEL.
    DATA PDF LIKE TLINE OCCURS 100 WITH HEADER LINE.
    DATA DOCTAB LIKE DOCS OCCURS 1 WITH HEADER LINE.
    DATA: NUMBYTES TYPE I,
          ARC_IDX LIKE TOA_DARA,
          PDFSPOOLID LIKE TSP01-RQIDENT,
          JOBNAME LIKE TBTCJOB-JOBNAME,
          JOBCOUNT LIKE TBTCJOB-JOBCOUNT,
          IS_OTF.
    DATA: CLIENT LIKE TST01-DCLIENT,
          NAME LIKE TST01-DNAME,
          OBJTYPE LIKE RSTSTYPE-TYPE,
          TYPE LIKE RSTSTYPE-TYPE.
    TABLES: TSP01.
    DATA : RETFIELD TYPE DFIES-FIELDNAME.
    DATA : SPOOL TYPE HELP_INFO-DYNPROFLD.
    DATA : BEGIN OF ITAB OCCURS 0,
            SPOOL TYPE TSP01-RQIDENT,
           END OF ITAB.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR SPOOLNO.
      RETFIELD = SPOOLNO.
      SPOOL = 'SPOOLNO'.
      SELECT RQIDENT FROM TSP01 INTO TABLE ITAB."#EC CI_NOWHERE
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
      DDIC_STRUCTURE         = ' '
          RETFIELD               = RETFIELD
      PVALKEY                = ' '
       DYNPPROG               = SY-REPID
       DYNPNR                 = SY-DYNNR
       DYNPROFIELD            = SPOOL
      STEPL                  = 0
      WINDOW_TITLE           =
      VALUE                  = ' '
       VALUE_ORG              = 'S'
      MULTIPLE_CHOICE        = ' '
      DISPLAY                = ' '
       CALLBACK_PROGRAM       = SY-CPROG
      CALLBACK_FORM          = ' '
      MARK_TAB               =
    IMPORTING
      USER_RESET             =
        TABLES
          VALUE_TAB              = ITAB[]
      FIELD_TAB              =
      RETURN_TAB             =
      DYNPFLD_MAPPING        =
    EXCEPTIONS
       PARAMETER_ERROR        = 1
       NO_VALUES_FOUND        = 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.
    START-OF-SELECTION.
      SELECT SINGLE * FROM TSP01 WHERE RQIDENT = SPOOLNO.
      IF SY-SUBRC <> 0.
        PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
         'Spoolauftrag existiert nicht'(003).
        EXIT.
      ENDIF.
      CLIENT = TSP01-RQCLIENT.
      NAME   = TSP01-RQO1NAME.
      CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
             EXPORTING
                  AUTHORITY     = 'SP01'
                  CLIENT        = CLIENT
                  NAME          = NAME
                  PART          = 1
             IMPORTING
              CHARCO        =
              CREATER       =
              CREDATE       =
              DELDATE       =
              MAX_CREDATE   =
              MAX_DELDATE   =
              NON_UNIQ      =
              NOOF_PARTS    =
              RECTYP        =
              SIZE          =
              STOTYP        =
                  TYPE          = TYPE
                  OBJTYPE       = OBJTYPE
             EXCEPTIONS
                  FB_ERROR      = 1
                  FB_RSTS_OTHER = 2
                  NO_OBJECT     = 3
                  NO_PERMISSION = 4.
      IF OBJTYPE(3) = 'OTF'.
        IS_OTF = 'X'.
      ELSE.
        IS_OTF = SPACE.
      ENDIF.
      IF IS_OTF = 'X'.
        CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
            EXPORTING
              SRC_SPOOLID                    = SPOOLNO
              NO_DIALOG                      = ' '
          DST_DEVICE                     =
          PDF_DESTINATION                =
            IMPORTING
              PDF_BYTECOUNT                  = NUMBYTES
              PDF_SPOOLID                    = PDFSPOOLID
          OTF_PAGECOUNT                  =
              BTC_JOBNAME                    = JOBNAME
              BTC_JOBCOUNT                   = JOBCOUNT
            TABLES
              PDF                            = 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.
        CASE SY-SUBRC.
          WHEN 0.
            PERFORM BD_TEXTBOX_MSG(RSTXPDFT) USING 80
             'Funktion CONVERT_OTFSPOOLJOB_2_PDF erfolgreich'(001).
          WHEN 1.
            PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
             'Kein OTF- und kein ABAP-Spoolauftrag'(002).
            EXIT.
          WHEN 2.
            PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
             'Spoolauftrag existiert nicht'(003).
            EXIT.
          WHEN 3.
            PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
             'Keine Berechtigung zum Lesen Spoolauftrag'(004).
            EXIT.
          WHEN OTHERS.
            PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
             'Fehler bei Funktion CONVERT_OTFSPOOLJOB_2_PDF'(005).
            EXIT.
        ENDCASE.
      ELSE.
        CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
            EXPORTING
              SRC_SPOOLID                    = SPOOLNO
              NO_DIALOG                      = ' '
          DST_DEVICE                     =
          PDF_DESTINATION                =
            IMPORTING
              PDF_BYTECOUNT                  = NUMBYTES
              PDF_SPOOLID                    = PDFSPOOLID
          LIST_PAGECOUNT                 =
              BTC_JOBNAME                    = JOBNAME
              BTC_JOBCOUNT                   = JOBCOUNT
            TABLES
              PDF                            = 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.
        CASE SY-SUBRC.
          WHEN 0.
            PERFORM BD_TEXTBOX_MSG(RSTXPDFT) USING 80
             'Funktion CONVERT_ABAPSPOOLJOB_2_PDF erfolgreich'(006).
          WHEN 1.
            PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
             'Kein OTF- und kein ABAP-Spoolauftrag'(002).
            EXIT.
          WHEN 2.
            PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
             'Spoolauftrag existiert nicht'(003).
            EXIT.
          WHEN 3.
            PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
             'Keine Berechtigung zum Lesen Spoolauftrag'(004).
            EXIT.
          WHEN OTHERS.
            PERFORM BD_TEXTBOX_ERR(RSTXPDFT) USING 80
             'Fehler bei Funktion CONVERT_ABAPSPOOLJOB_2_PDF'(007).
            EXIT.
        ENDCASE.
      ENDIF.
    download PDF file ***********
      CHECK DOWNLOAD = 'X'.
      IF NOT ( JOBNAME IS INITIAL ).
        PERFORM BD_TEXTBOX_VAR2_MSG(RSTXPDFT) USING 80
         'Konvertierung per Hintergrundjob'(008)
         JOBNAME
         JOBCOUNT.
        EXIT.
      ENDIF.
      PERFORM DOWNLOAD_W_EXT(RSTXPDFT) TABLES PDF
                                       USING P_FILE
                                             '.pdf'
                                             'BIN'
                                             NUMBYTES
                                             CANCEL.
      IF CANCEL = SPACE.
        DATA: S(80).
        S = NUMBYTES. CONDENSE S.
        CONCATENATE S 'Bytes heruntergeladen in Datei'(009)
          INTO S SEPARATED BY SPACE.
        PERFORM BD_TEXTBOX_VAR1_MSG(RSTXPDFT) USING 80
                                          S
                                          P_FILE.
      ENDIF.
    Regards,
    Jeet K Bhatt

  • Long time for generating spool request for smartforms

    Hi,
    I'm have designed a  smartforms for printing a Receipt form. It takes about 1 minute for generating spool request after pressing the PRINT button in PRODUCTION Server only.
    The Code i used is below
    CALL FUNCTION lv_fname
      EXPORTING
          p_belnr                    = p_belnr
          p_bukrs                    = p_bukrs
          p_gjahr                    = p_gjahr
    EXCEPTIONS
       formatting_error           = 1
       internal_error             = 2
       send_error                 = 3
       user_canceled              = 4
       OTHERS                     = 5
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      Please help me out to sort this issue.
    Thanks,
    Ramesh
    Edited by: Rameshkumar Raamasamy on Mar 4, 2012 6:21 AM

    Hi Rameshkumar,
    you may look at the code sections of your smartform: If you have a lot more data in production than you have in development, it is especially important to use a fully specified primary key for any SELECTs.
    You may also ask your basis people to check if any performance warnings have been recorded with database system. This happens quite frequently that growing database tables cause problems when table spaces are not properly assigned or table sizes are not maintained adequately.
    Regards
    Clemens

  • Restrict people to see only spool requests from one group of users

    I would like to restrict people to see only spool requests from one group of users defined somewhere inside role.
    I am playing with S_SPO_ACT authorisation object but with no positive result,
    Please help

    There is a note  Note 119147 - Spool: Authorizations (https://service.sap.com/sap/support/notes/119147)
    Object for "Selection authorization for spool requests" is S_ADMI_FC where "Operation authorization" use S_SPO_ACT
    Regards

  • How To Generate Spool request for a SAP-Script form

    How To Generate Spool request for a SAP-Script form

    Hai   Rahaman,
    After getting the print preview of the SCRIPT.
    Click On  PRINT.
    Buttom of the page one spool request will be generated by system.
    Go to  SP01.
    You Can Find  SPOOL Reqest Number.
    Regards.
    Eshwar.

  • Relation with spool request number and invoice number

    Hi ALL,
    I have developed two function modules the first one generates the Invoice Number for a particular customer.
    Now on passing this Invoice Number to the second function module, I should get the Spool Request Number.
    I have developed the first function module.
    That Spool Request Number would display the invoice of the customer in the PDF format.
    So please help me how to get that Spool request number.
    Thanks and regards
    rama

    Hi,
    in your case when ever invoice created you need to store the data like spool number,invoice number,user name etc..into a <b>ZTable</b>, and then when ever you enter the invoice select the data from the ZTABLE and convert the spool to PDF and show it.
    Regards
    vijay

  • Urgent: Generate spool request no.

    Hi gurus,
    I have to develop a report which has a pop up box for selection criteria based on which the records are displayed. The list has button 'send' which when clicked the output should be converted to an pdf and mailed.I know how to convert the output to pdf and mailing .
    My problem is since the list is dispalyed(report not executed in background) its not generating a spool request no.and therefore i cannot proceed further.How do I generate a spool no??
    Is there anyway in which i create a spool no and then asssign it to that list output??or any alternate method??
    Kindly help.
    Helpful solutions will be rewarded graciously!!!
    Regards,
    Niky.

    Hei,
    this will also work in the same way,
    suppose i_mara have five fields.
    Ex:
    Types: begin of t_mara,
               matnr type matnr,
               meins type meins,
               maktl type maktl,
               ERSDA type ERSDA,
               ername type ername,
          end of t_mara.
    data: i_mara type table of t_mara,
          wa_mara like line of i_mara.
    DATA: v_dest LIKE tsp01-rqdest,
    v_handle LIKE sy-tabix,
    v_spool_id LIKE tsp01-rqident,
    v_rc TYPE c,
    v_errmessage(100) TYPE c,
    v_text(70) TYPE c.
    START-OF-SELECTION.
    SELECT matnr FROM mara INTO TABLE i_mara.
    CALL FUNCTION 'RSPO_OPEN_SPOOLREQUEST'
    EXPORTING
    dest = 'LOCL'
    * LAYOUT =
    * NAME =
    * SUFFIX1 =
    * SUFFIX2 =
    * COPIES =
    * PRIO =
    * IMMEDIATE_PRINT =
    * AUTO_DELETE =
    * TITLELINE =
    * RECEIVER =
    * DIVISION =
    * AUTHORITY =
    * POSNAME =
    * ACTTIME =
    * LIFETIME = '8'
    * APPEND =
    * COVERPAGE =
    * CODEPAGE =
    * DOCTYPE =
    IMPORTING
    handle = v_handle
    spoolid = gd_spool_nr
    rc = v_rc
    errmessage = v_errmessage.
    LOOP AT i_mara into wa_mara.
    CONCATENATE i_mara-matnr i_mara-meins i_mara-maktl
                i_mara-ERSDA i_mara-ERname INTO v_text SEPARATED BY space.
    CALL FUNCTION 'RSPO_WRITE_SPOOLREQUEST'
    EXPORTING
    handle = v_handle
    text = v_text
    * LENGTH =
    * CODEPAGE =
    * TRUNCATE =
    IMPORTING
    rc = v_rc
    errmessage = v_errmessage
    EXCEPTIONS
    handle_not_valid = 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.
    ENDLOOP.
    CALL FUNCTION 'RSPO_CLOSE_SPOOLREQUEST'
    EXPORTING
    handle = v_handle
    IMPORTING
    rc = v_rc
    errmessage = v_errmessage
    EXCEPTIONS
    handle_not_valid = 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.
    CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
    EXPORTING
    src_spoolid = gd_spool_nr
    no_dialog = c_no
    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.

  • Generate Spool request.

    Hi everybody.
    I've got a doubt on spool requests.
    My doubt is the following:
    Does the WRITE order generate any spool request?
    For example, if i have a report and i write down something on the screen output.
    Thanks in advance.

    Write command write lines on output list but it doesn't generate spool. For output one has to give the print command.
    Spool is generally used for printing layouts and output is converted into printable format .
    anya

  • Process Spool Request from RFC

    We are creating an Output in a Delivery with a bapi from a Remote system. The Output is created successfully, but do you have any ideas how to print this output from a remote device?
    Is there a RFC to convert this into PDF? If so, how do we process this.
    I appreciate any help.
    Thanks -

    Hello Brijo
    Maybe this can help you?
    Create Spool Request Number for Smartform?
    Best regards
    Thomas

  • How to know spool requests from other program?

    Hi,
    I have requirement like: one standard program will be scheduled in the background, so corresponding spool requests will generated.
    I need to write a program, which will capture the spool requests of the standard program.
    is there any function module/table available for this requirement? we need to give  spool title, date and time as input parameters to that function module.
    please help me

    Hi,
    try these Function Modules....
    RSPO_IDELETE_SPOOLREQ
    RSPO_IGET_TOC_SPOOLREQ
    RSPO_IMAP_PAGES_SPOOLREQ
    RSPO_ISELECT_SPOOLREQS
    RSPO_RCHANGE_SPOOLREQ_ATTR
    RSPO_RDISPLAY_SPOOLREQ
    RSPO_RDISPLAY_SPOOLREQ_LIST
    RSPO_RID_SPOOLREQ_ATTR
    RSPO_RID_SPOOLREQ_DISP
    RSPO_RID_SPOOLREQ_LIST         List Display for Spool Requests with ID
    RSPO_RISELECT_SPOOLREQS
    RSPO_RLIST_DELETE_SPOOLREQ
    RSPO_RPRINT_SPOOLREQ
    RSPO_RSPOOLREQ_LIST_TO_VIEW
    RSPO_RSPOOLREQ_TO_VIEW
    RSPO_RSTATUS_FOR_SPOOLREQ
    Arunima

  • Spool request from FM  REUSE_ALV_GRID_DISPLAY

    Hi all,
    How to create a spool request for an ALV report by using the FM  "REUSE_ALV_GRID_DISPLAY". is it possible to create the spool request with this FM's parameter IS_PRINT. Please give some hint if it is possible.
    Thanks in advance,
    etienne.

    Hi,
    Please go through the beloe code
    DATA: wa_print TYPE slis_print_alv.
    wa_print-print = 'X'.
    pass  wa_print to Is_print in the exporting paramters list of Function module Reuse_alv_grid_display.
    and then go to tcode SP01.. to check the spool request.. and click on spool request to see the ALV output..
    hope this will help you..
    Regards,
    Kiran

  • How to generate spool request in sap script

    Hi Experts !!
    I had customized RFFCOUS_C -- > Include RFFORI01 for printing check and payment advise.
    Now if we run standard print program, spool will be generated first
    and then we can see the print prieview accordingly.
    But after my customization, after seeing print prieview when am clicking print button , then only spool is getting generated....
    i had checked everything...but not able to solve the issue.
    Please help.
    Regards
    Saurabh goel

    Hi,
    Just use below logic for script
    itcpo-tddest = p_print. " Printer name
    itcpo-tdnewid = 'X'.
    itcpo-tdimmed = 'X'.
    itcpo-tdcopies = '1'.
    call function 'OPEN_FORM'
    exporting
    device = 'PRINTER'
    dialog = ' '
    form = 'ZAUTO_REPLPRINT'
    language = sy-langu
    options = itcpo
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7a5f4061-0a01-0010-c9bc-a4e4cb100438#q-2
    Regards,
    Shiva(reward if helpful).

  • Exclude spool requests from program RSPO0041

    Hi
    We have a request to keep the spools and logs for certain jobs. If we set the Spool Retention period to 'Do not Delete' in the Print Specifications of the job (via SM37) would this mean that these spools will not be deleted when the SAP_REORG_SPOOL  (Program RSPO0041) job is run?
    Thanks

    Hi,
    Welcome to SDN
    Note 64333 - Change default value for spool retention period
    FYI , even though you select DO NOT DELETE  this it will delete the spool if JOB RSPO* runs .
    May refer this inetresting thread
    How to set the spool retention period till 30 days(Printer Properties).
    running RSPO1041 can help , more selection options are available.
    Regards,
    Edited by: Gagan Deep Kaushal on Nov 9, 2010 10:45 PM

Maybe you are looking for