Submit statemet not creating spool in back ground

Hi,
My program works perfectly fine(creates spool) when I execute in foreground. But it doesn't create the spool when I execute in back ground. Pls help...
        SUBMIT rkaep000
               WITH p_tcode = 'KOB2'
               WITH aufnr   IN r_aufnr
               WITH r_budat IN r_date
               WITH p_disvar = '/SCORP 1404'
               TO SAP-SPOOL SPOOL PARAMETERS params
               WITHOUT SPOOL DYNPRO
               AND RETURN .

Hi Chesat bs,
check demo program DEMO_LIST_SUBMIT_TO_SPOOL.
Hope this helps.
Thanks
Lakshman

Similar Messages

  • Sapscript not creating spool

    Hello gurus, is it possible to create a spool, when seeing and printing the sapscript at run-time?
    I am using FM GET_TEXT_PRINT_PARAMETERS but is not creating any spool.
    Thanks in advance!

    Hi,
    Try like this:
    FORM open_form.
      DATA : tmp_answer.
    itcpo-tdimmed = 'X' .
      perform fill_itcpo.
      itcpo-tdgetotf = 'X'.          
      itcpo-tdpreview = space.      
      CALL FUNCTION 'OPEN_FORM'
           EXPORTING
                form                        = layout
                language                    = sy-langu
                options                     = itcpo
                device                      = 'PRINTER'
               dialog                      = ' '
               options                     = it_itcpo
           EXCEPTIONS
                canceled                    = 1
                device                      = 2
                form                        = 3
                options                     = 4
                unclosed                    = 5
                mail_options                = 6
                archive_error               = 7
                invalid_fax_number          = 8
                more_params_needed_in_batch = 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.
      ENDIF.
    ENDFORM.
    form fill_itcpo .
      REFRESH it_itcpo.
      CLEAR   it_itcpo.
      it_itcpo-TDPAGESLCT = SPACE.
      it_itcpo-TDCOPIES   = SPACE.
      it_itcpo-TDDEST     = 'LOCL'.
      it_itcpo-TDPRINTER  = SPACE.
      it_itcpo-TDPREVIEW  = SPACE.
      it_itcpo-TDNOPREV   = SPACE.
      it_itcpo-TDNOPRINT  = SPACE.
      it_itcpo-TDNEWID    = 'X'.
      it_itcpo-TDDATASET  = SPACE.
      it_itcpo-TDSUFFIX1  = SPACE.
      it_itcpo-TDSUFFIX2  = SPACE.
      it_itcpo-TDLIFETIME = SPACE.
      it_itcpo-TDSCHEDULE = SPACE.
      it_itcpo-TDSENDDATE = SPACE.
      it_itcpo-TDSENDTIME = SPACE.
      it_itcpo-TDTELELAND = SPACE.
      it_itcpo-TDTELENUM  = SPACE.
      it_itcpo-TDTITLE    = SPACE.
      it_itcpo-TDTEST     = SPACE.
      it_itcpo-TDPROGRAM  = 'Z_1IEWT_CERT_F01'.
      it_itcpo-TDSCRNPOS  = SPACE.
      it_itcpo-TDCOVER    = SPACE.
      it_itcpo-TDCOVTITLE = SPACE.
      it_itcpo-TDRECEIVER = SPACE.
      it_itcpo-TDDIVISION = SPACE.
      it_itcpo-TDAUTORITY = SPACE.
      it_itcpo-TDARMOD    = SPACE.
      it_itcpo-TDIEXIT    = SPACE.
    it_itcpo-TDGETOTF   = 'X'.
      it_itcpo-tdgetotf = space.
      it_itcpo-TDFAXUSER  = SPACE.
      it_itcpo-TDIMMED    = 'X'.
      it_itcpo-TDDELETE   = SPACE.
    endform.                    " fill_itcpo
    call function 'CLOSE_FORM'
    IMPORTING
       RESULT                         = LS_ITCPP
    TABLES
       OTFDATA                        = it_otfdata       
    EXCEPTIONS
       UNOPENED                       = 1
       BAD_PAGEFORMAT_FOR_PRINT       = 2
       SEND_ERROR                     = 3
       OTHERS                         = 4.
    if sy-subrc eq 0.
       submit rstxpdft4 with spoolno = ls_itcpp-tdspoolid and return. 
    endif.     
    Regards,
    Bhaskar

  • W2reprint not creating spool

    I am working on setting up the online W2 functionality for my client in USA. The W2 reprint request is not creating a spool in SP01.When I tried to debug the (W2FORM) object, the submit statement SUBMIT rpctrpu0 is returning with found = X.
    When I checked SP11, I see a temse file HRL*** and its content has the following lines:
    Main form not found in table T51T8
    No results exist in the cluster for the given criteria.
    While debugging I did see it picking up the values from T51T8, so I am at this point not sure how else to troubleshoot this.
    Can someone please help?
    Thanks,
    Maria.

    Hi Ameet.
    I deleted all the test PCL4 data in the sandbox client. The reprint method is taking the correct date for the W2 reprint by checking v_5uxy_a table. So, I tried this on our dev system. It created the HRL spool in SP11, and this time it has two lines in the content, which has the form number and control number with the date/year information of the W2 reprint. Again, no spool in SP01.
    I hope this might work in prod system. If you have any inputs for me please do comment below.
    Thanks,
    Gracias,
    Maria.

  • Error while activating ODS is not caught in the back ground job..

    Hi All,
    We have a back ground job to load data to ODS and to activate it..If there is any error while loading or activating the data, back ground job is going into loop instead of cancelling the job..As the job is going into loop we are unable to trace the error unless we cancel the job manually and checking it..We have switched off displaying any messages while doing the back ground job...also we can not set any time limit for the job as it always depends on the volume of the data.
    My requirement is , back ground job must get cancelled if there is any error while loading the ODS..Can anybody suggest any idea on this..
    Thanks for reading.
    Umamaheswar kumar

    Hi Uma,
    A few hints for running and schedule and monitoring process chains:
    - always schedule the process chain in tcode RSPC
    - check the log in RSPC for error messages, or
    - check BW monitor for the ODS concerned (tcode RSMO, tab Details)
    if anything is not working fine, the status of the corresponding load will show you the errors, warnings ...
    either in RSPC - log or RSMO.
    hope it helps.
    Regards,
    Lilly

  • Payment Program F110 is not creating spool

    Hello experts,
    We are very close to the go-live and facing a major issue with Automatic Payment Program F110. We asked the dev to design Z check form for F110. Our form works well with manual Run ( F-58), we can see spool as well as print but when we Run the F110 the same form does not create any spool nor print anything. Even though its create the check, done the posting but no spool no print. The error we are getting it is  'No printer fonts maintained for Message no. TD327' . IT people sets all the fonts but no luck.
    appritiate the comments.
    Thanks

    Hi,
    take a look on this sap note.
    i hope it help you.
    Regds
    Note 391852 - Message TD327 (No printer fonts maintained for &)
    Summary
    Symptom
    The system displays error message TD327 (No printer fonts maintained for &) during the print although the device type of the printer has a base device type with printer fonts.
    Additional key words
    IW31, IW32, IW3D, IW21, IW22, IW23
    Cause and prerequisites
    The device type has not separate printer fonts but inherits them from the base device type.
    Solution
    Implement the program correction as specified in the

  • Report in background not create spool when no data found

    Hello  ,
    I created simple rapport that should run in background. When I  execute background job (sm37) I noticed that the  spool exists only
    for when the some data is found. When data is not found for any reason I do not have spool , and I need one saying
    'records passed 0'. I am not sure what I can do about it. I saw insome programs that is possible but I cannot find how it was done.  Please advice .
    Krsto

    Hi,
    You might be checking if the Final Internal table has data in it or not (May be in END-OF-SELECTION). If you are not do have check on this and simple code a write statement like below.
    IF IT_FINAL IS NOT INITIAL.
    CREATING A SPOOL.
    ELSE.
    WRITE : / 'Records Passed are 0'.
    ENDIF.
    Let me know if you need any further help on this.
    Regards,
    SRinivas

  • How to create a white back ground for Jpeg image to upload on various webites

    Hello, I have Photoshop Elements 11. I designed a book cover with Microsoft Word 2010 and saved the file as a Pdf. I want to upload an image of this book cover to various web sites that require a Jpeg image and the book cover has to cover at least 85% of the image and require a pure white back ground. Pixel size can be 1,000 or more. Can somebody help me? I did go to the library to get reference books but, I can't ascertain from these books how to do this. I am a beginner to Photoshop and realize I will have to get training for future projects. Thank you very much for any information you provide to me. I wanted to upload an image from my computer to show you the book cover but there was a dialogue box that appeared saying the file was too large to upload. The book cover I designed is 8.5' x 11.0"

    Wow! I can't thank you enough! There is not enough space here for me to express my gratitude for helping me! You are a saint! I had the Pdf files uploaded and stored in my organizer, so the images of the book covers appeared in the bottom of Photoshop Elements 11 Editor. I did exactly as you instructed, then sent the Jpeg  to Amazon and it uploaded in less than 5 minutes. The image could be a little bigger, but now I can utilize the software enough to tweak it.Thanks so much!!!! Any other ideas would be greatly appreciated. Take care and have a great 2013!

  • Executing a program in background is not creating spool

    Hi all,
    I am facing a small problem with one of the program. Below are the details.
    Its a simple program of uploading file from local machine and displaying the output. when I am running in foreground, the contents of file are copied into internal table and getting displayed in List.
    Where as when I run background, No spool is getting created. Also I found that, the internal table is getting cleared. I  have put an IF NOT INITIAL check and found that, Internal table is getting cleared and error message is written in the spool .
    There is no problem with file upload in background or foreground.
    Please advise.

    Hi
    What you means with "uploading file from local machine":
    - Presentation Server or Application Server?
    If u're using the fm as GUI_UPLOAD or WS_UPLOAD in order to upload the data from a file of Presentation Server u should consider those fms work foreground only.
    So how do u upload the file?
    Max

  • Saving a delivery, does not create spool request

    Hi,
    I have a delivery and 2 output types. The print program of first output type already exists and I created one for the second one.
    When I save the delivery, spool request gets created for the first output type but doesn for the one I created. Can anyon tell why?

    hi,
    It has to be assigned to the second output type, the first one is for a different purpose.
    Is there any change need to be done in program to correct it?
    But, It does work when run through transaction.

  • In forground progarm working fine, but in back ground it is not working

    Hi experts
    one program having functionality like using BDC it is creating the session and it is posting session automatically.
    if error occurs mail notification send to user .used this FM ---SO_NEW_DOCUMENT_ATT_SEND_API1
    when i am executing the program in foregroung it is working properly. means file contains wrong data
    and session having the error and mail is going to user.
    but when i am scheduling same thing in background , session has created sucessfully with error .
    but mail functionality is not working .
    Please help me why this is not (mail functionality in back ground)
    thanks.

    hi
    in program used to capture the errors in session from APQI table .
    but it is capturing the errors in the fore ground , why it is not allowing in back ground.
    session  processed automatically using RSBDCSUB program .
    could any one help me on this.
    Thanks

  • Automatic payment program spool not created

    HI Exeperts
    i am assing same role both users both user while doing f110 posting one use is succesed and another user was some time was sucesse ful and sometime getting error spool not created i tested in testing client same role here sucess.i checked in sm37 also but no error user go to sp02  some time he can display. whenever got the errore massage  he cann't see the display option.i cann't understand this problem.
    any body help me.
    thank's
    chandra.

    Dear expert
    My guess is your user  SPAD - ADMIN ( Check over there )setup is incomplete, but as this is generally a BASIS responsibility
      spool requested is not created.
    http://sap.ittoolbox.com/groups/technical-functional/sap-acct/payment-program-f110-is-not-creating-spool-nor-print-1848411#M1851567
    Regards
      Ajeesh.s

  • Batch Job not Generating Spool No

    Hi Experts,
    We had a custom program where we are printing multiple invoice in a single go i.e all invoices for a particular sales office are printed in a single spool request. for foreground execution it is running fine. But after creating variant of it on selection screen & submitting the program to Batch job it is not creating spool no when the job is finished what could be the reason.?
    Also i would like to tell you that we are asking user to give a invoice no range on the selection screen.
    Edited by: priyeshosi on Jan 4, 2012 5:03 PM

    Hi priyeshosi ,
           If you use function modules start with GUI_* or  WS_* in your report , then you can't generate the spool.
    reason for this, Please check this link,
    http://www.sap-img.com/ab004.htm
    Regards,
    Selva M

  • Problem with Back ground MRP Run (MDBT) or MD01

    Hello SAP Experts,
    Issue :- Material is not considering during Automatic back ground MRP run ( MDBT or MD01)
    But when we run MRP in forground (MD02) system is considering the material.
    we have checked both the selection parameter are same for MD01 and MD02 .
    can you help us on this issue ?
    Regards
    Mahesh

    Hi,
    Problem is due to entry in Planing File is missing for that Material.
    Go to MD21 and check whether Planing File entry is maintain for that Materiel.
    If not then maintain it by T.code MD20 (Manual) or you can do it by using back Ground JOB - OMDU.
    Regards,
    Dhaval

  • PO confirmation XML not created

    Good day
    We are experiencing some issues with our PO confirmations. When I say confirmations it is not the SES or GRN. In our system we create a SC in SRM this then gets approved in SRM and then a PO is created in the ECC backend. The XML is passed from SRM to ECC and the PO is then created. After the PO is created a new XML using a new interface is generated and sent back to SRM to update the SC with the PO number. Now on the majority of our orders this confirmation of PO creating is sent back to SRM and we can view the XML in sxmb_moni. But we have a few where the XML is just never created in ECC. The PO gets created successfully but the PO creation confirmation is not created. We search in SXMB_MONI and there is no XML created.
    What could cause this issue and is there some further investigating we can do or a note to implement. I have investigated as far as I can, there is nothing common among the PO's that did not created the confirmation back to SRM. There is a mix of services, there is a mix of vendors and a mix of purchasing groups. There is no common value amongst the orders. Because of this we cannot replicate the issue so we cannot debug, it appears extremely random and the issues are spread out across days.
    Thanks much appreciated

    oh ok now I guess I get it ..you mean for those in cases where XML is not being sent back due to see the PO number updated in the SC ?
    1.Check if there are entries in BBP_DOCUMENT _TAB table ..
    2. Check the note  1676004 - ECC Purchase Order is not updated in the history of the SRM documents
    3. Check if the jobs BBP-GET_STATUS2 & Clean_reqreq_up are up and running consistently ..
    You might as well have to use the debugging process to check incase you are able to replicate in dev or quality..
    Also is the SC status Follow on Doc created or something else like error in transmission or Item in transfer
    http://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=340264144
    Let me know your inputs.

  • FIREFIIGHTER Back Ground Job !

    I am on FF 3.0 CC 4.0
    On I run the FF Log, I am told that the File is not genereated as the Back Ground Job is not scheduled.
    Which is th e back ground Job needed to get these reports ?
    Thanks

    What i guess from your query is:
    1) Probably there is no activity by firefighter users or you need to schedule background job on hourly basis, the general practice is every 2 hours.
    2) You can use any id with super administrator previledges to schedule background jobs.
    Hey, I just wanted to ask you, does your firefighter controllers getting logs attached to e-mails and is the format of log report seems fine to you?
    just confirm, cause there are two notes required to be applied in sequence.
    1) 1046405
    2) 1053315
    Also it would be great, if you upgrade your GRC FF, CC solutions. I was in college when these products were rolling in the market and I never had the honor to experiment.
    Best Regards,
    Amol Bharti

Maybe you are looking for