Change the period of a job

If I change the period of a job at runtime, how this job will be scheduled?
If this job is idle when I change its period. If the idle time has been larger than new period, will this job be invoked as soon as I set the new period?
If the idle time is still smaller than the new period, will this job be invoked in a time of (new_period - idle_time)?
I want to know the details of the transitional duration. THANKS A LOT :)

Hi,
Here are some answers . I have also included a test case below which is trivial enough that you should verify this for yourself.
If this job is idle when I change its period. If the idle time has been larger than new period, will this job be invoked as soon as I set the new period?It won't run immediately but it will run at its next scheduled time i.e. after a time less than the new_period - see test case below, but wait more than 2 minutes before doing set_attribute.
If the idle time is still smaller than the new period, will this job be invoked in a time of (new_period - idle_time)?Yes it will - see test case below, but wait less than 2 minutes before doing set_attribute.
I want to know the details of the transitional duration. As soon as you do a set_attribute the scheduler recalculates the next_run_date of the job and it will run at that date.
Here is the test case. How long you wait before doing the set_attribute determines whether you are testing case #1 or case #2.
grant create job to scott;
connect scott/tiger
-- test updating repeat_interval while job is enabled
begin
  dbms_scheduler.create_job('j1',
    job_type=>'plsql_block', job_action=>'null;',
    repeat_interval=>'freq=hourly',enabled=>true);
end;
-- wait a few seconds for the job to run
select job_name, state, run_count, last_start_date, next_run_date
  from user_scheduler_jobs ;
-- wait less than 2 minutes or more than 2 minutes
begin
  dbms_scheduler.set_attribute('j1','repeat_interval','freq=minutely;interval=2');
end;
select job_name, state, run_count, last_start_date, next_run_date
  from user_scheduler_jobs ;Hope this helps,
Ravi.

Similar Messages

  • Changing the period in Reversed payment document

    Dear All,
    I badly need your help. I have reversed one Payment document in wrong period. Now Payment document is in period 09 while reversal document is in period 10.
    Is there any way to undo this reversal or else change the period in the reversed document?
    Here I need one suggestion as well. What will be the implication of this in period end closing activity?The payment document is closed and refering to reverse document as well.
    What I know is for period closing system checks for only open items.
    Please suggest on this.
    Regards
    Suchitra

    Dear Gordon,
    Even If I go to F-02 and do manual entry for period 09. Then my f-02 document will have status as open, In this case in month end closing this open item will create problem.
    Can I cancel or delete the wrongly reversed document any ways in SAP?
    Regards,
    Suchitra

  • Change the period labelling in the planning book

    Hi I want to change the period labelling in the planning book. currently it is showing default I want to customize it to January, february, etc. I know there is a user exit APODM006. but I want to know the process to do it. thank you

    Hi friends
    Is there a way to achieve this? What can be the approach to solve the requirement?
    Hi Pratik,
    How to go with the requirement? Can this be achieved?
    Regards,
    Raju.
    Message was edited by:
            Narayana Raju Sampathirao

  • Want to change the SQL Server Agent Job History Text Files Location

    We have SQL Server 2014 installed on a couple servers, but they were not consistent on directory paths during the installs. I am trying to get the servers to all match.
    On one server, SQL Server the Agent Log and Job History files were being written to [H:\Data Root Directory\MSSQL12.MSSQLSERVER\MSSQL\Log].
    I want to change that to [H:\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\Log] to match the other server.
    I have ALREADY gone into SSMS - [SQL Server Agent] - [Properties] and changed the "Error Log " "Fle Name" to [H:\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\Log\SQLAGENT.OUT].  And that is working great.
    In [SQL Server Configuration Manager] - [SQL Server (MSSQLSERVER)] - [Properties] - Startup Parameters entries have been changed to the new path (-d, -e, and -l), and under [Advanced] both Data Path and Dump Directory are pointing to the new path. 
    In [SQL Server Configuration Manager] - [SQL Server Agent (MSSQLSERVER)] - [Properties] - [Advanced] Dump Directory is pointing to the new path. 
    However, the job's History text files are still being written to the old path.
    There is no setting in the Jobs or the Maintenance Plans that controls the history file location.
    I have searched the registry and changed three settings from the old path to the new path.  The registry does NOT contain any more references to the old path.
    I rebooted the server, but when the jobs run their history text files are still be written to the old path.
    Does anybody have any ideas??   Thanks

    I checked the [Job] - [Step] - [Advanced ] - "Output File", and the field is blank.
    I then reviewed all the tabs and left menu items in the Job...I cannot find any where the references the old path.
    I then went to the Maintenance Plan and checked every thing there.  Still cannot find what is referencing this old path.
    SQL Server is also still writing xel files to this old path...if that offers any clues.
    The text file being generated is the recap of the Job run.  Starts with this:
    Microsoft(R) Server Maintenance Utility (Unicode) Version 12.0.2430
    Report was generated on "xxxxxxxxxxxxxxx".
    Maintenance Plan: SQL_Backups_Log
    Duration: 00:00:03
    Status: Succeeded.
    Details:
    Thanks for the ideas....

  • How to change the owner of a job?

    Hello.
    I am trying to change the user ID that runs all jobs from a personal user id to a generic user id. Is there a way to change the owner that runs a job?
    Thanks.

    Use the LibrarySession.getDirectoryUserCollection() method to return a Collection of DirectoryUser objects in the system.

  • Change the period

    Dear MM Guru,
    Can we change the Current period (Posting period) of Company code in Material Management, If it has been enteried wrong.
    While changing it a masseage is comming : -
    The Company code -
    can no longer be initialized.
    T Code: - OMSY.
    But this is a way to go forward, but not to go previous.
    If some one has enteried the posting period of before, and he want to revert back, can it possible.
    Kindly reply,
    Regards
    Manoj.

    check the following thread:
    Posting period
    regards,
    indranil

  • The Mac App Store - changing the philosophy of Steve Jobs

    I've just finished Steve Jobs autobiography. I started thinking about Steve Jobs and the intentional philosophy of making sure the hardware worked well with the software to make a "few core products." The MAC App store is a sellout moving away from this truth. Perhaps Apple one day will realize that moving away from "the top five products" to supporting zillions of software apps is a huge error. It is a sellout to make more and more profits. While this may work in the short-term, I would much rather see Apple focus on a few good third-party software products. Perhaps something like a brand certification such as "Apple certified software" to be only awarded to the very best in the App store. It may be a good idea to have an SDK that is required to meet this very high standard. While I know Apple does filter the titles in their app store, it does not offer the true legacy of what Steve Jobs stood for, making the software and hardware work as team to make "great products." "People at Apple were charged to make great products and not great profits," sometimes surprising the public with what they didn't realize they needed. The App store is not built to support the high standard that is Apple. I hope this will change one day.

    I've just finished Steve Jobs autobiography. I started thinking about Steve Jobs and the intentional philosophy of making sure the hardware worked well with the software to make a "few core products." The MAC App store is a sellout moving away from this truth. Perhaps Apple one day will realize that moving away from "the top five products" to supporting zillions of software apps is a huge error. It is a sellout to make more and more profits. While this may work in the short-term, I would much rather see Apple focus on a few good third-party software products. Perhaps something like a brand certification such as "Apple certified software" to be only awarded to the very best in the App store. It may be a good idea to have an SDK that is required to meet this very high standard. While I know Apple does filter the titles in their app store, it does not offer the true legacy of what Steve Jobs stood for, making the software and hardware work as team to make "great products." "People at Apple were charged to make great products and not great profits," sometimes surprising the public with what they didn't realize they needed. The App store is not built to support the high standard that is Apple. I hope this will change one day.

  • Changing the timing in scheduler jobs

    Hi All,
    In the below code I have given the execution timing as 2:15. But next run date value is showing as 3:00 AM. What is wrong here?. I created this job at 2:00 AM
    SQL> select owner,LAST_START_DATE,NEXT_RUN_DATE from dba_Scheduler_jobs where JOB_NAME='job2' and owner='owner1';
    OWNER LAST_START_DATE NEXT_RUN_DATE
    owner1 08-DEC-12 03.00.00.000000 AM -
    05:00
    SQL> BEGIN
    2 DBMS_SCHEDULER.create_job (
    3 job_name => owner1.job2',
    4 job_type => 'PLSQL_BLOCK',
    5 job_action => job2();',
    6 start_date => '08-Dec-12 2.15.00AM',
    7 repeat_interval => 'freq=hourly; byminute=0; bysecond=0;',
    8 end_date => NULL,
    9 enabled => TRUE,
    10 comments => 'None');
    11 END;
    12 /

    the start_date defines the point in time when the schedule becames active. But the time of the next execution is determined by the repeat_interval - in your case: byminute=0; bysecond=0:
    BEGIN
      DBMS_SCHEDULER.create_job (
      job_name => 'test_job',
      job_type => 'PLSQL_BLOCK',
      job_action => 'begin null; end;',
      start_date => to_date('08.12.2012 02:15', 'dd.mm.yyyy hh24:mi'),
      repeat_interval => 'freq=hourly; byminute=0; bysecond=0;',
      end_date => NULL,
      enabled => TRUE,
      comments => 'None');
    END;
    select job_name
         , start_date
         , repeat_interval
         , next_run_date
      from dba_scheduler_jobs
    where job_name like '%&job_name%'
       and owner not like 'SYS%'
    order by owner
            , job_name
    JOB_NAME   START_DATE                          REPEAT_INTERVAL                      NEXT_RUN_DATE
    TEST_JOB   08.12.12 02:15:00,000000 +01:00     freq=hourly; byminute=0; bysecond=0; 08.12.12 12:00:00,000000 +01:00

  • Payroll - Changing the payroll period dates in live system

    We are on a bi-weekly payroll schedule.  Requirement was the setup the pay period from Monday to Sunday (14 days).  However, it got created as Sunday to Saturday (14 days) in error.  Now the time recording does not coincide with the pay period.  I believe we can change the period start and end dates for all pay periods in V_T549Q.  This will make one of my pay period 15 days and I can continue correctly from then on. 
    I am curious to know whether there are any "side effects" if I do this in a live system.  Have any of you did this type of thing in SAP payroll?
    Thanks
    Joe

    Why do you want to change table entries directly in PRD.....You can generate payroll periods in Dev through report RPUCTP00...and then make sure your table entries correct in Dev and then move to PRD.
    Generate Payroll periods as per your Biweekly through report RPUCTP00.....Enter your Biweekly Period Parameter, Date modifier, Start date, Final year, Start date of the fiscal year ,payday rule etc...and execute.
    Mohan

  • Help with : How Can I know the schedule for a JOB, and How Can I Change?

    Hi
       I have a job and I know the name...I review in table TBTCO and I saw that this jobs is schedule at 11:00 AM and at 4:00 PM, but I need to change the schedule for this job..and that this job will execute al least four times during the day...I don´t know how can I change the schedule??
        I was thinking that if I  run the transaction directly I can run, Im not sure, because I try to do in QAS environment... I when I try to run the program..the system doesn´t do anything..this mean I cant execute with F8, such as if I should be complete a parameter, but all the fields are completed.
         Thank you for your help, I promese that I will gice you points for your help.
    Alice

    Thank you at all.
    I was reviewing the options that you send me, but Im confused about... if its possible edit the schedule that this job has in this moment, because if I enter the transaction SM36 or try to see SM37..in production environment I can´t see this schedule...
    And Im not sure to do the correct steps to create something new... in QAS environment..I can´´t see this job.
    All of yours help are really important
    Thank you again!
    Alice

  • Record not appearing in custom infotype without selecting the period.

    Hi All,
    I have created a HR Custom Infotype for Medical Examination. Whenever i create a record for a particular employee and again i click on the Display button for the same employee, a message is diplayed "No data stored for Medical Examination details in the selected period". And when i select the ALL radio-button in the period selection area,only then the record is displayed. Why is it so that manually i need to select the ALL radiobutton to display the record? It is not so for other infotypes. Is there any solution for this, i mean can we change some settings to resolve this issue?
    Thanks in advance,
    Arpita Raizada.

    In PA20/30 we have period from and to dates on screen. If any date is entered on these screens then data from infotype is displayed based on these dates.
    If your record doesn't overlap/falls with these entered dates then system displays the message. Changes the period dates accordingly and system will display the records valid as of entered date.
    Regards,
    Ramnivas

  • 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

  • Urgernt - Change Current Period

    Hi All,
    now we have got problem with change Current Period
    Now system default current period 1/2009.
    We want to change 1/2008.
    pls help Us
    Thanks

    To change the Current Periods:
    1. Deassign the Plants from your company code and save..
       in SPRO>Enterprise structure>Assignment-->plants to company
       Code.
    2. Now, go to OMSY and change the period as you want.
    3. Reassign the plants to your company code and save.
         in SPRO>Enterprise structure>Assignment-->plants to
        company Code.
    4. As as Result Financial Accounts(G/L) will be Effected.
        go to OMWD Transaction and give valuation grouping code for your plant eg, 0001.

  • Error message while changing the delimit date of a job in ppome

    Hi experts,
    I have delimited a job in ppome to date 11.05.2011. But now i want to remove that delimit date and change it to unlimited(31.12.2999). when iam trying to change the delimit date it is showing a popup message 'select a date between 15.11.2008 and 11.05.2011'. Can anyone say why it is showing this message. how can i delimit that job again to 31.12.2999.? Same problem with the position also.
    Pls help...

    Dear Priaynka,
    Thanx for ur reply, I am again furnishing below the details:-
    I have to change the Valuation Class of the material :-
    7 POS for which Goods Receipt & Invoice Receipt have been done from period 1 to 7.
    1 PO for which Goods Receipt & Invoice Receipt have not been made.
    All the material reced in period 1-7 have been consumed by MFBF. Now no material is available in the material in that plant.
    Should I change the valuation class by deleting the line item of all the PO's  7 POs + 1 PO.
    Please advise, as the fresh PO will be made with new val class and GR/IR and Consyumption will happen after the change is made.
    Please advise if I am wrong in the procedure.
    Regards,
    Alok

  • FI-AA Impact on changing the year dependent fiscal year period from 445 to 435

    Dear Friends,
    May I have your comment on the impact of below change
    Currently using Year Dependent fiscal year variant K5 and period end closing is *445
    future we want to use the same fiscal year dependent variant K5 , however the period end closing will be *435
    *445 Periods - 1st month 4th sat, 2nd month 4th sat, 3rd month 5th sat will be the closing periods
      similarly for the rest of the months in a year
    *435 Periods -  1st month 4th month, 2nd month 3rd sat, 3rd month 5th sat will be the closing periods
      similarly for the rest of the months in a year
    Impact on Asset Module and other  modules will be a great help
    Regards
    SB

    Hi Sanjai,
    SAP do not recommend to change a Fiscal Year Variant that has already
    been assigned to a company code and has already some postings. This
    will may create database inconsistencies
    Please check the following SAP notes which will give you an
    idea of some adverse effects that may happen as a result of a change
    based on the modules/components you have implemented in your system.
    427920     Analysis program for fiscal year conversion
    210861     Changing fiscal year variant in production system
    193713     SAPF070: Change of fiscal year variant
    672255     Shortened fiscal year/changing fiscal periods
    The change of the fiscal year or the change of the fiscal periods
    has an effect in many modules, for example, in FI, FI-AA, FI-SL, FI-LC,
    EC-CS, IM, CO, EC-PCA, MM, PP, SD, PS, PM.
    Corresponding risks (for example, data inconsistency, system standstill)
    can arise from incorrect changes to the fiscal year or from incorrect
    changes to the fiscal periods in a live SAP system.
    You can refer to the following wiki page also:
    http://wiki.sdn.sap.com/wiki/x/jYXrCw
    I hope you find this information helpful.
    Regards,
    Jose

Maybe you are looking for

  • Report generation toolkit conditional format - how to?

    Hi We are using the Report generation toolkit (2010 version), and have a question regarding this tool. I see functions for setting the number format, but not a conditional format. Does this not exist? http://zone.ni.com/reference/en-XX/help/372120A-0

  • Can ADF Faces Dialog Framework be used in a Bounded Task Flow ?

    Jdev. 11.1.1.4 I have read chapter "19 Using Dialogs in Your Application" in the Jdev documentation. There explains that there are mainly two methods to open dialogs in ADF: The first (point 19.2) is calling a bounded task flow from a view activity (

  • How to Run Program in SAPB1

    My question is very simple, please urge your help. I 've already downloaded exmaple from e-learning. What I just merely want is to run a "Hello World" in B1, but not in .Net. I can Debug in .Net, and the B1 has reaction, but I don't know how to work

  • What the hell is up?

    On all of my computers, every time I open an app, window or program, Adobe ask me to update the program. This ******* crap is happening 30-40-50 tiams a ******** day. What the hell is the problem? Gegory

  • Printing stalls when "sending data"

    All was well.... then I tried to print something by selecting the adobe pdf8.0 printer. Didn't notice that had stalled until I tried printing something else later with my Epson 580. I can hear that the printer is starting up, but nothing else happens