Multiple Spools in background

Hi experts,
When i execute my program in foreground which calls another jobs and in END_OF_SELECTION i call the function module 'COM_SE_SPOOL_DISPLAY' to display the spool in graphical format. When executed in foregorund i can see all the spools and their spool lists one after the another.
But when the same program is scheduled in background only the last spool is available in SM37.
How can i get all the spool lists in background too???
Pls advice.

Hi,
I dont think you can view the graphical format in background. Your background Scheduled log file can hold only text file. I dont think you can get the graphical view in background.
Regards,
Naresh.

Similar Messages

  • Email multiple spools from background job - SM36 using Spool List recipient

    I create a background job using Spool List Recipient to email me the reports. The program that I scheduled to run creates 2 spools. When the spools are sent via email, only the last spool is sent.
    Please advise on how I can get the 2 spools sent via email.

    i would not use the Spool List recipient from Job and use the function RSPO_SPOOLJOB_TO_OFFICE in your Program instead.
    tell me if it helps.
    Regards,
    Laurent

  • How to create the multiple spool requests for a single report.

    Hi gurus,
                     I have one requirement to be completed , i need to send the out put of the report via mail in pdf format. for that what i did was, iam executing report in background and creating spool request and converting it to pdf and sending the file.
    now the problem is, its a customer ledger report, for each customer i need to create a new spool request and send mail to that particular customer, now my dought is how to create multiple spool requests for a single pro and how i need to go about it.
    And one more question is can we create a spool request for a report which is running in online.
    waiting for inputs frm gurus.

    Hello,
    As per my knowledge for creating new spool id you will have to set
    output_options-tdnewid = 'X'.
    and then using
    job_output_info-spoolids
    create a pdf using
    call function 'CONVERT_OTFSPOOLJOB_2_PDF'
    Rachana.

  • Retrieve multiple spool numbers of a job

    Hello All
    My ABAP report program will produce several spool list. I would like to ask that are there any functions that I can retrieve ALL spool numbers of the job?
    This is because I find that I cannot find the relationship between job and ALL its spool number.
    Many thanks
    Sunny

    Hi,
    I had a similar requirement to find all the spools created for a specific printer. Only one spool ID is ever stored against the job step.
    I developed a bespoke program and included this within my background job (which had multiple steps). This finds the upper and lower spools for the current job ID.
    The code to find the spools was as follows:
    form get_spools .
    * Get the current job details
      call function 'GET_JOB_RUNTIME_INFO'
        importing
          jobcount        = gs_btcinfo-jobcount
          jobname         = gs_btcinfo-jobname
          stepcount       = gs_btcinfo-stepcount
        exceptions
          no_runtime_info = 1
          others          = 2.
      check ( sy-subrc eq 0 ).
      write: / 'Job', gs_btcinfo-jobcount, gs_btcinfo-jobname.
    * Get the spools for the current job
      select * into table gt_tbtcp
         from tbtcp
        where jobname   eq gs_btcinfo-jobname
          and jobcount  eq gs_btcinfo-jobcount
          and stepcount <> gs_btcinfo-stepcount
          and listident <> ''
          order by primary key.
      if ( gt_tbtcp is initial ).
        write: / 'No spools to print'.
        exit.
      endif.
    * Find the upper & lower spool ID's
      clear: gv_low, gv_high.
      clear gs_tbtcp.
      read table gt_tbtcp into gs_tbtcp index 1.
      gv_low = gs_tbtcp-listident.
      describe table gt_tbtcp lines sy-tfill.
      clear gs_tbtcp.
      read table gt_tbtcp into gs_tbtcp index sy-tfill.
      gv_high = gs_tbtcp-listident.
      add p_low  to gv_low.
      add p_high to gv_high.
    * Read all the spools within the range
    * This covers job steps that create multiple spools
      select * into table gt_tsp01
        from tsp01
          where rqident ge gv_low
            and rqident le gv_high
            and rqdest  in s_dest
            and rqfinal in s_final.
    endform.                    " get_spools
    Regards,
    Darren

  • Is it possible to have Multiple Spool requests in one batch job overview?

    Hi,
    While running one of my z program in back ground, there are two spools generated (one by write statement and one by OPEN_FORM statement and both the spools are available in SP01 Transaction), but when i see the job overview in transaction SM37, I only see one spool request (that of the last spool request). Can any body in the group please tell me is it possible to see multiple spool requests in the job overview of one Abap program and if yes, how?
    Thank you.
    Abinash

    Hi Jayanthi,
    Thank you for the link. But probably that discussion was also an unsolved one.
    Anyway, does any one in the group think that display of multiple spools per one step job is dependent on client / SAP Server setting? Because as evident from the chain of mails in the link provided by Jayanthi, some people say that they see multiple spool requests for one program in batch mode job overview (SM37)? If yes, can some body tell me the required configuration?

  • How To Send Multiple Spool Lists  from a Single Step in SM37

    We have converted all of our output reports to ALV and now instead of one big spool that contains all the reports generated in a single step we now have multiple spools.  We run the program as a Batch Job in SM37 and have created an entry in the SPOOL LIST RECIPIENT for the job.  The problem is that it only sends one of our lists.  Is there a way to make it send all of the ists?

    You need to write areport program with fm 'RSPO_RETURN_ABAP_SPOOLJOB'  and collect all spools and send it and make this as precedent job after your ALV spool jobs

  • How to merge multiple spools in one PDF

    hi all,
    i have a requirement to merge multiple spools into one PDF.
    I have the code to merge 2 spools into one PDF but acc to my requirement this number can be any( say 100). hence i need  help to merge N number of spools in one PDF.
    Regards
    geeta gupta

    Take the data of all spools into a internal table then create a new spool with this data then downlad this data into pdf format.
    By this method you can download any number of spools into a single pdf file. Please see the below code
    Fetch spool number
    Select rqident from tsp01 into table g_t_data
    where...............
    Read sool data and take this data into a internal table
    Loop at g_t_data.
               Call program to read spool as follows
          SUBMIT rspolst2 EXPORTING LIST TO MEMORY AND RETURN
          WITH rqident = g_t_data-rqident
          WITH first = '1'
          Read memory where spool data is stored
          CALL FUNCTION 'LIST_FROM_MEMORY'
               TABLES
                    listobject = mem_tab
          Convert spool data to Ascii
          IF NOT mem_tab[] IS INITIAL.
            CALL FUNCTION 'LIST_TO_ASCI'
                 EXPORTING
                      list_index         = -1
                 TABLES
                      listasci           = g_t_text1(table type c length 10000)
                      listobject         = mem_tab(LIKE TABLE OF abaplist)
            APPEND LINES OF g_t_text1 TO g_t_text.
          ENDIF.
    ENDLOOP.
    Create new spool with internal table data
      NEW-PAGE PRINT ON
      KEEP IN SPOOL  l_keep(variable type c default u2018Xu2019)
      LINE-SIZE      300  
      LIST NAME      l_list (variable(30) TYPE c default 'combined_pdf')
      NO DIALOG.
      LOOP AT g_t_text.
        WRITE: g_t_text-data.
      ENDLOOP.
      NEW-PAGE PRINT OFF.
      COMMIT WORK.
    Fetch this spool number from TSP01
    SELECT rqident rqcretime FROM tsp01 INTO TABLE l_t_pdf(internal table having two fields rqident LIKE tsp01-rqident and rqcretime LIKE tsp01-rqcretime)
      WHERE   rqowner = sy-uname AND
                     rq2name = 'COMBINED_PDF'.
    Download spool data into pdf format
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
           EXPORTING
                src_spoolid   = l_t_pdf-rqident
           IMPORTING
                pdf_bytecount = l_size(variable type i)
           TABLES
                pdf           = g_pdf(table like table of tline)
      CALL FUNCTION 'GUI_DOWNLOAD'
           EXPORTING
                bin_filesize = l_size  "size
                filename     = l_data
                filetype     = 'BIN'
           TABLES
                data_tab     = g_pdf.
    Hope this will help you.

  • URGENT:how to generate multiple spools in a single program

    Hi,
           i am currently showing a report which contains different sections using pure write staemnt.
    now the user wants when he runs the same program  there he should be  able create multiple spools.
    iMean one section(paragraph) in one spool  ..another paragraph in another spool i.e there should be two spools .

    Hi,
    DATA: print_parameters TYPE pri_params
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
        IMPORTING
          out_parameters       = print_parameters
          valid                = valid_flag
        EXCEPTIONS
          invalid_print_params = 2
          OTHERS               = 4.
    check sy-subrc = 0 and valid_flag = space.
    NEW-PAGE PRINT ON PARAMETERS print_parameters
                        NO DIALOG.
        WRITE:/ '1'
      NEW-PAGE PRINT OFF.
    NEW-PAGE PRINT ON PARAMETERS print_parameters
                        NO DIALOG.
        WRITE:/ '2'
      NEW-PAGE PRINT OFF.
    NEW-PAGE PRINT ON PARAMETERS print_parameters
                        NO DIALOG.
        WRITE:/ '3'
      NEW-PAGE PRINT OFF.
    Cheers.
    ...Reward if useful.

  • Printing multiple spool requests at a time

    Hi All,
    I am using function module RSPO_OUTPUT_SPOOL_REQUEST to print the contents of the spool request. I want to print multiple spool requests at a time. We can input only one spool request number to the above function module at a time. Is there any way that I can print multiple spool requests with only single Print Popup Window ?
    Thanks.

    Hi Khanna,
    I tried that option at first place only. It results in multiple Print Popups. I want to avoid this. For all spool print requests, I want to show ONLY ONE Print Popup.
    Thanks.

  • Multiple Spool Requests for BACS Payment

    Hi,
    We are running payment program F110 for BACS payment.
    When we run F110 in production system, irrespective of no. of. vendors or payment line items, only one spool request is generated.
    But when we run F110 in quality system, multiple spool requests are generated for single payment run.
    please give your valuable suggestions, why this is happening like this?
    Regards,
    Praisty

    Dear,
    please check the prnitout/data medium variant which you selected during the payment run.
    Regards,
    Panneer

  • Configuring multiple spool reciepients in CPS for a job?

    HI
    Can anyone help me
    How can i configure multiple spool recipients for a particular job in CPS?
    Is this possible?
    Kindly please guide me how to configure.

    Hi Ram
    Thanks for your solution.Its working fine.
    We have created a shared distribution list in the end system and we have used that name while defining the spool recipient  list in CPS
    Thanks
    Arun

  • Multiple spools

    When I schedule a job and when the job finishes, a spool needs to be created.
    Issue: When a job finishes and when we click on spool it is showing 'step list overview' and when we click on 'all spool lists' then it is showing the multiple spools. It should show the spool requests directly instead of going to step list overview.
    Why it is behaving like this? How to fix this issue?
    Can anyone help me on this
    Thanks

    There is only one step for the job. The two spools are getting created one with empty messages and the other with actual data. First spool is with actual data and the second spool is empty.
    Please help me.

  • Job in background and multiple spool requests

    Hi everybody,
    I'm executing a program in a background job. The program outputs 2 spool requests. When I get to SM37 t-code to see job's result, I can see at "Job Log" option that 2 spool requests were generated. But... when I press "Spool" option from SM37 t-code I only see the last one. In spite of this, when I get at the spool controller through SP01 t-code I can see both of them. Can you help me with this issue? Why from one place I get 1 request and from the other the 2 ones?
    Thanks in advance and kind regards,
    MMP.

    Hi,
    Check out [this thread|https://forums.sdn.sap.com/click.jspa?searchID=16405444&messageID=1181695] which has a discussion on this topic and points out [Note 519059|https://service.sap.com/sap/support/notes/519059]:
    8] Question: How are the spool requests assigned?
    Answer: The step information is stored in table TBTCP. This has space for exactly one spool request (field LISTIDENT). If a step generates several spool requests during the processing, only one can be stored. In this case the application is responsible for a "spool overview".
    Regards,
    Jamie

  • Submit...to Spool in background, ALV Grid

    Hello,
    I am trying to using the SUBMIT to SPOOL statement for SAP std. program RKPEP003.
    Now this works well when i execute in the foreground mode but doesnt work in the background mode, it gives an error "Make an Entry in All Required fields"
    RKPEP003 output is ALV Grid, so is this the probable reason or something else becoz the code works fine in the foreground mode
    Thanks in advance
    Minhaj

    Hello,
    Following is my code:
    MOVE:
          'CN_PSPNR'  TO I_SELTAB_WA_ANLAGE-SELNAME,
                    'S'      TO I_SELTAB_WA_ANLAGE-KIND,     " SELECT-OPTION
                    'I'      TO I_SELTAB_WA_ANLAGE-SIGN,
                    'EQ'     TO I_SELTAB_WA_ANLAGE-OPTION,
              'W-000001-01-101' TO I_SELTAB_WA_ANLAGE-LOW,
              'W-000001-01-101'  TO I_SELTAB_WA_ANLAGE-HIGH.
          APPEND I_SELTAB_WA_ANLAGE TO I_SELTAB_ANLAGE.
          MOVE: 'R_BUDAT'  TO I_SELTAB_WA_ANLAGE-SELNAME,
                'S'      TO I_SELTAB_WA_ANLAGE-KIND,      " SELECT-OPTION
                'I'      TO I_SELTAB_WA_ANLAGE-SIGN,
                'BT'     TO I_SELTAB_WA_ANLAGE-OPTION,
                S_DAT  TO I_SELTAB_WA_ANLAGE-LOW,
                E_DAT  TO I_SELTAB_WA_ANLAGE-HIGH.
          APPEND I_SELTAB_WA_ANLAGE TO I_SELTAB_A
    SUBMIT RKPEP003
          WITH selection-table I_SELTAB_ANLAGE
          WITH P_DISVAR = '/5SAP'
          TO SAP-SPOOL
          SPOOL PARAMETERS PARAMS
          ARCHIVE PARAMETERS ARPARAMS
          WITHOUT SPOOL DYNPRO AND RETURN.
    Now this works well in the foreground mode but other otherwise even with JOBNAME AND NUMBER
    Thanks,
    Minhaj

  • Create spool for background jobs which uses submit statement

    Hi Gurus,
                 I have a quick question regarding the backgroud jobs. When we run a program in the background , it should create a spool for us, but, the problem comes when I am running a program in the background, its not creating the spool. This program uses SUBMIT statement. This program collects the data and it will submit to the other program and then retuen. In this case, its not creating a spool. Its very important for us to look at the spool for this program. Does anybody cam across this kind of problem? I need ur inputs.
    Thanks in advance, <REMOVED BY MODERATOR>
    Regards,
    Srinivas.
    Edited by: Alvaro Tejada Galindo on Mar 18, 2008 4:31 PM

    hi check this link ...
    Scheduling a submitable program as a background task with the number number in a background request name. After scheduling, the background task is completed by function module JOB_CLOSE and released immediately.
    DATA: number TYPE tbtcjob-jobcount,
          name TYPE tbtcjob-jobname VALUE 'JOB_TEST',
          print_parameters TYPE pri_params.
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname          = name
      IMPORTING
        jobcount         = number
      EXCEPTIONS
        cant_create_job  = 1
        invalid_job_data = 2
        jobname_missing  = 3
        OTHERS           = 4.
    IF sy-subrc = 0.
      SUBMIT submitable TO SAP-SPOOL
                        SPOOL PARAMETERS print_parameters
                        WITHOUT SPOOL DYNPRO
                        VIA JOB name NUMBER number
                        AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = number
            jobname              = name
            strtimmed            = 'X'
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF sy-subrc <> 0.
        ENDIF.
      ENDIF.
    ENDIF.
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=backgroundsubmit&adv=false&sortby=cm_rnd_rankvalue
    sy-subrc  Meaning
    0            Background task scheduled successfully.
    4            Scheduling cancelled by user on the selection screen.
    8            Error during scheduling, i.e. when accessing JOB_SUBMIT internally.
    12          Error in internal number assignment.
    regards,
    venkat.
    Edited by: venkat  appikonda on Mar 18, 2008 6:32 PM

Maybe you are looking for

  • How do I correct the text in a file made by another person

    I have a file made by a friend as a jpeg file whidh I have imported in photoshop 5. I would like to make some changes in the text in the file. How do I do it/

  • How to set Passcode lock time in iOS 7.02?

    In upgrading my Sprint, iPhone 5s from iOS 7.0 to 7.0.2, when go to Settings/General/Passcode-Fingerprint/Require Passcode, it is now set on "Immediately", when, in 7.0, I had it set for 15 minutes. When I touch the word "Immediately", the screen sho

  • Disable the Advanced tab at user level while scheduling concurrent requests

    How can I disable the Advanced option at user level while scheduling concurrent requests ? In the Schedule Form you have: Run the Job... - AS soon as Possible - Once - Periodically - On Specific Days - Advanced Thank you. Edited by: user635184 on Jan

  • How do I invoke decision service of business rules in soa suite 11g?

    How do i invoke the decision service of my business rules in SOA 11g. I have an invoke activity in my bpel process which invokes my decision service from the dictionary BUT it fails saying that the "name" attribute (NCNAME type) has invalid value whi

  • AVG and VF in GLBP...

    hello,,, In GLBP...AVG router will have both role of AVG and VF??? and i am having some confusion with Redirect time in GLBP so please help me to clear that fundamental.... regards Devang