<?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: Screen refresh in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075524#M430158</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes ,the PAI is being fired the second time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Apr 2007 01:12:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-09T01:12:03Z</dc:date>
    <item>
      <title>Screen refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075516#M430150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In screen ,have a ALV object and a field object, after double click the ALV object,i want ot transfer the value from ALV to the field, so in the double click event,i set the field value equal the value in ALV,and i debug it that it's OK, but the value of the field is not refresh on the screen ,so i want to know after i double click the ALV, how to refresh the screen automatically?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Apr 2007 23:57:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075516#M430150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-08T23:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Screen refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075517#M430151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to fire a PAI in the event handler. This is so you will get a round trip thru the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your event handler method for double click, add the method call below to the end of the method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  method handle_double_click.

........

* cause PAI
      call method cl_gui_cfw=&amp;gt;set_new_ok_code
                 exporting
                      new_code = 'REFR'.

    endif.

  endmethod.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 00:11:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075517#M430151</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-09T00:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Screen refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075518#M430152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First thanks for you!&lt;/P&gt;&lt;P&gt;I have tried it ,It is OK when i douck click the ALV in first time, but when i double click another row, the value of the screen is not changed,so......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 00:24:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075518#M430152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-09T00:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Screen refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075519#M430153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm.... interesting.  Can you post your code?  I need to see the PBO, the PAI and the event handler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 00:28:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075519#M430153</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-09T00:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Screen refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075520#M430154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the double click code  as follows:&lt;/P&gt;&lt;P&gt;FORM DOUBLE_CLICK_B USING P_E_ROW TYPE LVC_S_ROW&lt;/P&gt;&lt;P&gt;                          P_E_COLUMN TYPE LVC_S_COL.&lt;/P&gt;&lt;P&gt; DATA:RC TYPE I.&lt;/P&gt;&lt;P&gt; DATA:NEW_CODE TYPE SYUCOMM.&lt;/P&gt;&lt;P&gt; PERFORM CLEAR.&lt;/P&gt;&lt;P&gt; READ TABLE I_STOCK INDEX P_E_ROW-INDEX.&lt;/P&gt;&lt;P&gt; IF SY-SUBRC = 0 AND I_STOCK-VERME &amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MATNR  = I_STOCK-MATNR.&lt;/P&gt;&lt;P&gt;    MENGE  = I_STOCK-VERME.&lt;/P&gt;&lt;P&gt;    CHARG  = I_STOCK-CHARG.&lt;/P&gt;&lt;P&gt;    LGPLA  = I_STOCK-LGPLA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    FLDCUR = 'MENGE'.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; NEW_CODE = 'REFR'.&lt;/P&gt;&lt;P&gt; CALL METHOD CL_GUI_CFW=&amp;gt;SET_NEW_OK_CODE&lt;/P&gt;&lt;P&gt;    EXPORTING NEW_CODE = NEW_CODE   &lt;/P&gt;&lt;P&gt;    IMPORTING       RC = RC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CLEAR:NEW_CODE.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDFORM.                    " DOUBLE_CLICK_A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAI:&lt;/P&gt;&lt;P&gt;  CALL METHOD CL_GUI_CFW=&amp;gt;DISPATCH.&lt;/P&gt;&lt;P&gt;  CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;    WHEN 'BACK'. LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;    WHEN 'SAVE'.&lt;/P&gt;&lt;P&gt;      PERFORM SAVE.&lt;/P&gt;&lt;P&gt;    WHEN 'ENTR'.&lt;/P&gt;&lt;P&gt;      PERFORM PRESS_ENTR.&lt;/P&gt;&lt;P&gt;    WHEN 'CLEAR'.&lt;/P&gt;&lt;P&gt;      PERFORM CLEAR.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;  CALL METHOD CL_GUI_CFW=&amp;gt;FLUSH.&lt;/P&gt;&lt;P&gt;  CLEAR SY-UCOMM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 00:35:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075520#M430154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-09T00:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Screen refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075521#M430155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nothing jumping out at me.  Can you debug and make sure that the event is being fired when you double click the second time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 00:50:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075521#M430155</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-09T00:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Screen refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075522#M430156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,i am sure , i debug it again&lt;/P&gt;&lt;P&gt;the value is changed and call the function  but the screen is not refreshed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 00:56:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075522#M430156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-09T00:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Screen refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075523#M430157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please put a breakpoint in the PAI, and see if the PAI is being fired the second time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 01:00:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075523#M430157</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-09T01:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Screen refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075524#M430158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes ,the PAI is being fired the second time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 01:12:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075524#M430158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-09T01:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Screen refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075525#M430159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so then we know the problem probably lies in your existing code rather than the new method call that I suggest that you add.  If the PAI is being fired that means that something may be preventing the field from being updated.  Put in debug mode and check the value in the PBO and the PAI and try to figure out what is going on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 01:24:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075525#M430159</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-09T01:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Screen refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075526#M430160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I debug it and found that when in the the method double click, the value is changed to the new ,but when out of the method,the value was changed to the old value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 02:08:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075526#M430160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-09T02:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Screen refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075527#M430161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, make sure that the DATA statement for the screen field is a global declaration, meaning that it is not inside of any FORM of METHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If still a problem post the entire program or send to my email address if not comfortable posting the entire code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 02:14:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075527#M430161</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-09T02:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Screen refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075528#M430162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot,i solved it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 02:16:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075528#M430162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-09T02:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Screen refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075529#M430163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So what was the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please make sure to award points for any helpful answers and mark your thread as solved.  Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 02:22:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075529#M430163</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-09T02:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Screen refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075530#M430164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;before modification , i put the function in the double click method,&lt;/P&gt;&lt;P&gt;after your suggestion, i put the function and modify the value of field in PAI ,so it woks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 02:50:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2075530#M430164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-09T02:50:25Z</dc:date>
    </item>
  </channel>
</rss>

