<?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: CL_GUI_TIMER Event FINISHED resetting input fields value to initial in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-timer-event-finished-resetting-input-fields-value-to-initial/m-p/10083650#M1813142</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Any solutions or hints for the above problem???? I am stuck up badly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amber&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Feb 2014 17:24:17 GMT</pubDate>
    <dc:creator>abaper_guy</dc:creator>
    <dc:date>2014-02-20T17:24:17Z</dc:date>
    <item>
      <title>CL_GUI_TIMER Event FINISHED resetting input fields value to initial</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-timer-event-finished-resetting-input-fields-value-to-initial/m-p/10083649#M1813141</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;&amp;nbsp; I am using the EVENT FINISHED of CL_GUI_TIMER in the MODULE POOL by setting the interval to 3 secs. The method registered to the event is getting triggered perfectly after 3 secs. Now inside this event method , I am setting the value of an input fields of the module pool screen to 20 (The initial value of this inp fields is 10) . I checked in debugging , the program control while executing the method , sets the value of the variable to 20 but after the method execution , as soon as the PAI is about to be executed , the valye of the inp field is autoamtically set to initialy value 10. I am not able to understand this behaviour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am calling the PAI by using the func module &lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;METHOD&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; CL_GUI_CFW=&amp;gt;SET_NEW_OK_CODE in the method at the last to call the PAI.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; METHOD AFTER_DELAY.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;MESSAGE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4da619; font-size: 10pt;"&gt;'Test'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;TYPE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4da619; font-size: 10pt;"&gt;'I'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAR_TEST = &lt;/SPAN&gt;&lt;SPAN style="color: #3399ff; font-size: 10pt;"&gt;20&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&amp;nbsp; " This is the input field defined in layout whose initial value was 10&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;CALL&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;METHOD&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; CL_GUI_CFW=&amp;gt;SET_NEW_OK_CODE&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;EXPORTING&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NEW_CODE = &lt;/SPAN&gt;&lt;SPAN style="color: #4da619; font-size: 10pt;"&gt;'ABC'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;ENDMETHOD&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 19:44:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-timer-event-finished-resetting-input-fields-value-to-initial/m-p/10083649#M1813141</guid>
      <dc:creator>abaper_guy</dc:creator>
      <dc:date>2014-02-18T19:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_TIMER Event FINISHED resetting input fields value to initial</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-timer-event-finished-resetting-input-fields-value-to-initial/m-p/10083650#M1813142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Any solutions or hints for the above problem???? I am stuck up badly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amber&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 17:24:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-timer-event-finished-resetting-input-fields-value-to-initial/m-p/10083650#M1813142</guid>
      <dc:creator>abaper_guy</dc:creator>
      <dc:date>2014-02-20T17:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_TIMER Event FINISHED resetting input fields value to initial</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-timer-event-finished-resetting-input-fields-value-to-initial/m-p/10083651#M1813143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you should use set_new_ok_code only with handler methods of a system event (like for handlers of enjoy controls for example). I'm not sure if your case is the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 17:41:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-timer-event-finished-resetting-input-fields-value-to-initial/m-p/10083651#M1813143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-20T17:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_TIMER Event FINISHED resetting input fields value to initial</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-timer-event-finished-resetting-input-fields-value-to-initial/m-p/10083652#M1813144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you are right . The above method AFTER_DELAY is the handler method only for the event FINISHED of the class CL_GUI_TIMER.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 17:46:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-timer-event-finished-resetting-input-fields-value-to-initial/m-p/10083652#M1813144</guid>
      <dc:creator>abaper_guy</dc:creator>
      <dc:date>2014-02-20T17:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_TIMER Event FINISHED resetting input fields value to initial</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-timer-event-finished-resetting-input-fields-value-to-initial/m-p/10083653#M1813145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amber,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is standard behavior of system . As all we know , in module pool we have screen fields and ABAP fields (Program) and data transfer happens with same name(data type also matters) . Screen fields value will copied to ABAP fields value in PAI and ABAP fields value copied to screen fields in PBO. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case your are changing the ABAP field value in event method (it not yet transferred to screen, it only happens in end of PBO )&amp;nbsp; it getting overwritten with screen value (still has old value only )once control moved PAI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To check with behavior, in PAI event keep FIELD statement on &lt;SPAN style="color: #333333;"&gt;VAR_TEST. In debug mode check the value VAR_TEST , till FIELD statement executed VAR_TEST will be 20 once this statement executed it overwritten with screen value 10. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/9f/dbabb035c111d1829f0000e829fbfe/frameset.htm" title="http://help.sap.com/saphelp_nw04s/helpdata/en/9f/dbabb035c111d1829f0000e829fbfe/frameset.htm"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/9f/dbabb035c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To solve this program, declare global variable and set value for this global variable in event method and copy this global variable value to&amp;nbsp; VAR_TEST in PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also check return code of &lt;SPAN style="color: #333333;"&gt;CL_GUI_CFW=&amp;gt;SET_NEW_OK_CODE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_sm32/helpdata/en/06/3fa1b79f2811d2bd68080009b4534c/content.htm" title="http://help.sap.com/saphelp_sm32/helpdata/en/06/3fa1b79f2811d2bd68080009b4534c/content.htm"&gt;http://help.sap.com/saphelp_sm32/helpdata/en/06/3fa1b79f2811d2bd68080009b4534c/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;aRun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 18:56:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-timer-event-finished-resetting-input-fields-value-to-initial/m-p/10083653#M1813145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-20T18:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_TIMER Event FINISHED resetting input fields value to initial</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-timer-event-finished-resetting-input-fields-value-to-initial/m-p/10083654#M1813146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Aruna .My problem was solved &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/568/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 14:13:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-timer-event-finished-resetting-input-fields-value-to-initial/m-p/10083654#M1813146</guid>
      <dc:creator>abaper_guy</dc:creator>
      <dc:date>2014-02-21T14:13:58Z</dc:date>
    </item>
  </channel>
</rss>

