<?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>topic Re: executing program depending on time in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-program-depending-on-time/m-p/4020819#M960804</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;after being the list is generated&lt;/EM&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the List...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you let me know...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jun 2008 10:10:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-24T10:10:40Z</dc:date>
    <item>
      <title>executing program depending on time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-program-depending-on-time/m-p/4020818#M960803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is it possible to run the report after being the list is generated with out user interaction&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 10:09:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-program-depending-on-time/m-p/4020818#M960803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T10:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: executing program depending on time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-program-depending-on-time/m-p/4020819#M960804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;after being the list is generated&lt;/EM&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the List...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you let me know...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 10:10:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-program-depending-on-time/m-p/4020819#M960804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T10:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: executing program depending on time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-program-depending-on-time/m-p/4020820#M960805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;You can execute the report. by using the CL_GUI_TIMER Class.&lt;/P&gt;&lt;P&gt;I am sending you the Timer Program just copy and paste this program and do the necessary changes where you need to execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;*******************&lt;STRONG&gt;&amp;lt;removed_by_moderator&amp;gt;&lt;/STRONG&gt;********************&amp;amp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZCC_OOPS_TIMER_
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*

report  zcc_oops_timer no standard page heading.

data : wa(72) type c.


*----------------------------------------------------------------------*
*       CLASS my DEFINITION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
class my definition.

  public section.

    methods : run_handler for event finished of cl_gui_timer.

endclass. "my DEFINITION

data timer type ref to cl_gui_timer.
data myh type ref to my.

data: usr_time type sy-uzeit.
data: time type sy-uzeit.

*----------------------------------------------------------------------*
*       CLASS my IMPLEMENTATION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
class my implementation.
  method run_handler.
    call method timer-&amp;gt;run.
    perform mylist.
  endmethod. "run_handler

endclass. "my IMPLEMENTATION

*----------------------------------------------------------------------*
*    Initialization.
*----------------------------------------------------------------------*

initialization.

  create object timer.
  create object myh.
  set handler myh-&amp;gt;run_handler for all instances.


*----------------------------------------------------------------------*
*    Start of selection
*----------------------------------------------------------------------*

start-of-selection.
  usr_time = sy-uzeit.
  time  = '000000'.

  write time.

  timer-&amp;gt;interval = '1'.

  call method timer-&amp;gt;run.

  if time+3(2) = 01.
    leave program.
  endif.

*----------------------------------------------------------------------*
*    Form MyList
*----------------------------------------------------------------------*
form mylist.

  time = sy-uzeit - usr_time.

  write time to wa.
  modify line 1 line value from wa.
  if wa+3(2) = '01'.
    leave program.
  endif.
endform. "MYLIST
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Julius Bussche on Jun 24, 2008 7:03 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 10:12:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-program-depending-on-time/m-p/4020820#M960805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T10:12:54Z</dc:date>
    </item>
  </channel>
</rss>

