<?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: Refresh display when insert new row in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-refresh-display-when-insert-new-row/m-p/9123057#M1707863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;Then the best way for you is to handle the event &lt;STRONG&gt;data_changed_finished&lt;/STRONG&gt; instead of &lt;STRONG&gt;data_changed&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The difference between the two is that in &lt;STRONG&gt;data_changed_finished&lt;/STRONG&gt; all the values updated in the ALV are updated in the internal table linked to the ALV.&lt;/P&gt;&lt;P&gt;All the updated values are captured in a structure &lt;STRONG&gt;et_good_cells&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;The only tricky thing here will be to take the values of the cells you want and put in the work area to update the ZTABLE.&lt;/P&gt;&lt;P&gt;The reason is that in the structure of this variable &lt;STRONG&gt;et_good_cells&lt;/STRONG&gt;,every modified cell is added as a new line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can just give you a hint to use the fields &lt;STRONG&gt;ROWID,FIELDNAME and VALUE&lt;/STRONG&gt; of this variable to build your workarea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope my answer will be helpful,&lt;/P&gt;&lt;P&gt;Vinoth Aruldass.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Nov 2012 08:48:44 GMT</pubDate>
    <dc:creator>vinoth_aruldass</dc:creator>
    <dc:date>2012-11-20T08:48:44Z</dc:date>
    <item>
      <title>ALV Grid: Refresh display when insert new row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-refresh-display-when-insert-new-row/m-p/9123053#M1707859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using CL_GUI_ALV_GRID. My requirement is: when I click on Standard Insert button, a new row will be added to the grid, I key in, let say PERNR number to the field and press Enter. Upon Enter, I will get the PERNR to retrieve other information and populate that row. I have no problem with capturing the Enter event and get the PERNR. My problem is I dont know how to reflect the result in the newly added row since the added row is not in my internal table yet. If I create a new structure and append it to my internal table, after calling method REFRESH_TABLE_DISPLAY, a new row will be showed, not the one I am editing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea on how can I update the content of the added row from Insert button?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help! Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 06:54:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-refresh-display-when-insert-new-row/m-p/9123053#M1707859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-20T06:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid: Refresh display when insert new row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-refresh-display-when-insert-new-row/m-p/9123054#M1707860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nguyen,&lt;/P&gt;&lt;P&gt;Try to call &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;check_changed_data&lt;/SPAN&gt; method of grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;DATA: l_valid TYPE c,&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; grid1 type ref to cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;CALL METHOD grid1-&amp;gt;check_changed_data IMPORTING e_valid = l_valid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 07:02:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-refresh-display-when-insert-new-row/m-p/9123054#M1707860</guid>
      <dc:creator>basarozgur_kahraman</dc:creator>
      <dc:date>2012-11-20T07:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid: Refresh display when insert new row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-refresh-display-when-insert-new-row/m-p/9123055#M1707861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Basar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help! May I know the puporse of using check_changed_data method here? My expected outcome is when I key in PERNR and press Enter, the row contents like Name, Position, etc. will be populated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 07:11:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-refresh-display-when-insert-new-row/m-p/9123055#M1707861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-20T07:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid: Refresh display when insert new row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-refresh-display-when-insert-new-row/m-p/9123056#M1707862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nguyen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upon getting pernr data, call this method. After method execution your new row will be added to alv internal table. Then you can populate other fields of row and with modify_cell methods you can set field values of them&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 08:38:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-refresh-display-when-insert-new-row/m-p/9123056#M1707862</guid>
      <dc:creator>basarozgur_kahraman</dc:creator>
      <dc:date>2012-11-20T08:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid: Refresh display when insert new row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-refresh-display-when-insert-new-row/m-p/9123057#M1707863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;Then the best way for you is to handle the event &lt;STRONG&gt;data_changed_finished&lt;/STRONG&gt; instead of &lt;STRONG&gt;data_changed&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The difference between the two is that in &lt;STRONG&gt;data_changed_finished&lt;/STRONG&gt; all the values updated in the ALV are updated in the internal table linked to the ALV.&lt;/P&gt;&lt;P&gt;All the updated values are captured in a structure &lt;STRONG&gt;et_good_cells&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;The only tricky thing here will be to take the values of the cells you want and put in the work area to update the ZTABLE.&lt;/P&gt;&lt;P&gt;The reason is that in the structure of this variable &lt;STRONG&gt;et_good_cells&lt;/STRONG&gt;,every modified cell is added as a new line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can just give you a hint to use the fields &lt;STRONG&gt;ROWID,FIELDNAME and VALUE&lt;/STRONG&gt; of this variable to build your workarea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope my answer will be helpful,&lt;/P&gt;&lt;P&gt;Vinoth Aruldass.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 08:48:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-refresh-display-when-insert-new-row/m-p/9123057#M1707863</guid>
      <dc:creator>vinoth_aruldass</dc:creator>
      <dc:date>2012-11-20T08:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid: Refresh display when insert new row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-refresh-display-when-insert-new-row/m-p/9123058#M1707864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Please Check the standard program BCALV_EDIT_04 for your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that Check out the following .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;methods:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; update_delta_tables&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; importing&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;&amp;nbsp; pr_data_changed type ref to cl_alv_changed_data_protocol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just Run the program BCALV_EDIT_04 and then check the above method it wil help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 08:50:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-refresh-display-when-insert-new-row/m-p/9123058#M1707864</guid>
      <dc:creator>vinoth_aruldass</dc:creator>
      <dc:date>2012-11-20T08:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid: Refresh display when insert new row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-refresh-display-when-insert-new-row/m-p/9123059#M1707865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinoth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using &lt;STRONG&gt;data_changed_finished &lt;/STRONG&gt;wont help as in this method I wont have access to an instance of &lt;STRONG&gt;CL_ALV_CHANGED_DATA_PROTOCOL&lt;/STRONG&gt;, which means I cannot use &lt;STRONG&gt;modify_cell&lt;/STRONG&gt; method to update the row detail.&amp;nbsp;&amp;nbsp; Guess that I will have to handle the thing at &lt;STRONG&gt;data_changed, &lt;/STRONG&gt;and manually use &lt;STRONG&gt;modify_cell &lt;/STRONG&gt;for each field in the row &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1079/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt;. Thanks, anyway &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1079/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 08:57:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-refresh-display-when-insert-new-row/m-p/9123059#M1707865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-20T08:57:18Z</dc:date>
    </item>
  </channel>
</rss>

