<?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: creating timer in abap in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-timer-in-abap/m-p/9466462#M1743109</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create an FM and call it in separate task and on finish of timer you can trigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;THIS FM should be RFC Enabled&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION ZTIMER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ZTIME LIKE SY-UZEIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET TIME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZTIME = SY-UZEIT + 300.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;&amp;nbsp; GET TIME.&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF SY-UZEIT &amp;gt;= ZTIME.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXIT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in begining of your Program call this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZTIMER'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; STARTING NEW TASK 'ZTIMER'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; PERFORMING END_TIMER ON END OF TASK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write a Perform "END_TIMER" to do what you want on finish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1434/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 May 2013 07:58:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-05-16T07:58:13Z</dc:date>
    <item>
      <title>creating timer in abap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-timer-in-abap/m-p/9466459#M1743106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I am writing a module pool program wherein the user has to answer a few questions in a certain period of time (say 10 minutes). At the top left hand corner, a timer has to be displayed which shows the remaining time left for the questions to be answered. Can someone please help me how to do this without using ABAP OOPS as am not familiar with it. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 07:01:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-timer-in-abap/m-p/9466459#M1743106</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-16T07:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: creating timer in abap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-timer-in-abap/m-p/9466460#M1743107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This has nothing to do with ABAP Objects. You can write module pool programs with or without oop techniques. (I do suggest that you become familiar with ABAP Objects as it is increasingly becoming a necessary skill).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, what you are requesting is not really possible. Web Dynpro is the sensible approach. That has a timer component. You can run web dynpro applications in SAPGui.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 07:31:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-timer-in-abap/m-p/9466460#M1743107</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2013-05-16T07:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: creating timer in abap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-timer-in-abap/m-p/9466461#M1743108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the blog below, it uses the class CL_GUI_TIMER&amp;nbsp; -&lt;/P&gt;&lt;P&gt;&lt;A href="http://aaabap.blogspot.com/2011/02/abap-timer-part-3.html" title="http://aaabap.blogspot.com/2011/02/abap-timer-part-3.html"&gt;http://aaabap.blogspot.com/2011/02/abap-timer-part-3.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;Abhinab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 07:41:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-timer-in-abap/m-p/9466461#M1743108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-16T07:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: creating timer in abap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-timer-in-abap/m-p/9466462#M1743109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create an FM and call it in separate task and on finish of timer you can trigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;THIS FM should be RFC Enabled&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION ZTIMER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ZTIME LIKE SY-UZEIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET TIME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZTIME = SY-UZEIT + 300.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;&amp;nbsp; GET TIME.&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF SY-UZEIT &amp;gt;= ZTIME.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXIT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in begining of your Program call this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZTIMER'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; STARTING NEW TASK 'ZTIMER'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; PERFORMING END_TIMER ON END OF TASK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write a Perform "END_TIMER" to do what you want on finish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1434/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 07:58:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-timer-in-abap/m-p/9466462#M1743109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-16T07:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: creating timer in abap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-timer-in-abap/m-p/9466463#M1743110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Abhinab, but unfortunately I dont know ABAP OOPS as I mentioned before. So I cant understand the contents of the link which deals with methods, classes etc. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 06:34:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-timer-in-abap/m-p/9466463#M1743110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-17T06:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: creating timer in abap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-timer-in-abap/m-p/9466464#M1743111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use class CL_GUI_TIMER. Check this example:&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/Snippets/Automatic+Data+Refresh+on+Module+pool+Screen" title="http://wiki.sdn.sap.com/wiki/display/Snippets/Automatic+Data+Refresh+on+Module+pool+Screen"&gt;SAP Community Network Wiki - Code Gallery - Automatic Data Refresh on Module pool Screen&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Custodio&lt;/P&gt;&lt;P&gt;@zcust01&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 06:41:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-timer-in-abap/m-p/9466464#M1743111</guid>
      <dc:creator>custodio_deoliveira</dc:creator>
      <dc:date>2013-05-17T06:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: creating timer in abap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-timer-in-abap/m-p/9466465#M1743112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And you can also check standard program SAP_TIMER_DEMO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Custodio&lt;/P&gt;&lt;P&gt;@zcust01&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 06:46:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-timer-in-abap/m-p/9466465#M1743112</guid>
      <dc:creator>custodio_deoliveira</dc:creator>
      <dc:date>2013-05-17T06:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: creating timer in abap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-timer-in-abap/m-p/9466466#M1743113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I stand corrected. I was not aware of this class. It's nice to learn something new!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 07:29:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-timer-in-abap/m-p/9466466#M1743113</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2013-05-17T07:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: creating timer in abap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-timer-in-abap/m-p/9466467#M1743114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial monospaced for SAP'; color: black;"&gt;Hi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial monospaced for SAP'; color: black;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial monospaced for SAP'; color: black;"&gt;Use below logic.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial monospaced for SAP'; color: black;"&gt;Data:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t11 type tzonref-tstamps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial monospaced for SAP'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t12 type TZONREF-TSTAMPL,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial monospaced for SAP'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v_t11 type tzonref-tstamps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial monospaced for SAP'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v_t12 type TZONREF-TSTAMPL.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial monospaced for SAP'; color: black;"&gt;GET TIME STAMP FIELD&amp;nbsp; t11.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial monospaced for SAP'; color: black;"&gt;GET TIME STAMP FIELD&amp;nbsp; t12.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial monospaced for SAP'; color: black;"&gt;v_t11 = t1..&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial monospaced for SAP'; color: black;"&gt;v_t12 = t12.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial monospaced for SAP'; color: black;"&gt;clear:t12, t11.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial monospaced for SAP'; color: black;"&gt;GET TIME STAMP FIELD&amp;nbsp; t11.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial monospaced for SAP'; color: black;"&gt;GET TIME STAMP FIELD&amp;nbsp; t12.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial monospaced for SAP'; color: black;"&gt;difference between v_t11 to t11 or v_t12 to t12.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;check with session time with diff time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial monospaced for SAP'; color: black;"&gt;After that call FM (p_time should time diff)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial monospaced for SAP'; color: black;"&gt;&amp;nbsp; CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial monospaced for SAP'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial monospaced for SAP'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; percentage = p_time&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial monospaced for SAP'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; text&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = p_stage.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial monospaced for SAP'; color: black;"&gt;Better put this logic in NEXT button which one you use to move question to another question.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;NJ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: nagaraj j&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 07:41:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-timer-in-abap/m-p/9466467#M1743114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-17T07:41:44Z</dc:date>
    </item>
  </channel>
</rss>

