Job not producing Spool

Hi All,
I created a new job in SM36. When I am running that job it's not producing spool.
How can I produce spool for a particular job?
Thanks,
AB

Any ideas will really appreciated.....

Similar Messages

  • 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

  • Background job not generating spool

    Hi all,
          I am calling a report from another report. The called report will display the final output list.
    Here, the called report will be executed in background.
    here the job is completing but the spool is not generated.

    Hi,
    It seems that the final internal table which has the output data is empty & hence write statements are not executed ( assuming all the write statements are inside a loop).
    Place one write statement outside loop like
    write :/ 'Following is the result :'.
    & check whether spool is generated. If yes, then the problem is of empty internal table.
    You can select the job in SM37 & type JDBG in command prompt to debug a background job.
    Debug & check the issue.
    Best regards,
    Prashant

  • Convert Spool to PDF and mail for the jobs not run in background.

    Dear All,
    I need to convert the spool job into pdf and mail as attachment for job not run in background.
    I am printing the bills  using the program  SD70AV3A to print the bills in a batch using the SUBMIT.
    But i am not using the spool options since its going to into waiting state in spool...and i need to change the printer properties to G
    to get the printer to print the reports as these jobs run in backgroud....but this solution is not acceptable solution.
    SUBMIT SD70AV3A
             WITH RG_KSCHL-LOW = 'ZRR'
             WITH RG_NACHA-LOW = '1'
             WITH PM_VERMO = '2'
             WITH PM_NSORT = '1'
             WITH RG_VBELN IN range.
    *        TO SAP-SPOOL
    *        SPOOL PARAMETERS print_parameters
    *        WITHOUT SPOOL DYNPRO
    *        VIA JOB name NUMBER number
    *        AND RETURN.
    so how do i get the spool number from the above after the job is submitted....and then convert into pdf and mail
    please suggest some solution. I have searched on net but most the solutions are say to run the job as background job...
    i have also looked into the program RSTXPDFT4 but it asks for the spool id ....how can i get spool id for the job that has been completed.
    please suggest some solution.
    Thanks
    Bhargava.

    Hi,
    Spool to PDF : FM 'CONVERT_ABAPSOOLJOB_2_PDF'
    Table TSP01 to get spool number
    You ,may need to convert OTF to PDF: FM CONVERT_OTF
    and the to binary : FM 'SMCS_XSTRING_TO_BINARY'
    To send mail use class: cl_document _bcs.
    Regards,
    Maria João Rocha

  • Print the job from the spool in abtch mode

    I want to be able to print a job from the spool in batch mode. In other words a job currently exists that creates a report that currently goes to a printer.
    The user wants the report to print on two different printers. This extra printer cannot be placed in the job, since SAP only allows one printer per output. What I would like is to find a SAP program that would accept a spool name and a printer destination. It necessary we can write a program that might execute a SAP function to do the same.
    SP01, the spool transaction, does not easily adapt itself to batch execution. I donu2019t want to create a bdc session using it.

    Hi,
    If the domain of these fields are of type SYTIME, then adding the fields like a numeric value should suffice.

  • Background job not working for VF02

    Hi,
    When i give schedule RSNAST00 report in background for one output type its not generating spool, but the job status is in Complete. But in foreground it fine.
    For another output type its working fine in background.
    Is there any printer setting has to be done in driver program or in smartforms? Kindly help me on this.
    Regards,
    Vijay.

    Hi,
    Check whether u have assigned following values.
          l_wa_control_parameters-device      = 'PRINTER'.
          l_wa_output_options-tddest            = nast-ldest.
          l_wa_output_options-tdimmed         = nast-dimme.
          l_wa_output_options-tdnewid          = 'X'.
          l_wa_control_parameters-no dialog  = 'X'.  
    CALL FUNCTION l_fnmod    "'/1BCDWB/SF00000149'
    EXPORTING
    control_parameters = l_wa_control_parameters
    output_options       = l_wa_output_options                        
    Still the problem exists then i wil send u the code.
    Regards,
    Vijay.

  • 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

  • "TrackedMessages_Copy_BizTalkMsgBoxDb" started failing (could not produce a query plan)

    I'm running Biztalk 2010 / SQL 2008R2
    Suddenly the job "TrackedMessages_Copy_BizTalkMsgBoxDb" that runs every minute has started failing. The message is:
    "Query processor could not produce a query plan because of the hints defined in this query. Resubmit the query without specifying any hints and without using SET FORCEPLAN.

    Hi,
    No one has changed any Biztalk SP, I'm sure. I Think this is a data problem. We have a copy of our complete environment taken every 14 Days, used as a test and verification environment. It is now a little more than a week old, and there the job works
    just fine.
    One data difference between the production and the verification environment is that the table "BizTalkdMsgBoxDb.dbo.TrackingMessageReferences"
    is empty in verification, but holds a record in production, could that have to do with it?
    I had  50 "Orphaned DTA Instances" which I removed through the Biztalk Terminator. It made no difference to the problem, still the same error.
    //Haglund_A

  • SQL 2012 SP1 - How to determine a query that causes Error 8623 in SQL Log: The query processor ran out of internal resources and could not produce a query plan. This is a rare event...

    We are getting multiple 8623 Errors in SQL Log while running Vendor's software.
    How can you catch which Query causes the error?
    I tried to catch it using SQL Profiler Trace but it doesn't show which Query/Sp is the one causing an error. 
    I also tried to use Extended Event session to catch it, but it doesn't create any output either.
    Error:
    The query processor ran out of internal resources and could not produce a query plan. This is a rare event and only expected for extremely complex queries or queries that
    reference a very large number of tables or partitions. Please simplify the query. If you believe you have received this message in error, contact Customer Support Services for more information.
    Extended Event Session that I used;
    CREATE EVENT SESSION
        overly_complex_queries
    ON SERVER
    ADD EVENT sqlserver.error_reported
        ACTION (sqlserver.sql_text, sqlserver.tsql_stack, sqlserver.database_id, sqlserver.username)
        WHERE ([severity] = 16
    AND [error_number] = 8623)
    ADD TARGET package0.asynchronous_file_target
    (SET filename = 'E:\SQLServer2012\MSSQL11.MSSQLSERVER\MSSQL\Log\XE\overly_complex_queries.xel' ,
        metadatafile = 'E:\SQLServer2012\MSSQL11.MSSQLSERVER\MSSQL\Log\XE\overly_complex_queries.xem',
        max_file_size = 10,
        max_rollover_files = 5)
    WITH (MAX_DISPATCH_LATENCY = 5SECONDS)
    GO
    -- Start the session
    ALTER EVENT SESSION overly_complex_queries
        ON SERVER STATE = START
    GO
    It creates only .xel file, but not .xem
    Any help/advice is greatly appreciated

    Hi VK_DBA,
    According to your error message, about which query statement may fail with error message 8623, as other post, you can use trace flag 4102 & 4118 for overcoming this error. Another way is looking for queries with very long IN lists, a large number of
    UNIONs, or a large number of nested sub-queries. These are the most common causes of this particular error message.
    The error 8623 occurs when attempting to select records through a query with a large number of entries in the "IN" clause (> 10,000). For avoiding this error, I suggest that you could apply the latest Cumulative Updates media for SQL Server 2012 Service
    Pack 1, then simplify the query. You may try divide and conquer approach to get part of the query working (as temp table) and then add extra joins / conditions. Or You could try to run the query using the hint option (force order), option (hash join), option
    (merge join) with a plan guide.
    For more information about error 8623, you can review the following article.
    http://blogs.technet.com/b/mdegre/archive/2012/03/13/8623-the-query-processor-ran-out-of-internal-resources-and-could-not-produce-a-query-plan.aspx
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Oracle Job not running properly

    Hi All,
    I am facing an issue with oracle jobs.
    I have writtent the script of a job scheduled to be executed automatically after 2 seconds.It works on a table and dequeue the data in that table.
    Now the job is not able to execute for next time.If i execute the job immediately then also it does not run for next time.
    so where could be the problem...
    Please give me pointers.
    Thanks in advance :)
    Thanks n Regards
    Arun

    user10280915 wrote:
    Hi All,
    I am facing an issue with oracle jobs.
    I have writtent the script of a job scheduled to be executed automatically after 2 seconds.It works on a table and dequeue the data in that table.
    Now the job is not able to execute for next time.If i execute the job immediately then also it does not run for next time.
    so where could be the problem...
    Please give me pointers.
    Thanks in advance :)
    Thanks n Regards
    ArunThings that you'll need.
    1. JOB_QUEUE_PROCESSES to be non-zero
    2. A commit after submitting the job
    3. The job not to be broken.
    4. don't schedule very frequently (say <5s) if the os is Linux :( ).
    I'd check in the above order.
    Niall

  • Exe file not producing the output files

    Could anyone please help me with my exe file. I have an exe file "exeFile" which takes more than one file as input from the source "c:/files" and produces some files as output into the destination "c:/files". Both my source and destination is same. My code given below is neither showing any error nor outputting any files. My code is:
    private static void compilingFiles() throws IOException
         String FirstParam = "C:/files";      
         String SecondParam = "C:/files";
         Process proc =Runtime.getRuntime().exec("cmd /c start /MIN C:/files/exeFile " + FirstParam, (String[])null, new File(SecondParam));
    }

    After going through The reference, I modified my code as under. My first exe file "tex" is doing the necessary as before, that is producing the output files to the destination, but the second exe file "fi2t1" is not producing the necessary output.
    My output after running this file is:
    <ERROR>
    </ERROR>
    Process exitValue1: 0
    <ERROR>
    </ERROR>
    Process exitValue2: 0
    <ERROR>
    </ERROR>
    Process exitValue1: 0
    <ERROR>
    </ERROR>
    Process exitValue2: 0
    <ERROR>
    </ERROR>
    Process exitValue1: 0
    <ERROR>
    </ERROR>
    Process exitValue2: 0
    So as per The reference, I think my code is right - "So, MediocreExecJavac works and produces an exit value of 2. Normally, an exit value of 0 indicates success; any nonzero value indicates an error.".
    So please tell me where am I wrong. My code is:
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.util.*;
    public class FontDriverCompile
         public FontDriverCompile()
         void compileFile(File newFile, String renameSub, File outputfile) throws IOException
              String FirstParam = "C:\\Temp\\sample\\font-driver.tex";  
              String FirstParam2 = "C:\\Temp\\sample";
              String SecondParam = "C:\\Temp\\sample";  
              try
                   Process proc1 =Runtime.getRuntime().exec("cmd /c start /MIN C:/Temp/sample/tex " + FirstParam, (String[])null, new File(SecondParam));
                   InputStream stderr = proc1.getErrorStream();
                   InputStreamReader isr = new InputStreamReader(stderr);
                   BufferedReader br = new BufferedReader(isr);
                   String line = null;
                   System.out.println("<ERROR>");
                   while ( (line = br.readLine()) != null)
                        System.out.println(line);
                   System.out.println("</ERROR>");
                   int exitVal1 = proc1.waitFor();
                   System.out.println("Process exitValue11: " + exitVal1);
              catch (Throwable t)
                   System.out.println("t.printStackTrace()_1");
                   t.printStackTrace();
              try
                   Process proc2 =Runtime.getRuntime().exec("cmd /c start /MIN C:/Temp/sample/fi2t1 " + FirstParam2, (String[])null, new File(SecondParam));
                   InputStream stderr = proc2.getErrorStream();
                   InputStreamReader isr = new InputStreamReader(stderr);
                   BufferedReader br = new BufferedReader(isr);
                   String line = null;
                   System.out.println("<ERROR>");
                   while( (line = br.readLine()) != null)
                        System.out.println(line);
                   System.out.println("</ERROR>");
                   int exitVal2 = proc2.waitFor();
                   System.out.println("Process exitValue2: " + exitVal2);
              catch (Throwable t)
                   System.out.println("t.printStackTrace()_2");
                   t.printStackTrace();
    }Message was edited by:
    sony_tj

  • Question about ModelAlias.vbs - not producing what expected on Lenovo machines

    So i am trying to use ModelAlias.vbs userexit script to create sensible names for Lenovo machines so i can arrange my MDT driver structure accordingly.
    I have found these articles:
    Deplyment Guys Blog:
    http://blogs.technet.com/b/deploymentguys/archive/2009/09/10/using-and-extending-model-aliases-for-hardware-specific-application-installation.aspx
    Mikael Nystroms Blog:
    http://deploymentbunny.com/2012/05/01/modelalias-user-exit-for-microsoft-deployment-toolkit-20102012/
    Whats not so fun with Lenovo machines (there are other vendors also i guess) that model name for machine could be something like 6138W1K when giving commandprompt command wmic csproduct get name. Actual model name for 6138W1K is ThinkCentre M58p.
    Problem:
    So i assumed ModelAlias.vbs would return something like ThinkCentre M58 as an result so i could use that for folder structure (or in database) Problem is that ModelAlias.vbs gives that model number 6138W1K as result not
    producing that actula model ThinkCentre M58p.
    Im testing ModelAlias using this:
    del C:\MININT\SMSOSD\OSDLOGS\VARIABLES.DAT /q
    cscript ZTIGather.wsf /inifile:..\Control\CustomSettings.ini
    “E:\Extra\Trace32.exe” c:\minint\smsosd\osdlogs\bdd.log
    (Also from Mikael Nystroms blog:
    http://deploymentbunny.com/2011/04/27/quick-and-dirty-testing-customsettings-ini-variables-in-mdt/)
    Result from bdd.log
    MODELALIAS is set accordig model NOT version info??
    My CustomSettings.ini is set like this
    [Settings]
    Priority=SetModelAlias, Default
    Properties=ModelAlias
    [SetModelAlias]
    UserExit=ModelAliasExit.vbs
    ModelAlias=#SetModelAlias()#
    Something is not right or is it :)

    Looking at the script, the model numbers aren't populated, looks like you have to do that yourself.   The script will find the 4 leftmost characters of the Lenovo model type and return it. If you want to translate that to something else its up to you
    to enter it. It really doesn't have to be translated, unless you want it to be. If your driver folder is named 1706 and the ModelAlias returns 1706, you're good to go.
    See under "Select Case sModelSubString" where it says Case 1706? The next line 'SetModelAlias = "ThinkPad X60"' will translate 1706 into "ThinkPad X60". but that's the only example given. You would need to add a separate Case for each model you own.
    Case Else says if you don't match any of the existing cases, then do this. In this case its "SetModelAlias = sModel", or return whatever sModel contains. I guess that is the entire 7 digit model and subtype?
    Change that to SetModelAlias = sModelSubString, and it will return just the 4 digit model, i.e. 1706.
    '============
        Case "LENOVO"
                ' Check by first 4 characters of the Model
                If SetModelAlias = "" Then
                    sModelSubString = Left(sModel,4)
                    Select Case sModelSubString
                        Case "1706"
                            SetModelAlias = "ThinkPad X60"
                        Case Else
                            SetModelAlias = sModel
                            oLogging.CreateEntry "USEREXIT:ModelAliasExit.vbs|SetModelAlias - Alias rule not found.  ModelAlias set to Model
    value." , LogTypeInfo
                    End Select
                End If
    '=============
    I'm not going to go into a vbscript tutorial here, there are many sites around the net to learn from. Here is a good tutorial on Select Case:
    http://technet.microsoft.com/en-us/library/ee176979.aspx

  • Dng converter not producing thumbnails, set to do so

    My conversions are not producing thumbnails, despite me setting it to do so. I don't know what is going on.

    Hi Robert,
    Thanks for the question.
    Based on my test, please try to following configurations.
    In addition, please let us know if you have RD Connection Broker installed in your domain.
    Hope this helps.
    Best Regards
    Jeremy Wu

  • Cgi not producing a valid error

    Hi
    I browsed the forum and found several threads discussing that error. But I couldn't find a solution.
    The error in admin server is:
    failure ( 3658): for host trying to GET /https-decimal/bin/index, cgi_scan_headers reports: HTTP4044: the CGI program /apps/sun/web61/bin/https/httpadmin/bin/index did not produce a valid header (program terminated without a valid CGI header. Check for core dump or other abnormal termination)
    Could you please help?
    thx

    Hi Linda_B,
    Ensure that the first piece of data printed by your cgi application is:
    Content-Type: text/html\n\n
    ... or which ever content-type you're actually using. You also need to ensure you have two line breaks at the end of the last header. One to end the current line, another to print a blank line.
    Hopefully this'll work for you. If it still fails, put some of your code online (remove any passwords, etc) sufficient enough to see where your code first prints data.
    Regards,
    Jeremy

  • HTTP4044 error - did not produce a valid header ??

    Occasionally when someone is uploading a file to our web server, we are getting this response. It doesn't happen all the time. It is receiving uploads all the time. Has anybody seen this or know what may be causing this problem?
    failure (12172): for host ###.###.###.## trying to POST /cgi-bin/data_upload.exe,
    cgi_scan_headers reports: HTTP4044: the CGI program /usr/web/web/cgi-bin/data_upload.exe did not produce a valid header (read failed, error is IO timeout error)

    The first thing a CGI program needs to do after reading any request body is to send a set of headers back to the web server. The data_upload.exe CGI program is failing to do this in a timely manner. data_upload.exe may have hung. For example, it may be trying to read more POST request body than was included in the POST request.
    By default, Web Server waits up to 5 minutes for the CGI program to output headers. If you have special circumstances that require the Web Server wait more than 5 minutes, you can control how long Web Server will wait using the init-cgi SAF. The NSAPI Programmer's Guide has details.

Maybe you are looking for