Name of spool request

Hi all,
I have a job with many steps, and every step call the same program with his own parameters via a variant.
So every step makes a spool request.
I have now the following question:
1.How is the normally name of the spool request build
  in table tsp01 ? FOR EXAMPLE RQ0NAME, RQ1NAME and RQ2NAME
2. In wich table can i find the the running jobs of today ?
2.Is it possible to make the name of the spool request dynamic  with ABAP by running the program?
Thanks,
Edited by: Adel Yacoubi on May 22, 2008 11:32 AM

Hi,
1)table TSP01
fiels RQIDENT
2)You can check table TBTCO and field STATUS.
The values are ...
A - Cancelled
F - Completed
P - Scheduled
R - Active
S - Released
Regards
Kiran Sure

Similar Messages

  • Massive change of "User name" of spool request

    HI all,
    someone knows a report that changes "User name" of all spool request of an user to another user?
    Thank you in advance.
    Pasquale

    Hi Pasquale,
    There's none in SAP standard. But maybe the note 158487 - How can one user view the spool requests of other users suits your needs.
    Br,
    Javier

  • Name of the program generating the spool request

    Hi,
    i want to know the name of the program due to which a particular
    spool request has been generated
    thanks

    Hi Anirudh,
    Is this what you are looking for:
    Re: Finding the Background job name from Spool request number
    Regards,
    Swarna Munukoti

  • Spool request generated twice

    Dear all,
    I'm facing a very strange behavior while printing sales order confirmation from va01
    in SAP ECC5.0.
    I've got access sequences and condition records in order to print out immediately the form at saving, based on sales org/doc type.
    Among 3 different doc type, only one is wrongly output twice when saving, without any explanations : no messages number set up in communication no TDCOPIES , output type set up ok and so on...
    I really check around the whole things to find out a potential reason of this but without success.
    Other doc type call same smartforms and print program but correctly issue only one output.
    Where else could I look on to?
    Please advice.
    Regards.

    i know the table for spool request :  TSP01
    But how should i link it to background job name ?
    i want the link between background job name and spool request generated by it......
    TBTCPV is the view but it stores only one spool request.....rather than multiple spoolreq generated by background job..

  • Possible to change the default spool request title ?

    Hello,
    I'm SAP Basis guy, I've been asked by our functional team if it would be possible to change the default spool request title.
    Our endusers have access to transaction SP01, where every morning, they can see the spools request that have been generated during the execution of night batches.
    Currently, the default spool name is displayed :
    Title or name of spool request LIST1S LOCL ZREPORTSUFFIX (in transactions sm37 and sp01)
    Is it possible to change the default name of this spool request with some abap coding ?
    Thank you.

    hi,
    goto transaction SPAD and change the default values as you require but i doubt whether you would be able to change the spool title after the job has been triggered i think it is nt possible
    but for further requests you can change it from SPAD
    reard if helpful
    vivekanand

  • WHICH TABLE STORES SPOOL REQUEST GENERATED BY BACKGROUND JOB ?

    Background job is generating multiple request.
    i am not able to find the table which stores all the spool request for a particular background job.

    i know the table for spool request :  TSP01
    But how should i link it to background job name ?
    i want the link between background job name and spool request generated by it......
    TBTCPV is the view but it stores only one spool request.....rather than multiple spoolreq generated by background job..

  • How to print the spool request with a given file name.

    Dear Experts;
    I used FM RSPO_OUTPUT_SPOOL_REQUEST to print spool request. And the device type is a local pdf printer. By default, the download file name will be the spool id. How can I change the download file name? Thanks!
    Convert 'CutePrinter' to qualify the format.
      CALL FUNCTION 'CONVERSION_EXIT_SPDEV_INPUT'
        EXPORTING
          input  = 'CutePrinter'
        IMPORTING
          output = lv_device.
    Downloading as pdf by printer
      CALL FUNCTION 'RSPO_OUTPUT_SPOOL_REQUEST'
        EXPORTING
          device                         = lv_device
          spool_request_id               = pa_spool
       EXCEPTIONS
         archive_dest_invalid           = 1
         archive_dest_not_found         = 2
         archive_dest_no_right          = 3
         cannot_archive                 = 4
         change_archdest_no_right       = 5
         change_copies_no_right         = 6
         change_dest_no_right           = 7
         change_devtype_no_right        = 8
         change_prio_no_right           = 9
         change_telenum_no_right        = 10
         change_title_no_right          = 11
         dest_invalid                   = 12
         dest_not_found                 = 13
         dest_no_right                  = 14
         internal_problem               = 15
         invalid_fax_attribute          = 16
         invalid_parameters             = 17
         non_owner_no_right             = 18
         no_layout                      = 19
         no_spool_request               = 20
         out_again_no_right             = 21
         spooler_problem                = 22
         OTHERS                         = 23

    SELECT SINGLE * FROM tsp01 into rq WHERE rqident = p_spool  .
    *   To get attributes of spool request
    CALL FUNCTION 'RSPO_GET_ATTRIBUTES_SPOOLJOB'
        EXPORTING
          rqident     = p_spool             "Spool Request Number
        IMPORTING
          rq          = rq                                 "Consists the Spool Document Type Details
        TABLES
          attributes = dummy
        EXCEPTIONS
          no_such_job = 1
          OTHERS      = 2.
      IF sy-subrc <> 0.
      ENDIF.
    *Convert spool request into PDF, dependent on document type
    IF rq-rqdoctype = 'OTF' OR rq-rqdoctype = 'SMART'.    "Doc Type is of Sap Script or Smart form
        CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
          EXPORTING
            src_spoolid              = p_spool               "Spool Request Number
            no_dialog                = 'X'
            pdf_destination          = 'X'
            no_background            = 'X'
          IMPORTING
            pdf_bytecount            = bin_size
            bin_file                 = pdf_xstring                  "This fm will convert the spool data into
         TABLES
            pdf                      = it_pdf   .                                                                       "PDF Format in this importing string
      ELSEIF rq-rqdoctype = 'LIST'.                 "Doc Type of List
    * Convert spool to PDF
        CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
          EXPORTING
            src_spoolid              = p_spool               "Spool Request Number
            no_dialog                = ' '
            dst_device               = 'LOCL'
            pdf_destination          = 'X'
            no_background            = 'X'
          IMPORTING
            pdf_bytecount            = bin_size
            bin_file                 = pdf_xstring                     "This fm will convert the spool data into
                                                                                  "PDF Format in this importing string
          TABLES
            pdf                      = it_pdf.
        ENDIF.
    *      Downloading file to p_file loation in PDF foramt
          CALL FUNCTION 'GUI_DOWNLOAD'
            EXPORTING
              bin_filesize            = bin_size
              filename                = w_filename     "Custom File name
              filetype                = 'BIN'
            TABLES
              data_tab                = it_pdf
    Prabhudas

  • Badi in printing - changing Spool request name

    Hello everyone!
    I'd like to dynamically change some of printer (printining) attributes, exactly I mean Spool request name (suffix2). I tried BADI definition EFG_PRINTPARAMS, but it looks it's not a proper one. Have maybe anyone some idea how to do that.
    Regards,
    Mariusz

    Hi Mariusz,
    Take a look at Function modules GET_PRINT_PARAMETERS and SET_PRINT_PARAMETERS.
    Mainly the structure PRI_PARAMS are to be used to collect and change printer and spool details.
    Regards,
    Rob.

  • Write the Error log from background Job to the Spool request

    Hi ,
    I have a situation where in i need to capture the error log of a Z program which runs as a background job and write that log into the spool request. My Z program calls runs RSEINB00 program using the SUBMIT statement. When this Job fails the error log can be seen in SM37. But i need this error log to be sent in to a spool.
    I can read the error log using the BP_JOBLOG_READ FM and can also create a spool using the RSPO_SPOOL_OPEN FM.
    The problem is, when the Submit statement executes, due to internal valdation in the RSEINB00 program the program terminates. Due to this it is not able to perform the SY-SUBRC Check and thus doesn't read the log.
    Can anybody suggest me how to overcome this problem. I am attaching the code for your refernece.
    SUBMIT RSEINB00
           USING SELECTION-SET 'TEST2'
                           TO SAP-SPOOL
                           LIST NAME 'LOCL'
                           IMMEDIATELY space
                           KEEP IN SPOOL 'X'
           AND RETURN.
    <b>If sy-subrc <> 0.</b>           
                 CALL FUNCTION 'BP_JOBLOG_READ'
                  EXPORTING
                    CLIENT                      = SY-MANDT
                    JOBCOUNT                    = i_tbtco-jobcount
                    JOBLOG                      = i_tbtco-joblog
                    JOBNAME                     = i_tbtco-jobname
                   TABLES
                     JOBLOGTBL                   = l_joblog
                 IF SY-SUBRC <> 0.
                 else.
                    message i002 with l_joblog-msgv1.
                 ENDIF.
    <b>
    ENDIF.</b>
    Rgds,
    Kewal
    P.S. : any other approach to solve this problem will be appreciated too and the points will be rewarded suitably.

    If I select a job in SM37 and I click on "spool" I get a list with separate spool entries for each of the steps, e. g.
    Programmname/Kommand   Programmtyp   Spoolliste
    Z_MM_STAT_UPDATE_WERK  ABAP             1707445
    ZSLEEP                 Ext. Kommando
    Z_MM_STAT_UPDATE_WERK  ABAP             1707459
    ZSLEEP                 Ext. Kommando
    Z_MM_STAT_UPDATE_MARA  ABAP             1721423
    ZSLEEP                 Ext. Kommando
    Z_MM_STAT_UPDATE_WERK  ABAP             1721437
    Z_MM_STAT_UPDATE_MARA  ABAP             1721446
    Z_MM_STAT_UPDATE_WERK  ABAP             1721447
    Z_MM_STAT_UPDATE_VKORG ABAP             1721471
    ZSLEEP                 Ext. Kommando
    Z_MM_STAT_UPDATE_VKORG ABAP             1721521
    ZSLEEP                 Ext. Kommando
    Z_MM_STAT_UPDATE_VKORG ABAP             1721816
    It's in German but I'm sure you get the idea. For each Z_MM_STAT_UPDATE and variant I have a separate spool list that I can display.
    Markus

  • Simple Request - How Do I Print a Spool Request in 3.1i?

    Here is the scenario:
        I have created an FI Misc Credit Memo for a customer who wants a hard copy of the document. Using transaction code FB12, I generate a correspondence. Then using transaction code F.64, I attempt to print the document. This generates a spool request with a number like 86,007.
    From there I go to system>services>output control which takes me to the spool request screen. From there, I am missing the next step.
    This screen has fields for:
    Spool request number (attempted number given when spool request was generated - 86,007, field only fits 5 characters so comma has been excluded)
    Spool request name ( I think this is my problem as I have no idea where to find this)
    User name (field is populated)
    From date  (field is populated)
    Client  (field is populated)
    Output device (have entered desired printer name)
    Format (usually self-populates once a successful print request is entered)
    Title (unnecessary field I believe)
    Recipient (unnecessary field)
    Department (unnecessary field)
    No one on our staff has been able to help me with this issue so I've turned to the community. I am an end user (Tax Analyst) who possesses little technical knowledge. My apologies. Thank you in advance for any help given!

    Hello,
    remove values from all the fields in the selection screen and enter only your spool number. The Execute wiht 'F8' and if the spool request is found, with the "printer" push-button you can print it.
    Best regards,
    Andrea

  • Converting spool request into multiple pdf formated documents

    Hi Guys,
                 I am designing a report with several pages of output and running it in background.
    Is there a possibility to convert each page into an separate pdf format document ?
    If I use ALV report as output, if its more than page, do I face any issue with pdf conversion.
    Thanks

    Check the Following code, This might be helpful:
    form rstxpdft4 using filename.
    * Read spool job contents (OTF or ABAP list) and convert
    * to PDF, download PDF
      data: download  value 'X'.
      data: lv_filename like rlgrap-filename.
      lv_filename = filename.
      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.
      select single * from tsp01 where rqident = gt_rq-rqident.
      if sy-subrc <> 0.
        write: / 'Spool request does not exist', gt_rq-rqident
                color col_negative.
        exit.
      endif.
      client = tsp01-rqclient.
      name   = tsp01-rqo1name.
      call function 'RSTS_GET_ATTRIBUTES'
           exporting
                authority     = 'SP01'
                client        = client
                name          = name
                part          = 1
           importing
                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              = gt_rq-rqident
                  no_dialog                = ' '
             importing
                  pdf_bytecount            = numbytes
                  pdf_spoolid              = pdfspoolid
                  btc_jobname              = jobname
                  btc_jobcount             = jobcount
             tables
                  pdf                      = pdf  .
      else.
        call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
             exporting
                  src_spoolid              = gt_rq-rqident
                  no_dialog                = ' '
             importing
                  pdf_bytecount            = numbytes
                  pdf_spoolid              = pdfspoolid
                  btc_jobname              = jobname
                  btc_jobcount             = jobcount
             tables
                  pdf                      = pdf
    *************** download PDF file ***********
    v_filename = lv_filename.
    *  call function 'WS_DOWNLOAD'
    *       exporting
    *            bin_filesize            = numbytes
    *            filename                = lv_filename
    *            filetype                = 'BIN'
    *       tables
    *            data_tab                = pdf
    *       exceptions
    *            file_open_error         = 1
    *            file_write_error        = 2
    *            invalid_filesize        = 3
    *            invalid_type            = 4
    *            no_batch                = 5
    *            unknown_error           = 6
    *            invalid_table_width     = 7
    *            gui_refuse_filetransfer = 8
    *            customer_error          = 9
    *            others                  = 10.
    *  if sy-subrc <> 0.
    ** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    **         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *  else.
    *    gv_count = gv_count + 1.
    *  endif.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        BIN_FILESIZE                    = numbytes
        FILENAME                        = v_filename
        FILETYPE                        = 'BIN'
    *   APPEND                          = ' '
    *   WRITE_FIELD_SEPARATOR           = ' '
    *   HEADER                          = '00'
    *   TRUNC_TRAILING_BLANKS           = ' '
    *   WRITE_LF                        = 'X'
    *   COL_SELECT                      = ' '
    *   COL_SELECT_MASK                 = ' '
    *   DAT_MODE                        = ' '
    *   CONFIRM_OVERWRITE               = ' '
    *   NO_AUTH_CHECK                   = ' '
    *   CODEPAGE                        = ' '
    *   IGNORE_CERR                     = ABAP_TRUE
    *   REPLACEMENT                     = '#'
    *   WRITE_BOM                       = ' '
    *   TRUNC_TRAILING_BLANKS_EOL       = 'X'
    *   WK1_N_FORMAT                    = ' '
    *   WK1_N_SIZE                      = ' '
    *   WK1_T_FORMAT                    = ' '
    *   WK1_T_SIZE                      = ' '
    *   WRITE_LF_AFTER_LAST_LINE        = ABAP_TRUE
    *   SHOW_TRANSFER_STATUS            = ABAP_TRUE
    * IMPORTING
    *   FILELENGTH                      =
      TABLES
        DATA_TAB                        = pdf .
    *   FIELDNAMES                      =
    Thanks.

  • Spool requests are being sent the the B9 printer queue(RSNAST00).

    Hi gurus,
    has anyone found a fix for this issue? i'm currently experiencing the same issue and would like to know how i can fix this..
    Spool requests are being sent the the B9 printer queue. Most spool requests are for one page, when there are spool requests for multiple pages these spool requests take longer to create, in the meantime, other spool requests that are single pages are going to the printer queue. This creates and "out-of-vendor-order" issue during printing.
    The out of vendor order sequencing creates a significant level of work effort for the business users to resort the printed copies in order to prepare the documents for mailing. A change is required to eliminate this manual effort.
    Development has indicated an enhancement could be made to the RSNAST00 program where only those print jobs for application "MR" with transmission "1" (for print) would be gathered in groups of "X" number of documents to create one spool, prior to creating the spool, a check would be made to see if the next document was for the same vendor, if so the next document/s would be included in the same spool, when a new vendor was found, a new spool would be created.
    To temporarily fix the issue the jobs have been placed on "no execute" and the support team is identifing the chargebacks and RTV created during the week, manually running the RSNAST00 program in groups of 500 - 800 documents, ensuring all doucments for a vendor a sent in the same spool request.

    Post Author: Stephen@Azzu
    CA Forum: General
    Nobody know the answer to this one? Stephen@Azzu:Here's a good one...I'm using Crysal Reports XI (fully service packed) and the reports I have created are being used in a VB.Net application. I have no problems whatsoever in printing the reports, everything is fine. However, when the report is sent to the printer, the printer queue displays 'document' as the, err, document name. I'd like it to say something more relevant, such as the document number the user selected.So I've tried setting the ReportDocument.Name but wait, it's read only!? How about the summary info? No change. Filename? No change either. I've browsed the internet, searched the knowledge base and found nothing. So my question is this...How do I get the printer queue to display an appropriate name for my document?Stephen

  • Creating Spool request

    Hi friends,
    as per the old message I am trying to create a spool request which further will be downloaded to PDF format. I am facing a problem, as per message  when I try to do write in worte_perform I am receving ABAP dumps with Illegal page number
    anyidea why is it so .
    Thanks
    Lakhbir
    data: loc_dest like pri_params-pdest .
      clear : wf_listname , loc_dest , wf_listtext .
      move: 'List name' to   wf_listname .
      move: 'List header text' to   wf_listtext .
    select single spld into usr01-spld from usr01 where bname eq sy-uname .
      if sy-subrc eq 0 .
        move: usr01-spld to loc_dest .
      endif .
      call function 'GET_PRINT_PARAMETERS'
           exporting
                destination    = loc_dest
                copies         = wf_copies
                list_name      = wf_listname
                list_text      = wf_listtext
                immediately    = ' '
                release        = ' '
                new_list_id    = 'X'
                expiration     = wf_days
                line_size      = 200
                line_count     = 65
                layout         = 'X_65_200'
                sap_cover_page = 'X'
                receiver       = 'SAP*'
                department     = ''
                no_dialog      = 'X'
           importing
                out_parameters = wf_params
                valid          = wf_valid.
      if wf_valid <> space.
        new-page print on parameters wf_params no dialog.
        perform write_summary .
        new-page print off.
      endif .
    within the write_summary do a normal write operation.
    loop at <itab> .
    write:/
    endloop .

    We encountered a similar problem on 4.6C using a custom BAPI to save invoices to PDF for an internal web app.  We used a BDC/call transaction to access the output function from there.  This was only supposed to be a temporary workaround but has been working and we probably won't revisit until our next upgrade.  Hopefully this idea will help on your version, if so I am new here and need points!
    *Generate Transaction
      PERFORM dynpro USING :
                     'X' 'SAPMV60A'   '0101'   ,
                     ' ' 'VBRK-VBELN' v_invoice ,
                     ' ' 'BDC_OKCODE' '=DRCK'   .
      PERFORM dynpro USING :
                     'X' 'SAPLVMSG'   '0110'   ,
                     ' ' 'DNAST-KSCHL' v_kschl,
                     ' ' 'BDC_OKCODE' '=STAR'   .
      SELECT * UP TO 1 ROWS
        FROM nast WHERE objky = v_invoice
                  AND   vstat = '1'
                  AND   kappl = 'V3'
                  AND   kschl = v_kschl
                  AND   aktiv = space.
      ENDSELECT.
      IF sy-subrc = 0.
        PERFORM dynpro USING :
                       'X' 'SAPLSPO1'   '0300'   ,
                       ' ' 'BDC_OKCODE' '=YES'   .
      ENDIF.
      PERFORM dynpro USING :
                     'X' 'SAPLVMSG'   '0100'   ,
                     ' ' 'NAST-LDEST' 'TD06',
                     ' ' 'NAST-DIMME'  space,
                     ' ' 'NAST-TDOCOVER' space,
                     ' ' 'NAST-TDRECEIVER' space,
                     ' ' 'NAST-DELET' 'X',
                     ' ' 'BDC_OKCODE' '=STAR'   .
      CALL TRANSACTION   'VF03'
           USING         i_bdcdata
           MODE          v_mode
           UPDATE        'S'
           MESSAGES INTO i_bdcmsgcoll.

  • How to populate the page number to a Spool request

    Hi all,
    I use the function RSPO_OPEN_SPOOLREQUEST
    RSPO_OPEN_SPOOLREQUEST
    to create a spool request, but this spool show
    as 0 page, but this can be printed normal. but failed in convert to PDF. Anybody know how to solve this?
    Many thanks.

    Hi,
    Try this make a note of the spool request number and goto SE38 and give the program name as RSTXPDFT4 and execute(F8) will ask you for spool number give the spool number and execute. will ask you to give the location give and save.
    Check whether the form is generated into PDF or not if it is generated then there might be problem in your code.
    Hope my answer helps you.
    Cheers!!

  • F.27, Duplicate Spool Request

    Hi All,
    While running the program - Periodic Account Statement (t-code F.27) u2013 in background(Program > Execute in background)  2 spool requests are generated.
    Why 2 spool requests are generated ? Only 1 spool request should get generated.
    Correspondence Type used is a customized Correspondence Type(Z).
    Unwanted Spool generated is of type u2018ABAP Listu2019 and title generated is u2018F140 LOCL 20100927KORKu2019.
    Because of the 2 spools 2 hard prints are printed.     
    Please suggest as to what could be the cause of 2 spools ?
    Thanks
    Dev

    Hi,
    As info says:
    Output
        If correspondences are printed, a log with the spool requests created by
        the print programs is output for each program run. If you do not specify
        in the program on which printer the log is to be printed, the program
        may take the printer specified in the user master of the user who
        started the program or the printer specified when the job is scheduled.
        If the program is carried out online, the log is displayed on the
        screen. If the program is planned as a job, the spool request name of
        the log is made up of the identifier F140, the printer destination, the
        date of creation and the program ID KORK.
        The correspondences are printed by means of the corresponding print
        programs. If printing is possible on the basis of the data and the
        configuration, a spool request is created for each correspondence type
        and company code. Regardless of whether printing actually takes place,
        the processed correspondence requests are marked as completed by means
        of a print date, so that reorganization can be carried out.
    ie: you have a SPOOL with the log, and you have other SPOOL with the printable document that you must send to customers.
    I hope this helps you
    Regards,
    Eduardo

Maybe you are looking for

  • Not working imported video ProRes422

    Not working imported video ProRes422. When I play clip in preview, program is stopped long time. Viewing window is empty. I can close program only cmd+opt+esc. What reason?

  • Calendar crashes when importing

    When attempting to import an ICS file, Calendar crashes.  I was unable to import with no issues, not sure what happened.  Here are the Problem Details and System Config... Process:         Calendar [30342] Path:            /Applications/Calendar.app/

  • Image Slide In Moves Entire Page Contents

    Hello, I'm having an issue with a lightbulb image I want to make slide down on page load (using Spry effect "slide"). After it slides in, I want to have it swap to a "lit" lightbulb image when moused over. I currently have the image swap working corr

  • Loop stop when pressing the minimize button??

    Hi, I've made data-acquisition VI, when i run it and press "for example" the minimize button of my VI it stops untill i release the minimize button, is there anything to avoid this?? So that when i press the minimize button that my vi just go's on wi

  • Please help wit country

    how to change your country on iphone ? please help mee