<?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: Dynpro event driven and self-refresh in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynpro-event-driven-and-self-refresh/m-p/952496#M65470</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THere are some solutions in the net suggesting to use a call to a FM in new task in combination with a wait command - but this means that all the time a process is blocked (although it does nothing but wait or sleep)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I prefer the solution with CL_GUI_TIMER (I think there is a weblog from Thomas Jung)&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check that link:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="9035"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Christian Finkbeiner&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Sep 2005 14:15:08 GMT</pubDate>
    <dc:creator>ChristianFi</dc:creator>
    <dc:date>2005-09-13T14:15:08Z</dc:date>
    <item>
      <title>Dynpro event driven and self-refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynpro-event-driven-and-self-refresh/m-p/952495#M65469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAP-ers,&lt;/P&gt;&lt;P&gt;   how can I enable some dynpro to be event driven and that is refreshing it self after some time. For exmple, I have transaction that monitors some Jobs in system and if I need to see what happens right now, I need to press F5. So question is, can system in this case refresh it self after every 5 secs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2005 14:10:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynpro-event-driven-and-self-refresh/m-p/952495#M65469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-13T14:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynpro event driven and self-refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynpro-event-driven-and-self-refresh/m-p/952496#M65470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THere are some solutions in the net suggesting to use a call to a FM in new task in combination with a wait command - but this means that all the time a process is blocked (although it does nothing but wait or sleep)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I prefer the solution with CL_GUI_TIMER (I think there is a weblog from Thomas Jung)&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check that link:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="9035"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Christian Finkbeiner&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2005 14:15:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynpro-event-driven-and-self-refresh/m-p/952496#M65470</guid>
      <dc:creator>ChristianFi</dc:creator>
      <dc:date>2005-09-13T14:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dynpro event driven and self-refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynpro-event-driven-and-self-refresh/m-p/952497#M65471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If this is your own transaction, then introduce a loop at the refresh process. Just before the endloop, introduce a 'wait up to n seconds'. To avoid an infinite loop, introduce some kind of exit, may be a key when pressed you come out of the loop. You may need SAPGUI_PROGRESS_INDICATOR call inside to avoid timeout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2005 14:15:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynpro-event-driven-and-self-refresh/m-p/952497#M65471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-13T14:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynpro event driven and self-refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynpro-event-driven-and-self-refresh/m-p/952498#M65472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all,&lt;/P&gt;&lt;P&gt;   this sample of code work just fine for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****TOP&lt;/P&gt;&lt;P&gt;data: lcl_max_time     type SY-INDEX value '5',&lt;/P&gt;&lt;P&gt;      lcl_timer        type ref to CL_GUI_TIMER,&lt;/P&gt;&lt;P&gt;      lcl_container    TYPE REF TO cl_gui_custom_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_event_handler DEFINITION.&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;    CLASS-METHODS: on_finished FOR EVENT finished OF cl_gui_timer.&lt;/P&gt;&lt;P&gt;ENDCLASS. "lcl_event_handler DEFINITION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_event_handler IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;  METHOD on_finished.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Start Timer again&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    lcl_timer-&amp;gt;interval = lcl_max_time .&lt;/P&gt;&lt;P&gt;    CALL METHOD lcl_timer-&amp;gt;run.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;cause PAI&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL METHOD cl_gui_cfw=&amp;gt;set_new_ok_code&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;    new_code = 'REFR'.&lt;/P&gt;&lt;P&gt;  ENDMETHOD. "on_finished&lt;/P&gt;&lt;P&gt;ENDCLASS. "lcl_event_handler IMPLEMENTATION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA event_handler TYPE REF TO lcl_event_handler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;PBO&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;create the thinies container just because of timer&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;kreirati mali container samo radi timer-a&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if lcl_timer is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CREATE OBJECT lcl_container&lt;/P&gt;&lt;P&gt;        EXPORTING container_name = 'LCL_CONTAINER'.&lt;/P&gt;&lt;P&gt; CREATE OBJECT lcl_timer EXPORTING parent = lcl_container.&lt;/P&gt;&lt;P&gt; create object event_handler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SET HANDLER event_handler-&amp;gt;on_finished FOR lcl_timer.&lt;/P&gt;&lt;P&gt; lcl_timer-&amp;gt;interval = lcl_max_time.&lt;/P&gt;&lt;P&gt; CALL METHOD lcl_timer-&amp;gt;run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you think about this sample of code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx for help&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2005 07:07:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynpro-event-driven-and-self-refresh/m-p/952498#M65472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-15T07:07:41Z</dc:date>
    </item>
  </channel>
</rss>

