<?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: ALV GRID. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/6217037#M1378463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;after populating the values, you need to refresh your grid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method &amp;lt;grid&amp;gt;-&amp;gt;refresh_table_display .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Oct 2009 06:05:45 GMT</pubDate>
    <dc:creator>athavanraja</dc:creator>
    <dc:date>2009-10-18T06:05:45Z</dc:date>
    <item>
      <title>ALV GRID.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/6217035#M1378461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on editable alv grid and kind of stuck at a point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have got an internal table which has got the fields lifnr and name1.&lt;/P&gt;&lt;P&gt;When the user executes the report, an empty record comes up with lifnr as editable. The times users enter a lifnr and press enter then the corresponding name will come up.&lt;/P&gt;&lt;P&gt;So to accomplish this requirement I am using the events data_changed and data_changed_finished of cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;And my code looks something like this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
form DATA_CHANGED  using    p_er_data_changed
                   TYPE REF TO cl_alv_changed_data_protocol.
  DATA: ls_mod_cells TYPE lvc_s_modi.
  DATA: ls_cells TYPE lvc_s_modi,
        l_lifnr TYPE lifnr.

LOOP AT p_er_data_changed-&amp;gt;mt_good_cells INTO ls_mod_cells.
  CALL METHOD p_er_data_changed-&amp;gt;get_cell_value
              EXPORTING
              i_row_id = ls_mod_cells-row_id
              i_fieldname = 'LIFNR'
              IMPORTING
              e_value = l_lifnr.
  g_lifnr = l_lifnr.
ENDLOOP.
ENDFORM.       
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;the corresponding data_changed_finished look like this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 METHOD handle_data_changed_finished.
   IF e_modified = 'X'.
     SELECT SINGLE * FROM zemp_rem
                  INTO CORRESPONDING FIELDS OF  it_zemp
                  WHERE lifnr = g_lifnr.
       IF sy-subrc eq 0.
                ENDIF.
    ENDIF.
   ENDMETHOD.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now my problem is after entering the lifnr and pressing enter the name dosn't show up, but when executed in debuging mode, the name is populating into the internal table.&lt;/P&gt;&lt;P&gt;Can anybody please help me in this regard.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhinab Mishra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Oct 2009 19:38:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/6217035#M1378461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-17T19:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/6217036#M1378462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can anybody throw some light into this please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 05:32:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/6217036#M1378462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-18T05:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/6217037#M1378463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;after populating the values, you need to refresh your grid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method &amp;lt;grid&amp;gt;-&amp;gt;refresh_table_display .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 06:05:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/6217037#M1378463</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2009-10-18T06:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/6217038#M1378464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Durairaj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already tried refreshing the table but the result is same.&lt;/P&gt;&lt;P&gt;I have refreshed the table in the handle_data_changed_finished methods implemantation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it the write place to refresh the table or do i need to code that some where else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhinab Mishra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 06:16:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/6217038#M1378464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-18T06:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/6217039#M1378465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in my case i have done it in user_command event. (in your case its the enter press user command)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 06:44:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/6217039#M1378465</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2009-10-18T06:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/6217040#M1378466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nothing is working in my case.&lt;/P&gt;&lt;P&gt;Is there any other way to do it??&lt;/P&gt;&lt;P&gt;I have tried in the PAI event also but nothing works.&lt;/P&gt;&lt;P&gt;In PAI.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if cl_gui_alv_grid=&amp;gt;mc_evnt_enter is not initial.
select data
then grid-&amp;gt;refresh_table_display.
endif
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But nothing is working in my case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody provide me with a sample report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhinab Mishra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 07:36:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/6217040#M1378466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-18T07:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/6217041#M1378467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhinab,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your code does not look like ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use this method to refresh the table display after making changes to the table displayed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;METHOD refresh_display_stable.
  DATA:
    ls_stbl     TYPE lvc_s_stbl.
  ls_stbl-row =
  ls_stbl-col = abap_true.
  mo_grid-&amp;gt;refresh_table_display( is_stable = ls_stbl ).
ENDMETHOD.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must make sure that the table you change is really the one you actually display. When working in OO context, it may happen that you use another instance of an attribute. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't get it working, please post some essential lines of your code: The ones with set_table_for_first_display including all parameters and the one where you handle the enter event (did you activate it using method register_edit_event?) and modify/refresh the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 13:11:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/6217041#M1378467</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2009-10-18T13:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/6217042#M1378468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem Solved !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 20:27:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/6217042#M1378468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-19T20:27:45Z</dc:date>
    </item>
  </channel>
</rss>

