<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: stop hourly background job only for two hours in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/stop-hourly-background-job-only-for-two-hours/qaa-p/11700213#M4375429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure how this would work however logically I am giving my suggestion. Please try this in non-production systems and verify, if works then do the same in PRD. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. define calendar with all days as working days except sunday --&amp;gt; schedule the job on hourly basis based on this calendar&lt;/P&gt;&lt;P&gt;2. Sunday until 4pm--&amp;gt;create one more calendar with all sundays only working day and remaining are holidays, schedule the same job , specify the option "No Start After" 4pm (only on sundays util 4pm only)&lt;/P&gt;&lt;P&gt;3. Sunday after 7pm--&amp;gt; reuse the same calendar you have created in step 2 (calendar with all Sundays are working day), schedule the same job with different name from 7pm to hourly basis only during working days as per the created calendar (only on sundays from 7pm to end of sunday) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Monday, the first created job should continue the execution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have CPS in your environment, you may check options with CPS to schedule the job. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anybody has less complex idea, Please share here. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pradeep &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Apr 2016 22:21:01 GMT</pubDate>
    <dc:creator>tamil_arasan</dc:creator>
    <dc:date>2016-04-12T22:21:01Z</dc:date>
    <item>
      <title>stop hourly background job only for two hours</title>
      <link>https://community.sap.com/t5/technology-q-a/stop-hourly-background-job-only-for-two-hours/qaq-p/11700210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guru's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a background job in our Production system which is scheduled to run on hourly basis regularly . i have received a new requirement to stop executing the job for between 4 pm to 7 pm&amp;nbsp; only on Sunday and rest of the days it should run regularly on hourly basis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;awaiting for valid inputs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Harsha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 09:53:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/stop-hourly-background-job-only-for-two-hours/qaq-p/11700210</guid>
      <dc:creator>former_member706808</dc:creator>
      <dc:date>2016-04-12T09:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: stop hourly background job only for two hours</title>
      <link>https://community.sap.com/t5/technology-q-a/stop-hourly-background-job-only-for-two-hours/qaa-p/11700211#M4375427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ANY HELP ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 14:58:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/stop-hourly-background-job-only-for-two-hours/qaa-p/11700211#M4375427</guid>
      <dc:creator>former_member706808</dc:creator>
      <dc:date>2016-04-12T14:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: stop hourly background job only for two hours</title>
      <link>https://community.sap.com/t5/technology-q-a/stop-hourly-background-job-only-for-two-hours/qaa-p/11700212#M4375428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without the use of a scheduler (SAP Cronacle, Control-M, Dollar-U...) I only see 2 solutions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Create a specific ABAP program that will check the date and run your program only if it is not Sunday between 3 to 7.&lt;/P&gt;&lt;P&gt;Schedule that specific ABAP program to run hourly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Use the OS scheduler (Windows task manager or Unix Cron) to define 24 daily tasks for each hour running every day, except the tasks for 4pm to 7pm that will not run on Sunday.&lt;/P&gt;&lt;P&gt;Create a specific event using transaction SM64&lt;/P&gt;&lt;P&gt;The OS scheduler tasks will raise the created event running &lt;SPAN style="font-family: courier new,courier;"&gt;sapevt&lt;/SPAN&gt; OS command&lt;/P&gt;&lt;P&gt;Create your job in SAP as an event based periodic job waiting for the event you have defined.&lt;/P&gt;&lt;P&gt;Periodic event based program reschedule itself automatically once it has run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using Unix cron it could be possible to only define 2 tasks&lt;/P&gt;&lt;P&gt;- one running every hour on Monday to Saturday&lt;/P&gt;&lt;P&gt;- one running at specific hours on Sunday&lt;/P&gt;&lt;P&gt;It does not seem to be possible to do the same with the Windows task manager, so on Windows =&amp;gt; 24 tasks !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 15:31:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/stop-hourly-background-job-only-for-two-hours/qaa-p/11700212#M4375428</guid>
      <dc:creator>ACE-SAP</dc:creator>
      <dc:date>2016-04-12T15:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: stop hourly background job only for two hours</title>
      <link>https://community.sap.com/t5/technology-q-a/stop-hourly-background-job-only-for-two-hours/qaa-p/11700213#M4375429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure how this would work however logically I am giving my suggestion. Please try this in non-production systems and verify, if works then do the same in PRD. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. define calendar with all days as working days except sunday --&amp;gt; schedule the job on hourly basis based on this calendar&lt;/P&gt;&lt;P&gt;2. Sunday until 4pm--&amp;gt;create one more calendar with all sundays only working day and remaining are holidays, schedule the same job , specify the option "No Start After" 4pm (only on sundays util 4pm only)&lt;/P&gt;&lt;P&gt;3. Sunday after 7pm--&amp;gt; reuse the same calendar you have created in step 2 (calendar with all Sundays are working day), schedule the same job with different name from 7pm to hourly basis only during working days as per the created calendar (only on sundays from 7pm to end of sunday) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Monday, the first created job should continue the execution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have CPS in your environment, you may check options with CPS to schedule the job. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anybody has less complex idea, Please share here. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pradeep &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 22:21:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/stop-hourly-background-job-only-for-two-hours/qaa-p/11700213#M4375429</guid>
      <dc:creator>tamil_arasan</dc:creator>
      <dc:date>2016-04-12T22:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: stop hourly background job only for two hours</title>
      <link>https://community.sap.com/t5/technology-q-a/stop-hourly-background-job-only-for-two-hours/qaa-p/11700214#M4375430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Pradeep about defining a six day calendar for the hourly requirement. But personally, I would copy the job 22 times giving each job name a unique name like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;JOBNAME_SUN_0100&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;JOBNAME_SUN_0200,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;JOBNAME_SUN_0300,&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;JOBNAME_SUN_1200,&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;JOBNAME_SUN_1300,&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;JOBNAME_SUN_1400,&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;JOBNAME_SUN_1500,&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;JOBNAME_SUN_2000,&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I would schedule those jobs on a weekly frequency; each with their appropriate start time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 23:04:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/stop-hourly-background-job-only-for-two-hours/qaa-p/11700214#M4375430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-12T23:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: stop hourly background job only for two hours</title>
      <link>https://community.sap.com/t5/technology-q-a/stop-hourly-background-job-only-for-two-hours/qaa-p/11700215#M4375431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A __default_attr="1073411" __jive_macro_name="user" class="jive_macro_user jive_macro" data-objecttype="3" data-orig-content="Stephen Ferracioli" href="https://community.sap.com/"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, this is good and simple&amp;nbsp; &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/98/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt; . He has to follow this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Define Calendar for weekdays including Saturday and schedule the job on hourly basis &lt;/P&gt;&lt;P&gt;2. Schedule 22 jobs on weekly basis on Sundays as you suggested &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&amp;nbsp; Calendar with Sundays as working day as I have suggested. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pradeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 00:22:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/stop-hourly-background-job-only-for-two-hours/qaa-p/11700215#M4375431</guid>
      <dc:creator>tamil_arasan</dc:creator>
      <dc:date>2016-04-13T00:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: stop hourly background job only for two hours</title>
      <link>https://community.sap.com/t5/technology-q-a/stop-hourly-background-job-only-for-two-hours/qaa-p/11700216#M4375432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all very much for all the valid inputs . will try and discuss all these suggestions within our team and will come up with one feasible&amp;nbsp; solution &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/98/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 11:32:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/stop-hourly-background-job-only-for-two-hours/qaa-p/11700216#M4375432</guid>
      <dc:creator>former_member706808</dc:creator>
      <dc:date>2016-04-13T11:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: stop hourly background job only for two hours</title>
      <link>https://community.sap.com/t5/technology-q-a/stop-hourly-background-job-only-for-two-hours/qaa-p/11700217#M4375433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have dealt with these kinds of impromptu scheduling change requirements from the business units for years. Without a central scheduling system like Redwood, I found that the best way to deal with these kinds of requirements was the simplest way. Create a special job or jobs. It's tedious, but less error prone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If a job doesn't conform to a hourly frequency, then look at creating a series of daily jobs.&lt;/LI&gt;&lt;LI&gt;If a job &lt;SPAN style="font-size: 13.3333px;"&gt;doesn't &lt;SPAN style="font-size: 13.3333px;"&gt;conform to a&lt;/SPAN&gt; daily frequency, then look at creating a series of weekly jobs.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 23:21:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/stop-hourly-background-job-only-for-two-hours/qaa-p/11700217#M4375433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-13T23:21:33Z</dc:date>
    </item>
  </channel>
</rss>

