<?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: Create Event with variable schedule-spec in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/create-event-with-variable-schedule-spec/qaa-p/13816074#M4846917</link>
    <description>&lt;P&gt;So does it work now?&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2019 10:37:04 GMT</pubDate>
    <dc:creator>VolkerBarth</dc:creator>
    <dc:date>2019-09-25T10:37:04Z</dc:date>
    <item>
      <title>Create Event with variable schedule-spec</title>
      <link>https://community.sap.com/t5/technology-q-a/create-event-with-variable-schedule-spec/qaq-p/13816069</link>
      <description>&lt;P&gt;Hello,
is there any way to use a variable (of type time) in the statement of creating an event?&lt;/P&gt;
&lt;P&gt;begin&lt;/P&gt;
&lt;P&gt;set &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1491955"&gt;@TIME&lt;/a&gt; = '09:00';&lt;/P&gt;
&lt;P&gt;create event myevent schedule start time &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1491955"&gt;@TIME&lt;/a&gt; every 5 minutes handler begin end;&lt;/P&gt;
&lt;P&gt;end&lt;/P&gt;
&lt;P&gt;I tried even with execute immediate without success!!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 07:26:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-event-with-variable-schedule-spec/qaq-p/13816069</guid>
      <dc:creator>Baron</dc:creator>
      <dc:date>2019-09-24T07:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create Event with variable schedule-spec</title>
      <link>https://community.sap.com/t5/technology-q-a/create-event-with-variable-schedule-spec/qaa-p/13816070#M4846913</link>
      <description>&lt;P&gt;This should work with EXECUTE IMMEDIATE when specifying the variable as a literal value, AFAIK. What exactly have you tried?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 08:14:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-event-with-variable-schedule-spec/qaa-p/13816070#M4846913</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2019-09-24T08:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create Event with variable schedule-spec</title>
      <link>https://community.sap.com/t5/technology-q-a/create-event-with-variable-schedule-spec/qaa-p/13816071#M4846914</link>
      <description>&lt;P&gt;I am trying to execute this block:&lt;/P&gt;
&lt;PRE&gt;begin

declare @time1 time;

set @time1 = '09:00';

execute immediate ('create event SyncPrAtH schedule start time ''' + convert(varchar(5), @time1) + ''' every 3 minutes handler');

begin

select * from dummy;

end;

end;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Sep 2019 08:52:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-event-with-variable-schedule-spec/qaa-p/13816071#M4846914</guid>
      <dc:creator>Baron</dc:creator>
      <dc:date>2019-09-25T08:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Create Event with variable schedule-spec</title>
      <link>https://community.sap.com/t5/technology-q-a/create-event-with-variable-schedule-spec/qaa-p/13816072#M4846915</link>
      <description>&lt;P&gt;You have to include the whole CREATE EVENT statement including the handler block as argument to EXECUTE IMMEDIATE.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 09:16:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-event-with-variable-schedule-spec/qaa-p/13816072#M4846915</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2019-09-25T09:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create Event with variable schedule-spec</title>
      <link>https://community.sap.com/t5/technology-q-a/create-event-with-variable-schedule-spec/qaa-p/13816073#M4846916</link>
      <description>&lt;P&gt;Oh, Sorry!!
I dont know why I was so fast to post it here before looking more closely into my code.&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 10:01:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-event-with-variable-schedule-spec/qaa-p/13816073#M4846916</guid>
      <dc:creator>Baron</dc:creator>
      <dc:date>2019-09-25T10:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create Event with variable schedule-spec</title>
      <link>https://community.sap.com/t5/technology-q-a/create-event-with-variable-schedule-spec/qaa-p/13816074#M4846917</link>
      <description>&lt;P&gt;So does it work now?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 10:37:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-event-with-variable-schedule-spec/qaa-p/13816074#M4846917</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2019-09-25T10:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create Event with variable schedule-spec</title>
      <link>https://community.sap.com/t5/technology-q-a/create-event-with-variable-schedule-spec/qaa-p/13816075#M4846918</link>
      <description>&lt;P&gt;Yes, it worked!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 15:58:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/create-event-with-variable-schedule-spec/qaa-p/13816075#M4846918</guid>
      <dc:creator>Baron</dc:creator>
      <dc:date>2019-09-25T15:58:42Z</dc:date>
    </item>
  </channel>
</rss>

