Printing to the wrong Printer from the Batch Job

Hi,
Morning every one!
I am facing a problem with Print which is coming from Batch Job. The Batch job contains 10 steps. Previously all steps out put has configured to one printer. Recently I changed one step out put to the another printer with the request. But the print is going to the old printer still.
When I am checking at the batch job -> Steps -> Specific step ->Print Specifications -> Output Device .. able to see New Printer.
But batch job -> Steps-> Select Specific step -> Spool -> Doble click .. There spool is going to the old printer. I am facing this problem for only one step.
The issue is dragging from past one week.. I tried couple of options..No luck
I appreciate any inputs/Solution for this.
Env:  ECC5.0/Solaris/Oracle
Thanks,
Sri.

I got the solution finally from ABAP team. The printer is maintained in the Condition records of the Variant for the particular step. Even though I assigned the printer in Batch job..It is taking the printer from Condition record.
Thanks,
Sri.

Similar Messages

  • Turn off Spool Printing for MRP Batch Job run

    Hi Experts,
    Please tell on how to turn off the printing of a Batch Job which is an MRP Batch Run. Can this be done while creating the Job? We really don't need the prinout for this job. Thanks.
    Points will be awarded.
    Regards,
    LM

    Yes, this can be done while scheduling a job. When creating a job step (transaction SM36) there is a button "Printer specifications". Select any printer there and option "Send to SAP spool". Spool request will be created but it won't be printed out.
    If you are using RMMRP000 program, you also might want to uncheck "Display material list" checkbox on the selection screen. If using other program, see if there is an option to disable the log.

  • Track the changes to the batch jobs in the PRD system.

    Hello Basis Guru's,
    Need your help in a Query. --> Is there any best practice that can be implemented to trace all the changes done to batch jobs in the past 3 months and going forward. Be it in its scheduling or its variant changes etc, i would like to track the changes to the batch jobs in the PRD system.
    Any pointers would be really helpful.
    Thanks in advance.
    Rgds,
    Sri

    Hello Raghu,
    Third party tools can only help you but not SAP. . A lot of us may think that for example if a Job 'X' runs daily then SAP considers this job as a single object.However actually SAP will treat each run of a job seperately infact as seperate jobs. If you would have noticed each job in SAP has a job id which is unique. So actually each run is unique. Now change logs can exist for only those objects that get changed. But change logs can not exist for objects that are newly created everytime !!
    If you would have noticed you can two jobs with the name A but running two different reports/variants whatver. This is because job name is not that important it is the job id.
    Every time a job runs a new entry gets stored in TBTCO,TBTCP etc.. tables. It is not that the existing entires are updated.However yes when a job is scheduled periodically there is some kind of a link that is created in the job series but it does not showo up in any of the tables!!
    As far as 3rd party tool is concerned I can name a tool like UC4. UC4 has its own database in which the job name will always be unique. For that you can easily find change logs. I think Chronicle (Redwood Scheduler) also supports this.
    Regards.
    Ruchit.

  • Automatically output report to excel from a batch job

    We have business users who require that a standard report be run daily as a batch job and output to a printer, which is using a large pile of paper every day.  I have challenged the rationale for this without success, and am trying to find a way to continue to run the batch job but output the report to an excel file and e-mail it to a manager.  I know that this can be done by a good ABAP programmer, but I am trying to find a way to set up the batch job to do this without additional ABAP, as programming resources are very limited.  I would appreciate input from anybody who knows how to do this.

    Likely because your user is continuing to call the service in a Windows (classic) DOMAIN\username format, and not in the Claims identity it should be.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Is there a way to access ABAP OO instances from a batch job report

    Hello,
    I am looking for a way to access ABAP OO instances from a batch job report. My circumstances are the following:
    I have got some ABAP OO coding that identifies other objects (class instances) that have to be processed (they have a DoIt method that does some calculation). As this processing is time consuming and performace relevant I have to parallelize this in batch jobs. This batch jobs however can only be "simple" ABAP reports according to SM36. The problem is now that I dont really know how to tell the batch job report what objects to process. Somehow I have to access theses instances from  that batch job report.
    Does anybody have an idea?
    Greetings
    Matthias

    Hi David,
    thanks a lot for your help. After a lot of searching on the net this seems to be the only way to cope with it. However I am not sure about the locking mechanisms and if its suitable for mass data processing. In the help page you suggested the following is stated which I do not fully understand::
    "The current lock logic does not enable you to set specific locks for the following requirements:
    ·        Many parallel read and write accesses
    ·        Frequent write accesses
    ·        Division into changeable and non-changeable areas
    Although the lock logic makes the first two points technically possible, they are not practical because most accesses would be rejected."
    Does this mean
    a) if I dont want to set "specific locks" for frequent write accessess I am fine
    or
    b) I am discouraged from use shared memory technics for frequent write accessess?
    In the latter case I will have a problem...
    What do you think?
    Greets
    Matthias

  • Print selected pages of a PDF file to printer as a batch job using VB6

    I have the following:
    1) 1,000 multi-paged PDF files (say 00000001.pdf, 00000002.pdf, ..., 00160000.pdf)
    2) A list of pages for each document to print
    (e.g. 00000001.pdf: 2,3,5,7
    00000002.pdf: 3-8, 10
    00001000.pdf: 5,6,7,10)
    I want to perform a single batch job to print the specified pages of all 1000 PDF documents to default printer.
    I am using VB6, Acrobat Reader 9 installed.
    I am thinking of writing a function like that:
    Private Function PrintPDF(byval sPDFFilePath as string, byval iPageNum() as integer) as boolean
    and then write a looping routine to print the files one by one.
    Seems that Acrobat SDK has such feature. 
    Please advise how can I do this?

    I downloaded the Arcobat SDK and now learning to use it with its sample.
    However, I got stuck when I run the program BasicIacVB.
    I got the following error message:
    Cannot create ActiveX component.
    When running the line
    gApp = CreateObject("AcroExch.App")
    I run this program on my PC with VS2005 installed.
    What extra step do I need to do to use the sdk?
    Seems there's no installation package there...
    Sorry about my stupid question, I am a total newbie in AcrobatSDK.
    P.S.  My ultimate goal is to develop the program in VB6 (not using VB2005),
    as my client PCs does not (and cannot for some reason) install .net framework.

  • How to identify the batch job

    Hi guys,
    we have a batch job for
    1. creating invoice
    2. and printing invoices.
    How do i identify the background job being used for the above two.
    REgards,
    Anand

    How do i identify the background job being used for the above two.
    1. creating invoice
    In t.code VF02/VF03, go to the header level. Here you can see the created by field. This carries background billing job user name (for example SDBATCH).
    2. and printing invoices.
    In VF02/VF03, go to menu Goto->header->outupt. Highlight the output and click on the further data button. Here you can see created by at the botton(for example batch billing). By this way, you can identify, these are created by background  jobs.
    Regards,

  • Sorting in the Batch Job

    Hi All,
    We have a batch job scheduled for the program RSNAST00.
    When I execute this program there is a check box do I need to give any thing in there.
    We want to sort this by the sales agent number.
    Thanks,
    Praveen

    check box is for: if you want to repeat output type in the document after the processing.
    Sort field is for :
    Sorting Message Status Records
    Controls the sorting of output status records.
    Procedure
    The standard version includes the following sort criteria:
    Value Sort criteria
    01 Partner number/Application/Output/Object key (default)
    02 Application/Object key
    03 Output/Partner number
    10 Sort fields 1-3
    11 Application/Sort fields 1-3
    12 Output/Sort fields 1-3
    Note
    You can enter sort criteria specific to your organization in INCLUDE RSNASTZZ (using the criteria above as an example). The keys from 50 upwards are available for your own sort criteria.
    In Customizing for output types, you can define which values from the application-specific communication structures are to be written into the sort fields.

  • Schdeling the batch jobs

    Hi gurus,
    My client wants to excecute certain number of invoices through VF04 T-code and he wants to shcedule a job for that.
    Can any one help how ro do this scenario.
    for ex: invoice numbers from 1 to 10 are there, now my client wants to execute these invoices through VF04 with batch job.
    now how to schedule this invoices in batch job?
    Thanks and regards
    Subbu

    Hii
    Subbu,
                       By using T code  SM36 we can run the job
    Specify job name : zsd_vf04
    Job class : B                based on priority you can choose class
    - click on job wizard tab
    -continue
    - ABAP program step  :  SDBILLDL( to find out this program goto VF04 ->MENU>SYSTEM>STATUS-->PROGRAM(SDBILLDL)
    -continue
    immediately
    *date/ time
    *after job
    -you can choose any of them based on your priority
    -continue
    In SM37 --Tcode  we can see the job which was created in SM36
    Job name : zsd_vf04
    user name : *
    you can get job overview.
    *status must be in finished mode , in overview it shows all start time and start date.
    when status shows finished , it means your job completed successfully
    Regards
    KIRAN

  • How to find out the Batch job selection screen values

    Dear Users,
    One of our users has set up a Batch job by manually entering values into the Selection screen of a report instead of picking up a Variant. We would like to know the values entered on selection screen since the job has failed and the user doesn't remember the selection screen values entered.
    Can anyone please advise if there is a way we can figure out the selection screen values entered?
    Thanks,
    Vijay

    Hi,
    You can debug your failed job by going to 'SM37', type in 'JDBG' in the command line ( no '/' ), put the cursor on the job and press enter - will take you to the job in debug mode.
    You can do this only after the job has finished execution. This will simulate the exact background scenario with the same selection screen values as used in the job.
    So type in the transaction code 'JDBG' and place your cursor on the job after It has finished. It will take you to a SAP program in debug mode. Step through this program which is about 10 lines, after this your program will be executed in the debug mode.
    Check the selection screen values.

  • How shall I cancel /kill the Batch job that is to be scheduled daily in BI.

    Hello Experts,
    We have a background batch  job used to trigger an event to execute the Porcess Chain that is to be scheduled daily in BI.
    Now we don't required this functionality any more.So I try to cancel this job using transaction SM37 but unfortunately I am not able to cancel/ kill the job.
    How shall I handle this issue.  
    any suggestions please.
    Thanks & regards

    Hi
    Select your process chain in the planning view
    Right click on the start varaint and display all jobs,
    It will show you the job scheduled, Finshed everything.
    Select the job which is scheduled or released and Delete the job.
    Else go to SM37 , enter the job, delete the scheduled job there.
    Regards
    M.A

  • How to configure the batch job on weblogic server

    I have created a standalone java application using quartz.i want to deploy the standalone program on weblogic so as it could be run as a batch job.
    Can you please help me how could i deply the java application on the weblogic and run the same.

    To use Quartz primarily within an application server environment,include the Quartz JAR within the enterprise application (.ear or .war file). However, if you want to make Quartz available to many applications then simply make sure it's on the classpath of your appserver.
    You can also deploy it as a jar file or a library module as required.
    Quartz depends on a number of third-party libraries (in the form of jars) which are included in the distribution .zip file in the 'lib' directory. To use all the features of Quartz, all of these jars must also exist on your classpath.
    -Sandeep

  • Find errors logged from oracle batch job...

    Hi,
    I have a batch job that calls a procedure.. code is as under
    begin
      sys.dbms_job.submit(job => :job,
                          what => 'begin
                                       delete_stale_data;
                                        end;',
                          next_date => to_date('29-06-2006 05:33:28', 'dd-mm-yyyy h24:mi:ss'),
                          interval => 'sysdate+(30/1440)');
      commit;
    end;Now, how can i get to view the error messages if
    1) procedure runs into an exception and hence job is not executed
    2) if job runs into some problem due to which it is not completed..
    Thanks,
    JP

    "Viewing errors" is the wrong term to use - it assumes that there are devices like STDERR and STDOUT in Oracle that is written to when an error occurs.
    There are no such devices in Oracle. Oracle itself will record system related errors (and messages) to the alert log of the database instance. Custom PL/SQL code can also write to the alert log using an undocumented call - but it is a very poor idea as the alert log is for the DBA to deal with system errors. Not with someone's application errors.
    The correct method is to implement an application logging PL/SQL interface (package) that allows applications to log errors and warnings and messages (including debug stuff). The basic method of this API implementation is to create a log table and write messages (from applications) to this table using autonomous transactions. The API call can also record the system date/time, the current PL/SQL stack trace, client session details, etc.
    Using such an API, you would schedule the job as follows:
    Method 1:
    The job becomes broken after 16 repeated failures (the exception is re-raised in order for DBMS_JOB to deal with it).
    sys.dbms_job.submit(job => :job,
    what => 'begin
    delete_stale_data;
    exception when OTHERS then
    APPLOG.CriticalError( 'Error occured running DELETE_STALE_DATA', SQLCODE );
    raise;
    end;',
    next_date => to_date('29-06-2006 05:33:28', 'dd-mm-yyyy h24:mi:ss'),
    interval => 'sysdate+(30/1440)');
    Method 2:
    The job will never break. The exception is supressed and DBMS_JOB will not know that any errors occurred:
    sys.dbms_job.submit(job => :job,
    what => 'begin
    delete_stale_data;
    exception when OTHERS then
    APPLOG.CriticalError( 'Error occured running DELETE_STALE_DATA', SQLCODE );
    end;',
    next_date => to_date('29-06-2006 05:33:28', 'dd-mm-yyyy h24:mi:ss'),
    interval => 'sysdate+(30/1440)');

  • Executing the batch file from SQL Server Agent job

    Hi - I have a simple batch file (.bat) which connects the SFTP server and drop the files to location machine.  When I run the .bat file manually its working fine but when I schedule it in SQL Agent its keep on running and never shows success message. 
    Could you please tell me how can i resolve it.  Its very urgent for me.
    thanks

    If you trust this host, enter "y" to add the key to
    PuTTY's cache and carry on connecting.
    If you want to carry on connecting just once, without
    adding the key to the cache, enter "n".
    If you do not trust this host, press Return to abandon the
    connection.
    Store key in cache? (y/n) Remote working directory is /
    When you connect via putty you get prompted to accept a key in interactive mode. At this point your batch file is waiting for someone to type in y or n.  
    Try running putty in batch mode to get around this.
    http://the.earth.li/~sgtatham/putty/0.52/htmldoc/Chapter6.html#6.1.8
    6.1.8 -batch: avoid interactive prompts
    If you use the -batch option, PSFTP will never give an interactive prompt while establishing the connection. If the server's host key
    is invalid, for example (see section 2.2), then the connection will simply be abandoned instead of asking you what to do next.
    This may help PSFTP's behaviour when it is used in automated scripts: using -batch, if something goes wrong at connection time, the batch
    job will fail rather than hang.

  • Batch job print parameters missing

    I have 4 BATCH jobs that output to a pdf via MAIL. The data is shrunk so small that it cannot be read. If I am in SP01, and I try to reprint with changed parameters, only a select few formats are available. (All the ABAP/4 lists).
    I went to SPAD -> Full Administration -> Device Types -> Choose the device type -> Formats
    I see the the output DEVICE associated with MAIL is PDF1. I checked the formats that are already listed. It seems that some of these will suit my needs - however, most of them are not available to choose when I edit the batch job.
    How can I add a different format? I need to test several to find a size that will accommodate a very wide table.
    All suggestions welcome.
    Thanks!

    It's pretty huge. Columns A-W. The length varies, but this week's was 195 rows. I tried to create a new format, but I supposed it will never fit on a normal sheet of paper.
    Is it possible to "print" to an Excel file from a batch job?
    Right now, I am going back into SP01 and downloading to excel and emailing it out.
    Think this can be automated?
    Thanks for your input

Maybe you are looking for