<?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: Oops ALV screen refresh issue when using SAPGUI_SET_FUNCTIONCODE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854530#M1886039</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well if you want you report to be driven thru function-codes/user-command the&amp;nbsp; you will tirgger a PAI/PBO cycle, and refresh of the ALV grid MUST be executed in PBO (if initial/create/else/refresh/endif) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Jan 2015 12:07:43 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2015-01-14T12:07:43Z</dc:date>
    <item>
      <title>Oops ALV screen refresh issue when using SAPGUI_SET_FUNCTIONCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854518#M1886027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing issue while I am trying to refresh ALV data 2nd time (update with new data), when using FM - SAPGUI_SET_FUNCTIONCODE.&lt;/P&gt;&lt;P&gt;If I comment this FM, then refresh works ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My scenario is as per below, no POV event used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;===&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Above part of screen has some display only fields, suppose ITEM1.&lt;/LI&gt;&lt;LI&gt;Below part has Oops ALV grid (using cl_gui_alv_grid) with an editable checkbox, like available inventory for this ITEM1.&lt;/LI&gt;&lt;LI&gt;User selects check-box one by one in this ALV and without any further action from user, there should be a popup to tell that ITEM1 is fulfilled (suppose after 3 records selected). To do this popup,&amp;nbsp; I am calling FM - &lt;SPAN style="font-size: 13.63636302948px;"&gt;SAPGUI_SET_FUNCTIONCODE in event handling of alv.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Once control reach PAI via this FM, some calculations are done in PAI and popup shown if required.&lt;/LI&gt;&lt;LI&gt;When user gets popup that ITEM1 is done, they will press a pushbutton 'NEXT' which will show ITEM2 in top screen part and corresponding ITEM2 inventory records should be shown in ALV area now so that user can select again.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Point 5 is not working, no matter what I do, even on ITEM2 system is still showing ALV records of ITEM1 only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using refresh_table_display and internal table is populated correctly with ITEM2 data, but still ITEM1 data is shown. If I comment FM - &lt;SPAN style="font-size: 13.63636302948px;"&gt;SAPGUI_SET_FUNCTIONCODE, then everything is working well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried to replace with &lt;SPAN style="color: #333333; font-size: 11.8181819915771px;"&gt;CL_GUI_CFW=&amp;gt;SET_NEW_OK_CODE, but same refresh problem occurs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help, let me know if more details are required.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2015 09:56:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854518#M1886027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-12T09:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Oops ALV screen refresh issue when using SAPGUI_SET_FUNCTIONCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854519#M1886028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please help experts, let me know if scenario is not clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simple way to put is - Same screen, same customer container, I want to refresh the data on press of push-button. It is not happening if I am using above said FM in event handling.&lt;/P&gt;&lt;P&gt;FM is used to trigger PAI when user select/unselect checkbox in ALV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 01:17:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854519#M1886028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-14T01:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Oops ALV screen refresh issue when using SAPGUI_SET_FUNCTIONCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854520#M1886029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diwakar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you make use of cl_gui_cfw=&amp;gt;flush method? Please check this instead of the above mentioned FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Generally this is to restrict the traffic b/w frontend and backend. This means that every operation in Control Framework should be first buffered in the backend and synchronized with the frontend at certain points (one of this point is calling synchronization method &lt;/SPAN&gt;&lt;EM style="font-size: 12px; color: #333333; background: #ffffff;"&gt;cl_gui_cfw=&amp;gt;flush&lt;/EM&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt; ). This explicit order of synchronization is due to RFC call needed for every communication b/w front/back end. So to avoid to many RFC calls we do it only at certain time."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please test using FLUSH method and let me know if the requirement is not met.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;&lt;P&gt;Syed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 02:09:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854520#M1886029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-14T02:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Oops ALV screen refresh issue when using SAPGUI_SET_FUNCTIONCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854521#M1886030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Syed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply, where this method needs to be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This cant replace FM as FM is helping me to trigger PAI event automatically on click of check-box. I need to take control to PAI to do some calculations (cannot be done outside PAI due to some other dependencies).&lt;/P&gt;&lt;P&gt;I have done event handling for &lt;SPAN class="L0S52"&gt;EVENT &lt;/SPAN&gt;data_changed &lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;cl_gui_alv_grid and used FM in perform of this event to trigger PAI with a dummy ok_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I replace this FM with above-said method, it is not triggering PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried to replace FM with method&amp;nbsp; cl_gui_cfw&lt;SPAN class="L0S70"&gt;=&amp;gt;&lt;/SPAN&gt;set_new_ok_code, it is doing PAI triggering thing but problem of refresh remains same as with FM. &lt;/P&gt;&lt;P&gt;Any further help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Diwakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 02:31:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854521#M1886030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-14T02:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Oops ALV screen refresh issue when using SAPGUI_SET_FUNCTIONCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854522#M1886031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diwakar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about you call refresh functionality before calling the pop-up screen?&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_stable&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;row &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;abap_true.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_stable&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;col &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;abap_true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;METHOD &lt;/SPAN&gt;g_grid&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;refresh_table_display&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; is_stable &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;wa_stable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXCEPTIONS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; finished&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;OTHERS&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call pop-up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gayatri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 04:56:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854522#M1886031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-14T04:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Oops ALV screen refresh issue when using SAPGUI_SET_FUNCTIONCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854523#M1886032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can try below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before creating the container free the object, as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;zcl_cont2 &lt;SPAN class="L0S52"&gt;IS &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;NOT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;INITIAL&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;METHOD &lt;/SPAN&gt;zcl_cont2&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;free&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXCEPTIONS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cntl_error&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cntl_system_error &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;OTHERS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;3&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CREATE &lt;/SPAN&gt;OBJECT zcl_cont2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; container_name &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'LV_CONT2'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CREATE &lt;/SPAN&gt;OBJECT zcl_grid2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_parent &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;zcl_cont2&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;METHOD &lt;/SPAN&gt;zcl_grid2&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_structure_name &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'ZSTR'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CHANGING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it_outtab&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;t_output&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it_fieldcatalog&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;t_fcat1&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 05:07:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854523#M1886032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-14T05:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Oops ALV screen refresh issue when using SAPGUI_SET_FUNCTIONCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854524#M1886033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diwakar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use the FM and the method in tandem, but the method has to be called the moment you display the entries of ITEM1 i.e., in PAI of ITEM1 (after you store the selected data into internal table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because, Container is the same for both entries data display and there is another action in place (NEXT button) to trigger the PBO of ITEM2. So before this, the memory needs to be cleared. This is the routine culture of Dialog Programming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check and let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;&lt;P&gt;Syed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 05:13:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854524#M1886033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-14T05:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Oops ALV screen refresh issue when using SAPGUI_SET_FUNCTIONCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854525#M1886034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Syed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried it, still no change to status. ALV on Item2 header will still show ALV1 data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I tried :--&lt;/P&gt;&lt;P&gt;ALV Even handling --&amp;gt; Use same FM --&amp;gt; User click checkbox will Trigger PAI --&amp;gt; Do some computation.&lt;/P&gt;&lt;P&gt;After user has selected required no of entries, user will click NEXT button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------&lt;/P&gt;&lt;P&gt;In PAI,&lt;/P&gt;&lt;P&gt; When NEXT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if condition meet,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLUSH.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call screen XYZ again (this is same current screen, calling again)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; in PBO, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Used Refresh ALV and Free container methods.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Populate table with ITEM2 data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still ALV shows ITEM1 data only.&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2nd try FLUSH in PBO, also same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your sincere effort to help. Advice more &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1103/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 07:31:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854525#M1886034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-14T07:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Oops ALV screen refresh issue when using SAPGUI_SET_FUNCTIONCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854526#M1886035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gayatri n Tiki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am already using Refresh_table_display method and Free container methods.&lt;/P&gt;&lt;P&gt;They are working fine also normally, but if I use FM in subject, then refresh is not happening. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 07:33:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854526#M1886035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-14T07:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Oops ALV screen refresh issue when using SAPGUI_SET_FUNCTIONCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854527#M1886036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diwakar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why are you calling your screen again? Any specific reason?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;In PAI,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #333333; background: #ffffff;"&gt;When NEXT.&lt;/P&gt;&lt;P style="color: #333333; background: #ffffff;"&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if condition meet,&lt;/P&gt;&lt;P style="color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLUSH.&lt;/P&gt;&lt;P style="color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;call screen XYZ again (this is same current screen, calling again)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #333333; background: #ffffff;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Because this will create many instances of the same screen in the call stack; and when you will press the button BACK - it wont let you exit the screen processing unless all the instances from the call stack have been popped out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So instead of calling it again, can you please try the following: After user presses the button 'NEXT',&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt;Call refresh method using &lt;/SPAN&gt;&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;Regards,&lt;/P&gt;&lt;P&gt;Gayatri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 08:17:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854527#M1886036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-14T08:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Oops ALV screen refresh issue when using SAPGUI_SET_FUNCTIONCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854528#M1886037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gayatri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #333333; background: #ffffff;"&gt;Call refresh method using &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.8181819915771px; color: #333333; background: #ffffff;"&gt;CL_GUI_CFW=&amp;gt;SET_NEW_OK_CODE, won't the control remain in PAI if I use this ? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.8181819915771px; color: #333333; background: #ffffff;"&gt;All data fetching (populating data in internal table for ITEM2) is in PBO, so if control doesn't move to PBO how to get it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.8181819915771px; color: #333333; background: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.8181819915771px; color: #333333; background: #ffffff;"&gt;Also, on what point screen will be refreshed with ITEM2 data if there is no call to original screen again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.8181819915771px; color: #333333; background: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.8181819915771px; color: #333333; background: #ffffff;"&gt;You may be correct, please explain more and I will try &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1103/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 09:52:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854528#M1886037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-14T09:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Oops ALV screen refresh issue when using SAPGUI_SET_FUNCTIONCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854529#M1886038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diwakar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where are you calling REFRESH function currently?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we are assuming 'NEXT' to be a triggering point for updating data, is there any possibility to update the internal table for display in the PAI Module?&lt;SPAN style="font-size: 10pt;"&gt; If done so, i&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;t will execute the refresh as needed.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 11:26:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854529#M1886038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-14T11:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Oops ALV screen refresh issue when using SAPGUI_SET_FUNCTIONCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854530#M1886039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well if you want you report to be driven thru function-codes/user-command the&amp;nbsp; you will tirgger a PAI/PBO cycle, and refresh of the ALV grid MUST be executed in PBO (if initial/create/else/refresh/endif) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 12:07:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854530#M1886039</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2015-01-14T12:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Oops ALV screen refresh issue when using SAPGUI_SET_FUNCTIONCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854531#M1886040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diwakar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want you to use the FLUSH method before your computation. That is what is I mentioned in my earlier reply, to use immediately after you pick the data into your internal table after the user selects the number of records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;1. ALV Event handling&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG&gt; 1.1. Here, check if the internal table has got the selected values and if they are in place, use FLUSH to clear the memory (Don't check for Initial of Internal table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;2. Use same FM&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;3. User click checkbox will Trigger PAI &lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;4. Do some computation.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;After you do the computation and reach the PBO, still the memory will hold the same values of ITEM1. So before you enter into this PBO layer you should clear those values.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Please do this in the debugging mode and paste those screen shots if possible otherwise you can send them to my mail Id and I will check the same from my end.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Thank You!&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Syed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 19:20:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854531#M1886040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-14T19:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Oops ALV screen refresh issue when using SAPGUI_SET_FUNCTIONCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854532#M1886041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need more help, on further trouble-shooting I have concluded that my problem is there even when I am not using above-said Function module, when I try to take auto action on check-box click, this alv refresh problem is happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My scenario is as below :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Some I/O fields on top of screen related to ITEM data and below part of screen is ALV grid with editable check-box showing item inventory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Some orders which have two items, system will show item1 details, user will select records and once item 1 is fulfilled..there will be a popup to inform user and then user will click a pushbutton and item2 data and inventory should show-up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Additional requirement is when user select a check-box, a field on top part from item data should show total quantity selected. so if each record is 20 qty, whenever user select record 1,2, 3.....field should change 20,40,60 ,....And a final popup when required quantity is met.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. To do this requirement 3, I am using &lt;SPAN class="L0S52" style="font-size: 11.8181819915771px; color: #333333; background: #ffffff;"&gt;EVENT &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 11.8181819915771px;"&gt;data_changed &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 11.8181819915771px; color: #333333; background: #ffffff;"&gt;OF &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 11.8181819915771px;"&gt;cl_gui_alv_grid. In event subroutine, I am calculating QTY field value and now to refresh this field value on top part of screen, I have tried 2 ways :-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a. Call PAI using FM or Suppress Dailog which inturn call PBO again and hence QTY field is correct.&lt;/P&gt;&lt;P&gt;b. Directly Call Same screen using "Call screel XYZ" in event subroutine to trigger PBO and QTY field is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Everything is working well until here, but when required qty is met and user click the pushbutton, item2 details are displayed on top part &lt;STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;but ALV grid is not refreshed with ITEM2 data&lt;/SPAN&gt;.&lt;/STRONG&gt; I am also using REFRESH_TABLE_DISPLAY in pbo before showing alv grid data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I am not doing 4a or 4b, then refresh is working perfectly well but QTY field is not getting refreshed on checkbox click which is requirement .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest what should be done, thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 09:45:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854532#M1886041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-20T09:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Oops ALV screen refresh issue when using SAPGUI_SET_FUNCTIONCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854533#M1886042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diwakar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you make sure that the alv and custom container objects creation happening only once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if obj_alv is initial.&lt;/P&gt;&lt;P&gt;craete objects for alv and custom container.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sreekanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 10:42:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-alv-screen-refresh-issue-when-using-sapgui-set-functioncode/m-p/10854533#M1886042</guid>
      <dc:creator>former_member202818</dc:creator>
      <dc:date>2015-01-20T10:42:45Z</dc:date>
    </item>
  </channel>
</rss>

