Scheduling a job with different variants

i have a program to be run daily for three company codes and different materials. If i give all the three company codes at a time then the program is taking a lot of time and giving a run time error 'time limit exceeded' .Can i create variants for that program and make it run sequentially with all the variants.

hi Deepthi,
Yes you can do that .. i even suggest to modify your select statements to reduce the processing time .
Refer
http://www.sap-img.com/abap/performance-tuning-for-data-selection-statement.htm
Regards,
Santosh
Message was edited by:
        Santosh Kumar Patha

Similar Messages

  • Schedule background job with different user

    hi ,
    i want to schedule a background job under a different user
    i have used the parameter AUTHCKNAM of 'job_submit'
    it is giving sy-subrc = 0 .
    but it is not working
    i have also used the FM 'bp_job_create' in place of 'job_open'
    it is giving sy-subrc = 0 .
    but not working as needed
    kindly help
    regards...

    hi
    Try this
    We can do that via SUBMIT statement:
    Go through the documentation os SUBMIT statement with addition:
    ... USER user VIA JOB job NUMBER n
    Schedules the specified report in the job specified by the job name job and the job number n. The job runs under the user name user and you can omit the addition USER user. The assignment of the job number occurs via the function module JOB_OPEN (see also the documentation for the function modules JOB_CLOSE and JOB_SUBMIT). This addition can only be used with the addition ...AND RETURN.
    OR
    go through this link , i hope this ll help you to solve your problem
    http://help.sap.com/saphelp_nw2004s/helpdata/en/5f/ff2138faeb3807e10000009b38f889/content.htm
    Hope this helps.
    Thanks
    Tushar

  • Job with multiple variant

    Dear Friends,
    I have some jobs which has many variants. So it possible to create a job with multiple variants or only option is to create job chain.
    Please suggest.
    Thanks in advance.
    Regards,
    Jiggi

    Hi,
    You can submit the same job with different variant, but that is your runtime.
    Limitation is that you can't migrate all these runtime jobs.
    It is better you create different jobs with different variants, so that you have frexibility to run them independently, monitor and troubleshoot them, also migrate them to next environment (QA or PRD). And you can still create a job chain using all these independent jobs if require.
    Only creating Job Chain would be useful only if you want to run them in parallel or in sequence. (Not if you want to run them independently).
    Hope this help.
    regards,
    Sunil Rohit

  • Schedule a job by passing variant parameter

    Hi,
    We are trying to copy a job with it's all properties to another Job. In this process, 2nd job is schedule as per the following statement.
    details:
    called Prog name : Z_program1
    variant : Zvaraint1
    statement used here is " submit Z_program1 using selection-set Zvariant1 and return"  something similar to that. However after execution, we have noticed that 2nd job got created with different variant name like "&0000000014" . Although we submitted variant name as "Zvariant1" from above statement, why it was taken a different variant name during 2nd job creation? can any one help me out here. How to pass the original variant to 2nd Job?
    P.S, I don't want to use variant table.
    Thanks

    SAP calls &0000000000000-&9999999999999 variants "temporary" or "internal".
    Every time you use SUBMIT VIA JOB..., SAP creates an internal variant. This is explained in [ABAP documentation - SUBMIT - Job options|http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_VIA_JOB.htm] :
    > When the program is scheduled in the background task, the selections specified by the user or in the additions for filling the selection screen are stored in an internal variant...
    Of course, it might be an issue if your program tests SY-SLSET variable, or have a program which analyzes the jobs based on the variant names (table TBTCP)
    But I wondered why the variant is passed to the job step correctly when we submit a job manually.
    By debug, I saw that SAP calls JOB_SUBMIT function module instead of SUBMIT ... VIA JOB ...
    It seems it builds directly the steps of the job, with the right variant.
    So, just replace SUBMIT ... with CALL FUNCTION 'JOB_SUBMIT' ... (and keep JOB_OPEN and JOB_CLOSE)

  • Table name for background job with report, variant and step user id list.

    Hello All,
    I need to generate the list of scheduled backgroung job with the list of Report Name, Variant, Step User Id called. Please any one tell the SAP Table name from which I can get these data.
    Thanks in Advance,
    Amit

    Hi Rohit,
    Thanks for your reply. But from TBTCO, i can't find program/report name and variant. Just the list of background job i can see.
    Regards,
    Amit

  • Schedule a job with email destination in BOXI R2 with email format as html

    Hello Guys, would it to possible to schedule a job with email destination in BOXI R2 with email format as html? we are able to get it running with plain text email format. we use Java SDK to interface with BO Enterprise servers.
    thanks for your thoughts,
    Venkat

    Hi
    your job should SMOF_DOWNLOAD can bring new material master if you set up correctly.
    as a smart method smof_download is the best way.
    doble check your filter condition. it should work as you expected. because we dont involve in  manual pulling...
    check your variant once again. in vari table,
    can you check r3ac1 - filter settings- source seetingsa--> source site nmae --> backendlogical system and filter sync..
    br
    Muthu

  • Schedule background job using system variant

    Dear gurus,
    We're planning to schedule background job using system variant, for example, current fiscal year and current posting period (transaction AFAB). Is it possible? So for example, for this month, "Posting Period" value will be 6, and then next month will be 7.
    Can you tell me how to do this, if I want to set up the schedule only once?
    Thanks for your help.
    Best Regards,

    done using abap

  • Who scheduled a job with service user

    Hi,
    In my one of the system one job is running with service user. As service user cannot log into system. One of the dialog user logged in to system and scheduled one job with service user. this job is running more than 2 months. Now we want to know who is that dialog user scheduled this job with service user.  I have checked in job details it is not showing dialog user who has sheduelded first time.
    Pls someone help me in this case.
    Kind regards,
    Ram
    <subject_modified>
    Use a proper subject
    Read the "Rules of Engagement"
    Edited by: Juan Reyes on Jul 1, 2009 10:25 AM

    Just check the job owner.... If the Owner is the service user then most likely the user was changed to service user after the job creation. Also be aware that some jobs are generated by the system.
    Regards
    Juan

  • Schedule FTP Job with OEM 9i

    Hi All,
    Does anyone have experience of setting schedule ftp job with OEM and could give me some hints or an example, thank you very much. I am now using Oracle 9i.
    Rds,
    CH

    Lucas,
    Your first issue is regarding the control file not being passed. In order to fix that you have to specify the control file in the mapping configuration. Beware that this control file is being read through utl_file, i.e. you will have to set the utl_file_dir in the init parameters of your database to the correct directory in order for the database to be able to read it. Basically, the control file is being read in order to fill the audit tables with the correct data.
    Your second issue is regarding the type of job. As you may know OWB 'integrates' with Oracle Workflow (OWF) as well. The OWF solution also relies on the use of OEM for job execution. All of that is currently managed by Workflow Queue Listener. In order for Workflow Queue listener to be able to correctly handle the OEM jobs (defined as external functions in OWF) the job has to be defined as is. Besides, with the current way of registering the jobs all jobs (PL/SQL, ABAP or SQL Loader) are registered in the same way and directed by parameters.
    Hope this helps,
    Mark.

  • How to save Jobs with different priority level in a Queue?

    Hi, Friends,
    I have a set of Job (see below) objects.
    I would make a queue: if they have the save priority level, first in and first out. this is easy to do by ArrayList. however, If they have different priority level, I would like make the Jobs with the highest level first out.
    How can I implemented this idea in Java?
    Regards,
    Youbin
    public class Job {
    private short _priorityLevel = 0;
    public void setPriorityLevel(short priorityLevel) {
    this._priorityLevel = priorityLevel;
    public short getPriorityLevel() {
    return _priorityLevel;

    Hi,
    Here is my test code, it works:
    public class Job implements Comparable{
    private int _priorityLevel=0;
    private String _jobDescription=null;
    public Job() {
    public void setPriorityLevel(int priorityLevel) {
    this._priorityLevel=priorityLevel;
    public int getPriorityLevel() {
    return this._priorityLevel;
    public void setJobDescription(String jobDescription) {
    this._jobDescription=jobDescription;
    public String getJobDescription() {
    return this._jobDescription;
    public int compareTo(Object obj) {
    return (this._priorityLevel-((Job)obj)._priorityLevel);
    import java.util.LinkedList;
    import java.util.Iterator;
    import java.util.Collections;
    import java.util.Collection;
    public class test {
    public test() {
    public static void main(String[] args) {
    Job job1 = new Job();
    job1.setJobDescription("Job1");
    job1.setPriorityLevel(2);
    Job job2 = new Job();
    job2.setJobDescription("Job2");
    job2.setPriorityLevel(2);
    Job job3 = new Job();
    job3.setJobDescription("Job3");
    job3.setPriorityLevel(2);
    Job job4 = new Job();
    job4.setJobDescription("Job4");
    job4.setPriorityLevel(1);
    Job job5 = new Job();
    job5.setJobDescription("Job5");
    job5.setPriorityLevel(1);
    Job job6 = new Job();
    job6.setJobDescription("Job6");
    job6.setPriorityLevel(1);
    LinkedList linkedList = new LinkedList();
    linkedList.addLast(job1);
    linkedList.addLast(job2);
    linkedList.addLast(job4);
    Iterator ite=linkedList.iterator();
    while (ite.hasNext()) {
    System.out.println(((Job)ite.next()).getJobDescription());
    System.out.println("---------");
    Collections.sort(linkedList);
    ite=linkedList.iterator();
    while (ite.hasNext()) {
    System.out.println(((Job)ite.next()).getJobDescription());
    System.out.println("---------");
    linkedList.addLast(job3);
    ite=linkedList.iterator();
    while (ite.hasNext()) {
    System.out.println(((Job)ite.next()).getJobDescription());
    System.out.println("---------");
    Collections.sort(linkedList);
    ite=linkedList.iterator();
    while (ite.hasNext()) {
    System.out.println(((Job)ite.next()).getJobDescription());
    System.out.println("---------");
    linkedList.addLast(job5);
    linkedList.addLast(job6);
    ite=linkedList.iterator();
    while (ite.hasNext()) {
    System.out.println(((Job)ite.next()).getJobDescription());
    System.out.println("---------");
    Collections.sort(linkedList);
    ite=linkedList.iterator();
    while (ite.hasNext()) {
    System.out.println(((Job)ite.next()).getJobDescription());
    }

  • Reports-Job-Scheduler: create job with startoption later: wrong date-format

    Hi,
    I test reports 11.1.1.2.0 (weblogic11 g) and try to start a report job with Reports-Job-Scheduler.
    Startoption: later and date = 09:48 Jan 12, 2010
    When I submit the job I get following Error:
    REP-50006: Das Argument SCHEDULE ist in der Befehlszeile ungültig: 09:48 Jän 12, 2010
    in english:
    Rep-50006: argument Schedule is wrong in command line: 09:48 Jän 12, 2010
    Why is Jän instead of Jan.
    When I start the report in February then it works.
    I defined also environment variables in basic configuration for the report server:
    NLS_DATE_FORMAT DD.MM.YYYY
    NLS_DATE_LANGUAGE GERMAN
    NLS_LANG GERMAN_GERMANY.WE8ISO8859P1
    I would be very pleased to get support.
    Many thanks
    Alois

    I created a SR and oracle support found a bug in EM.

  • Job with dynamic variant

    Hello everybody,
      Could somebody help me to run a job with a dynamic variant (for instance a report with the changes for the last N days).
      I read things about SAP_StoreVariant and RedwoodScript but I'm not able to perform the job...
      Thanks for your help.

    Go through this link...
    http://help.sap.com/saphelp_47x200/helpdata/en/d1/802cfc454211d189710000e8322d00/frameset.htm
    In this page
    ABAP Workbench tools -->
                      VARIANTS  -->
                            VARIABLE VALUES IN VARIANTS.
    Hope this helps u a lot...
    reward if it helps u...
    sai ramesh.

  • How to define job with different username

    Friends,
    How can I define a job with another username . Or how can I change a job running with a user name to another username. Please advise.
    Thanks.

    You can change the ID of the user than is used to run each step of the job, but not the user that created the job. In SM37 go into the job of interest (the next scheduled job) choose Job -> Change. From here choose the steps and go into each job step by choosing Change, the first field in the pop-up holds the user ID that will be used to run that step when the job is executed.
    The user ID that created the job will still show in the SE37 job overview, it it nolonger plays an active part in the job.
    ~As found in forum

  • How to schedule multiple reports with different local to change static field language ?

    Hi all,
    we have requirement that we will place multiple schedule request on same server ,This schedule request will be different local setting with parameter value like: en-GB,en-US,Chinese...etc .We used translation Manager for this and it takes this parameter and change report language for static fields.
    problem is that ,on server it is not working properly,we tested for one report .if we pass prompt value to change local setting in report the we need to log off and login again in CMC to reflect new local or on BI Launchpad we need to refresh page then it shows new language.
    How we can do this with multiple scheduled report which will have different local value like en-GB,en-US,Chinese,German....?These schedule request are getting placed in server by one user .
    Please help us with sample code.
    Thanks
    Madan

    Hi,
    The only approach I can think of is to create a template report which uses variables
    For each column you would need to variable
    v_columnAName and v_columnAValue
    v_columnAName would have a if statement in it
    =if([client]="clientA" or [client]="clientC";NameOf([firstName]);if([client]="clientB";NameOf([SSN]);NameOf([lastName]));
    v_columnA would have a if statement in it
    =if([client]="clientA" or [client]="clientC";[firstName];if([client]="clientB";[SSN],[lastName]));
    This would only work when you had a small set of clients.
    This might be more managable if it was done in the universe
    Regards
    Alan

  • Executing a program multiple times with different variants

    Hi All,
    I want to create a tool which executes a program multiple times taking different variants (which I would be
    maintaining in an excel sheets) and for each time the program gets executed, its output would be
    written to a particular file.
    I understand that this requirement is quite vague but I am trying to figure out if a tool/program could
    be written in abap which does this or do I need to think of a different platform such as C#.Net
    Thanks,
    Faiz

    Hi Rahman,
    This class 'cl_salv_bs_runtime_info' will get the output of internal table.
       DO n times.
          cl_salv_bs_runtime_info=>set
          SUBMIT ZARCHER_0099 WITH VARIANT..(variant name can from your excel sheets?)
          cl_salv_bs_runtime_info=>GET_DATA
          call 'GUI_DOWNLOAD'  or OPEN DATASET...(down output to file)
       ENDDO.
    Hope can help you.
    regards,
    Archer

Maybe you are looking for

  • Print Booklet Bleed Issue in CS6

    When I try to print the file as a booklet, the left and right bleeding of some pages does not appear on themselves; however, they appear on the next spread. The spread goes like this, with some objects exceeding the pages for bleeding: When I print a

  • How to import into lightroom 3.6 from my pictures windows xp

    also, after editing in Develop the photo goes darker in Print and also darker back to Develop and Library

  • Manager's Desktop

    Hi, To get a custom abap report in the manager's desktop, i have done the following in IMG: 1. Define Function Code 2. Define Structure of Function Code : Scenario MWB1, Higher level function code HIS How can i ensure that the report only outputs the

  • Database model overview

    Hello, i am searching for a document which gives an overview of the database model (standard tables with cardinality) in SAP R/3. I am new in developing and consulting and such an overview would ease lots of tasks. thx for helping. regards, Markus

  • Running custom SQL

    How can we run a custom SQL from HTML DB Button depending on page item. For example Page have a "calculate age" button And calculated age update a employees table for an employee record. UPDATE emp SET age=(sysdate-:p_birth_date) WHERE :p_emp (:p_emp