<?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: Displayed changed data without refresh in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/displayed-changed-data-without-refresh/m-p/7485150#M1556701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edward,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead  of using REFRESH method use CHECK_CHANGED_DATA will make your final Internal Table (Used to display the data) with the updated values. After calling this method you need to write code for another field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please go through the below link for which I have given the solution for the similar requirement and I think it will definetly work for you.            &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Update the Changed Data using the ALV methods|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="9692182"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know in case you face any problem in implementing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SRinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 28 Nov 2010 15:03:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-11-28T15:03:16Z</dc:date>
    <item>
      <title>Displayed changed data without refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displayed-changed-data-without-refresh/m-p/7485149#M1556700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using CL_ALV_GRID to let the user input some code in one filed then the it's text display in another field automatically.But I meet a problem , to display the changed data I have to use method 'refresh'. This method will refresh all the data, but user only want to display the changed data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to realize this kind of requirement ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Nov 2010 12:16:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displayed-changed-data-without-refresh/m-p/7485149#M1556700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-28T12:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Displayed changed data without refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displayed-changed-data-without-refresh/m-p/7485150#M1556701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edward,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead  of using REFRESH method use CHECK_CHANGED_DATA will make your final Internal Table (Used to display the data) with the updated values. After calling this method you need to write code for another field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please go through the below link for which I have given the solution for the similar requirement and I think it will definetly work for you.            &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Update the Changed Data using the ALV methods|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="9692182"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know in case you face any problem in implementing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SRinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Nov 2010 15:03:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displayed-changed-data-without-refresh/m-p/7485150#M1556701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-28T15:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Displayed changed data without refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displayed-changed-data-without-refresh/m-p/7485151#M1556702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply . I think you miss understand my question.My problem is display the changed data without refreshing.&lt;/P&gt;&lt;P&gt;not how to get the changed data.&lt;/P&gt;&lt;P&gt;In the sample, it also works with call method sender-&amp;gt;refresh_table_display. but this is not what I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;nothing to do.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if e_column-fieldname ne 'CHECKBOX'.&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  read table gt_outtab into ls_outtab index es_row_no-row_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The loop is only needed if there are other columns that&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;use checkboxes. At this point the loop could be&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;replaced by a READ of the first line of CELLTAB.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      loop at ls_outtab-celltab into ls_celltab.&lt;/P&gt;&lt;P&gt;        if ls_celltab-fieldname eq 'CHECKBOX'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;§B4.Switch the style to dis- or enable a cell for input&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         if ls_celltab-style = cl_gui_alv_grid=&amp;gt;mc_style_enabled.&lt;/P&gt;&lt;P&gt;          ls_celltab-style = cl_gui_alv_grid=&amp;gt;mc_style_disabled.&lt;/P&gt;&lt;P&gt;         else.&lt;/P&gt;&lt;P&gt;          ls_celltab-style = cl_gui_alv_grid=&amp;gt;mc_style_enabled.&lt;/P&gt;&lt;P&gt;         endif.&lt;/P&gt;&lt;P&gt;         modify ls_outtab-celltab from ls_celltab.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;      modify gt_outtab from ls_outtab index es_row_no-row_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call method sender-&amp;gt;refresh_table_display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Edward on Nov 29, 2010 8:42 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 00:42:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displayed-changed-data-without-refresh/m-p/7485151#M1556702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-29T00:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Displayed changed data without refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displayed-changed-data-without-refresh/m-p/7485152#M1556703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edward,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls check below threads for &lt;STRONG&gt;Auto refresh&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="8358546"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="9373666"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 06:22:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displayed-changed-data-without-refresh/m-p/7485152#M1556703</guid>
      <dc:creator>awin_prabhu</dc:creator>
      <dc:date>2010-11-29T06:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Displayed changed data without refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displayed-changed-data-without-refresh/m-p/7485153#M1556704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here data will be displayed on layout.After displaying the data first we need to modify the record after that selected that record&lt;/P&gt;&lt;P&gt;and press the CUSTOME REFRESH button only selected row is changed  in internal table after that using set_table_for_fist_display using that method wt ever the modified the data in itab that data will display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;claSS lcl_event_receiver IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;  METHOD handle_toolbar.&lt;/P&gt;&lt;P&gt; MOVE 'REFRESH' TO ls_toolbar-function.&lt;/P&gt;&lt;P&gt;    MOVE icon_refresh  TO ls_toolbar-icon.&lt;/P&gt;&lt;P&gt;    MOVE 'REFRESH SCREEN'(140) TO ls_toolbar-quickinfo.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MOVE 'DELETE DATA'(120) TO ls_toolbar-quickinfo.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    MOVE 'REFRESH'(140) TO ls_toolbar-text.&lt;/P&gt;&lt;P&gt;    MOVE ' ' TO ls_toolbar-disabled.&lt;/P&gt;&lt;P&gt;    APPEND ls_toolbar TO e_object-&amp;gt;mt_toolbar.&lt;/P&gt;&lt;P&gt;    CLEAR ls_toolbar.&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;METHOD handle_user_command.&lt;/P&gt;&lt;P&gt;  CASE e_ucomm.&lt;/P&gt;&lt;P&gt;    WHEN 'REFRESH'.&lt;/P&gt;&lt;P&gt;      CALL METHOD r_grid-&amp;gt;get_selected_rows&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             ET_INDEX_ROWS =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;             et_row_no     = it_rows.&lt;/P&gt;&lt;P&gt;      LOOP AT it_rows INTO wa_rows.&lt;/P&gt;&lt;P&gt;MODIFY DBTAB FROM TABLE ITAB INDEX WA_ROWS-INDEX.&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;P&gt; CALL METHOD r_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          is_layout       = gs_layout "&amp;amp;see below&lt;/P&gt;&lt;P&gt;        CHANGING&lt;/P&gt;&lt;P&gt;          it_fieldcatalog = gt_fieldcat&lt;/P&gt;&lt;P&gt;          it_outtab       = ITAB.&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;STARTOFSELECTION.&lt;/P&gt;&lt;P&gt; CREATE OBJECT r_container&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      container_name              = 'CONTAINER_1'&lt;/P&gt;&lt;P&gt; CREATE OBJECT r_grid&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_parent          = r_container&lt;/P&gt;&lt;P&gt; SET HANDLER event_receiver1-&amp;gt;handle_user_command FOR r_grid.&lt;/P&gt;&lt;P&gt;  SET HANDLER event_receiver1-&amp;gt;handle_toolbar FOR r_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;MURALII&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 09:20:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displayed-changed-data-without-refresh/m-p/7485153#M1556704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-29T09:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Displayed changed data without refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displayed-changed-data-without-refresh/m-p/7485154#M1556705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edward,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the below method can solve your problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD G_GRID-&amp;gt;REGISTER_EDIT_EVENT&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        I_EVENT_ID = CL_GUI_ALV_GRID=&amp;gt;MC_EVT_ENTER "MC_EVT_MODIFIED&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        ERROR      = 1&lt;/P&gt;&lt;P&gt;        OTHERS     = 2.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;      WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we use MC_EVT_ENTER event, when entering the data the text will appear,&lt;/P&gt;&lt;P&gt;if we use MC_EVT_MODIFIED event, when using tab button in keyboard the text button will appear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the above method in PBO, after displaying your ALV grid using SET_TABLE_FOR_FIRST_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after which create a new instance for your local method...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CREATE OBJECT GR_EVENT_HANDLER .&lt;/P&gt;&lt;P&gt;    SET HANDLER GR_EVENT_HANDLER-&amp;gt;HANDLE_DATA_CHANGED FOR G_GRID .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 09:37:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displayed-changed-data-without-refresh/m-p/7485154#M1556705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-29T09:37:03Z</dc:date>
    </item>
  </channel>
</rss>

