<?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: refresh in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/5324180#M1227019</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have inserted this code within my local class for event handling .&lt;/P&gt;&lt;P&gt;THis method will be called if the user hits ENTER .&lt;/P&gt;&lt;P&gt;But this seems like a loop. It is not working &lt;/P&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;&lt;PRE&gt;&lt;CODE&gt;METHOD handle_data_changed.

    DATA: le_row TYPE i,
    le_value(15) TYPE c,
    le_col TYPE i,
    les_row_id TYPE lvc_s_row,
    les_col_id TYPE lvc_s_col,
    les_row_no TYPE lvc_s_roid.

    CLEAR: me-&amp;gt;mo_data_changed.



    IF ref_alv IS INITIAL.
      CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
        IMPORTING
          e_grid = ref_alv.
    ENDIF.

    IF NOT ref_alv IS INITIAL.
      CALL METHOD ref_alv-&amp;gt;check_changed_data.
    ENDIF.

.....
.....&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Mar 2009 13:00:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-12T13:00:01Z</dc:date>
    <item>
      <title>refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/5324175#M1227014</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;After entering some values into the cells of the ALV which are editable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these values are in the debugger  not visible. What has to be done. ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The entered values should be visible in the debugger&lt;/P&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;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD ref_alv-&amp;gt;register_edit_event
    EXPORTING
      i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_enter.


*  CALL METHOD ref_alv-&amp;gt;set_ready_for_input
*    EXPORTING
*      i_ready_for_input = 1.


  CREATE OBJECT ref_alv_events.
  SET HANDLER ref_alv_events-&amp;gt;handle_data_changed FOR ref_alv.



  CALL METHOD ref_alv-&amp;gt;set_table_for_first_display
    EXPORTING
      is_layout            = gv_layout
      it_toolbar_excluding = it_toolbar_excluding  " TYPE UI_FUNCTIONS
    CHANGING
      it_fieldcatalog      = gt_fcat
      it_outtab            = &amp;lt;outtab&amp;gt;
    EXCEPTIONS
      OTHERS               = 4.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use an informative subject. I don't see what "refresh" has to do with the question or code you are posting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Mar 12, 2009 9:21 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 10:25:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/5324175#M1227014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T10:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/5324176#M1227015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use one method of class CL_GUI_ALV_GRID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The method name is CHECK_CHANGED_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call this method and you will get data in your internal table which you displayed in ALV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 11:58:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/5324176#M1227015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T11:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/5324177#M1227016</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;Use this code to reflect data changes from alv output to internal table.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
      " to reflect the data changed into internal table
      DATA : ref_grid TYPE REF TO cl_gui_alv_grid. "new

      IF ref_grid IS INITIAL.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            e_grid = ref_grid.
      ENDIF.

      IF NOT ref_grid IS INITIAL.
        CALL METHOD ref_grid-&amp;gt;check_changed_data.
      ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 11:59:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/5324177#M1227016</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-12T11:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/5324178#M1227017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tarun where must this code be inserted. within local event class orbefore calling&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL METHOD ref_alv-&amp;gt;set_table_for_first_display&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;sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 12:19:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/5324178#M1227017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T12:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/5324179#M1227018</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;As you are displaying data in ALV, you must be including code to handle the pf-status command in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say you have create a button with function code &lt;STRONG&gt;SAVE&lt;/STRONG&gt; to save the changes into internal table done at runtime. So include this code when sy-ucomm = SAVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CASE sy-ucomm.
  WHEN 'SAVE'.
    " to reflect the data changed into internal table
    DATA : ref_grid TYPE REF TO cl_gui_alv_grid. "new
 
    IF ref_grid IS INITIAL.
      CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
        IMPORTING
          e_grid = ref_grid.
    ENDIF.
 
    IF NOT ref_grid IS INITIAL.
      CALL METHOD ref_grid-&amp;gt;check_changed_data.
    ENDIF.
  
ENDCASE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when you make changes in the editable alv grid and click SAVE button then the records will be modified in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 12:24:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/5324179#M1227018</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-12T12:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/5324180#M1227019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have inserted this code within my local class for event handling .&lt;/P&gt;&lt;P&gt;THis method will be called if the user hits ENTER .&lt;/P&gt;&lt;P&gt;But this seems like a loop. It is not working &lt;/P&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;&lt;PRE&gt;&lt;CODE&gt;METHOD handle_data_changed.

    DATA: le_row TYPE i,
    le_value(15) TYPE c,
    le_col TYPE i,
    les_row_id TYPE lvc_s_row,
    les_col_id TYPE lvc_s_col,
    les_row_no TYPE lvc_s_roid.

    CLEAR: me-&amp;gt;mo_data_changed.



    IF ref_alv IS INITIAL.
      CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
        IMPORTING
          e_grid = ref_alv.
    ENDIF.

    IF NOT ref_alv IS INITIAL.
      CALL METHOD ref_alv-&amp;gt;check_changed_data.
    ENDIF.

.....
.....&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 13:00:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/5324180#M1227019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T13:00:01Z</dc:date>
    </item>
  </channel>
</rss>

