Change variant for background scheduled jobs

Hi experts,
I want to schedule the report RKO7KO8G in background.
Two of the selection parameters of this report are Settlement period & Settlement year.
This report should be executed in the background every month. For this the period parameter should change every month
, like for example when the report executes in background in May then period should be 05, June - period should be 06
and so on.
i.e. the variant should change.
For this how do i create a dynamic variant. I tried to create dynamic variant but it says that the parameter
should be a date field. However, the settlement period field over has input from 001 to 999 & not date field.
I want to schedule this report in background on a monthly basis and change its input parameter Settlement period
as per the month.
Please suggest.
Regards,
Priti.

Links to sap.technical are NOT permitted. Even via Tiny.
Hi,
Have a look at the below tutorial;
[Dynamic Variant|http://joyjitghosh.blogspot.com/2008_09_01_archive.html]
Regards,
Karthik D
Edited by: Matt on May 27, 2010 10:57 AM - changed url to the source

Similar Messages

  • Change user for backup scheduled job

    Hi all,
    In our ecc 6.0 system is cluster controlled.i have scheduled regular br offline backup @ night for this month in db13.In a particular day for some reason i have removed the scheduler in db13 and also delete the associated released background job in sm37.On the next day after restarting the system i change the user for backup background job in sm37 for the current day but i need the changes for all rest of the day of this month.One option is that delete from db13 and recreate again with required usreid.
    without recreate could anyone tell me how to change the user for background job for the other day also?? 
    Regards
    Pinaki

    Hi
    In order to change the user id in SM37 to run under different user you can highlight the background job which is scheduled to run, double click on that and click on STEP in task bar.
    Click on USER and you would have a change pencil icon.
    Click on Pencile Icon and It would take you to another pop up were you can have the user name entered.
    In this way job would would show some other user name who is creator but would run under the person whom we have entered above.
    Thanks and Regards
    Arun R

  • Creating a variant for background scheduling

    Hi All ,
    I have  3 seperate executable programs which take filename as an input on the selection screen ( from the application server ) . Now the requirement is to schedule these programs as background jobs using a variant , but the variant is not possible as there can be many files in the directory at the same time with different filenames.
    We need to execute all the avalaible files in the application server directory at that time .
    If someone can give any idea how it can be possible to schedule these in background  , I would appreciate the same .
    Thanks
    Ankit

    hi,
    One thing u can do is,
    Store the filename into one txt file,
    and through program read this file for your input purpose,
    that which prog. has to run....
    I hope this will help u.
    thanks
    Dharmishta

  • Regarding Variants for Background jobs

    Hi Folks
    Can you please let me know the procedure how we can create the variants for Background jobs.
    Points are assured for correct answers.
    Regards,
    kumar

    Hi Sree Ram,
    Check this info.
    If you have any selection screen parameters for your program you need to enter the values for those fields in runtime. So, if you schedule your program in background to execute then there is no one to do this job. Here comes the concept of Variant.
    With variant you define what are the selection field values in the runtime. During runtime the program picks this values and runs the program.
    When you execute your program which has selection fields, you enter the values and then you click on 'GO TO ' tab and 'SAVE AS VARIANT'.
    When you schedule your program in background, give this variant also. Then it will run automatically.
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • Debugging of background scheduled job

    Hi guys,
    Can any one explain me 1 scenario why there is a need to debug background scheduled job..., rather then doing in background we can run the same job/report online and do normal debugging.
    thx in advance,
    Cheers,
    Harish

    Hi ARPAN,
    as long as the job is running, you can enter debuuger from SM50 process overview (program->debug) or SM37 Job Overview (Job->catch active Job).
    And to the initial question: Some messages are configured to be created when saving document (e.g. sales invoice). This will trigger a background process. If something goes wrong with smartform or sapscript form, it will cause an update error. This you may need to debug in background.
    Regards,
    Clemens

  • Auto alert mechanism for ATG scheduled job failure and BCC project failure

    Hello all,
    Could you please confirm if there are auto alert mechanisms for ATG scheduled job failure and BCC project failure?
    Waiting for reply.
    Thanks and regards,

    Hi,
    You need to write custom code to get alerts if an ATG Scheduler fails.
    For BCC project deployment monitoring, please refer to the below link in the documentation.
    Oracle ATG Web Commerce - Configure Deployment Event Listeners
    Thanks,
    Gopinath Ramasamy

  • Variants for background jobs

    You need to schedule and automate batch jobs in an organisation. There will be multiple variants and multiple steps within same batch jobs. The variants are date dependent and needs to change every day. You need to automatically change the variants every day and schedule the jobs. Also check for the failures in the jobs. Apart from that Once the jobs in one server example : R/3 server ends the jobs in BW servers should be triggered automatically. Explain all steps with proper T codes and also provide a dry run example. Also provide all the table used for the variants purpose.
    Please help on this,thanks
    Narendra

    Hi Narendra,
    The background jobs are scheduled depending on the requirement with specific variants which are both date specific and even specific sometimes. These variants are created for the programs or reports which are run in the background job ,These variants are stored in VARID table for client specific variants and
    VARID_CI for client independent. For most of the times all these jobs are maintained in some job scheduling tools so that they automatically inform about job failures and processes can be automated.In our organisation we use UC4 for background job schedulign and it controls the process as you are looking for.
    Please award points accordingly
    With Regards,
    Junaid
    Message was edited by:
            muhammed junaid

  • Selection Screen Change & Impact on background scheduled reports

    Hi,
    I have modified the selection screen of a report program by adding additional selection criteria. This report is background scheduled and runs several times with different variants in a day. I am worried that the background jobs may fail in Production if the latest changes are moved. But I think, background jobs will not fails unless the selection criteria that are part of variants that used in the background jobs not modified. But not sure. I just want to make sure, I am doing correct thing.
    Please let me know your thoughts. Appreciate your help!
    Thanks,
    Kannan.

    >
    Advait Gode wrote:
    > When you transport the program to production after changing the selection screen, you will have to re-create all the variants once again. Otherwise the scheduled jobs will fail.
    >
    > regards,
    > Advait
    I don't think so.
    But of course you will have to update the variants to reflect the new selections.
    Rob
    Edited by: Rob Burbank on Jan 14, 2009 10:56 AM

  • Dynamic Variant for Background Programs

    Hi,
    On a Std program, I have two parameter Settlement Period and Settlement Year.
    I want to run this std program in the background with VAriant.
    The values in these variable should change automatically for every new period/fiscal year.
    I tried to user Selection variable. But no success. May be I am doing something wrong.
    Can anyone suggest any solution??
    - Harshad

    Hi Harshad,
    Once u enter the values you require on the selection screen and click on the SAVE button to save a variant, the Variant attributes screen comes up where you can provide a variant name and description.
    On this screen there is a column called "Save field wthout values". If you check this option then the values to which the selection screen variables are defaulted will change dynamically.
    So basically you have to default the selection screen new period/fiscal year in your program to the present values using a function module which im sure your using(if you need it ask me). Once you default them while saving the variant check the "Save field without values" check box against those fields.
    Hope this helps you. Please award points if it does.
    Regards,
    Ganesh
    Message was edited by:
            Ganesh Chilakapati

  • Change print recipient in scheduled jobs (SM37)

    Is it possible to change the print recipient in multiple scheduled jobs (SM37) at the same time?
    Thanks,
    Mark

    You have to change it manually one by one... it is not possible to change it in a multiple jobs at a same time.

  • Capture DDL for Oracle Scheduled Jobs and job from DBMA_JOBS

    I have trying at this for while and now I am stuck...so I need some help or advice.
    I am doing a DB migration and I need to capture the DDL for all Oracle Scheduled Jobs as well as DBMS_JOBS. Anyone have a good way?
    I took a datapump export last week. Can I run a impdp and capture the DDL for this VIA the sqlfile parameter? If so, how? What would be the script for it. Something like this maybe (par file)?
    directory=DP_IMPORT
    DUMPFILE=dump1.dmp
    SCHEMAS=A,B,C...X,Y,Z
    LOGFILE=JOBS.LOG
    EXCLUDE=TABLE,INDEX,CONSTRAINT
    PARALLEL=4
    INCLUDE=JOBS
    ????

    Hello,
    It's JOB, see following table for possible options , I recommend you to read throught this thoroughly before starting.
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_metada.htm#BGBIEDIA
    Regards

  • Rule Variants for work schedule

    Hi All,
    How to create rule variants for the below work schedule rules
    A Shift timings 06 am to 15.00 Hrs and Sunday holiday
    B Shift timings 15:00 to 23 Hrs and Monday holiday
    C Shift Timings 23:00 to 06:00 and Tuesday holiday.
    I have created break Schedule and work schedule rules and
    I want to assign rule variants for the above work schedules.
    This is for Indian scenario.
    Kindly help me out in this regard

    Hi,
    What exactly you are looking for rule variant coz variant is for a rule which assists to define few custom process like reduced working hours, conditions on current day holiday class next day holiday class and weekday.
    Please brief the requirement.
    Regards,
    Rajesh

  • Bat file for running scheduled jobs

    Hi
    I am not entirely sure whether this is the correct forum to post this question, so apologies if I have posted this question in the wrong place.
    Anyhow, I would like to know how to create two automated bat file scripts that will execute a PL/SQL package that will tell my Oracle 10g R2 database to run a scheduled job. Equally, I need another bat file to tell it to drop the scheduled job.
    I already have a PL/SQL package that creates a schedule job using dbms_scheduler, and I can execute the scheduled job by going into SQL Plus running the execute command against the package. It is this latter bit, the execute part that I want to automate into bat file.
    Can someone show me how to do this?

    I'm in complete agreement with Hans. Oracle has two facilities DBMS_JOB and DBMS_SCHEDULER neither of which benefits in any way be being called by a batch file.
    What is your version number (all of it) and why are you considering this idea?

  • How to change userid/owner of scheduled jobs

    I can see the 'userid' of the scheduled jobs using sm37.
    This are the BASIS jobs setup during installation/upgrade last year.
    I would like to reassign the userid of to my own userid...as the consultand userid no longer exists.
    Please advise
    Maria

    hi,
    T code SU01 and give user name which u want 2 create and then click on create option.......
    enter the reqired field.... save
    as u enter the client using ur user id and then system will ask 2 give ur new password...
    if useful assign points...
    regards,
    santosh kumar

  • Query in Background scheduling job...

    Hi friends,
             Is it posiible to schedule a report which has additional screen developed by me(i.e SCREEN 1000 which is standard + SCREEN 9000 which is developed by me to  get the input from user) in background mode.
            When i tried to do it,I was not able to see any SPOOL REQUEST NO. in SM37 Transaction,subsequently I was not able to see the output!!!!!!!!
    With Regards,
    Kumaresh.

    Hi,
    Yes, u can schedule in b/g .wat ever may be the screens.
    As u said no spool is creatde....?
    have u execeuted the reoprt online without any b/g? is it displaying the output?
    Debug the code wheteher the required selection parameters/data  is available in screen 9000
    Revert back , so that i may help..
    Regards,
    Naveen

Maybe you are looking for