<?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: OO ALV grid refresh problem on sort in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-alv-grid-refresh-problem-on-sort/m-p/5862607#M1321820</link>
    <description>&lt;P&gt;After eleven years, this answer help me, thanks! &lt;/P&gt;</description>
    <pubDate>Tue, 09 Jun 2020 17:49:08 GMT</pubDate>
    <dc:creator>Alexsander</dc:creator>
    <dc:date>2020-06-09T17:49:08Z</dc:date>
    <item>
      <title>OO ALV grid refresh problem on sort</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-alv-grid-refresh-problem-on-sort/m-p/5862604#M1321817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an editable OO ALV where I over ride the standard functionality for append, insert, Delete etc to handle condition that when a new row is inserted/appended its status which is in a non-editable cell  is defaulted to some value. Now the logic is as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.User clicks on append button(which we have overridden)  I capture it in user command and append a blank row at end with default status in itab and do a grid-&amp;gt;refresh_table_display()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.User enters values in all cells and presses ENTER , control goes to handle_data_changed method I validate and check the modified rows from ER_DATA_CHANGED-&amp;gt;MOD_ROWS or ER_DATA_CHANGED-&amp;gt;MOD_CELLS and update my itab with the values entered on screen and again do a grid-&amp;gt;refresh_table_display() so the values are displayed again on the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is when I give a SORT criteria or press sort say according to Year (descending) if grid already contains 2 rows and we add 3rd row with year 2009 at bottom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amount &lt;STRONG&gt;Year&lt;/STRONG&gt; Status &lt;/P&gt;&lt;P&gt;100        2007  Old&lt;/P&gt;&lt;P&gt;200        2006  Old&lt;/P&gt;&lt;P&gt;300        2009 New&lt;/P&gt;&lt;P&gt;Then on ENTER the 3rd row goes to 1st place as it should  but the values on the 3rd row do not change!!! eg see below&lt;/P&gt;&lt;P&gt;Amount &lt;STRONG&gt;Year&lt;/STRONG&gt; Status &lt;/P&gt;&lt;P&gt;300        2009 New&lt;/P&gt;&lt;P&gt;100        2007  Old&lt;/P&gt;&lt;P&gt;300        2009 New&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The problem is only when the ALV is sorted &amp;amp; I have a unique row index in my itab to keep track of records. I feel this is a mismatch in the frontend and backend update. Any body else have a clue why is this happening only on sort ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 18:26:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-alv-grid-refresh-problem-on-sort/m-p/5862604#M1321817</guid>
      <dc:creator>aditya_aghor</dc:creator>
      <dc:date>2009-07-09T18:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: OO ALV grid refresh problem on sort</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-alv-grid-refresh-problem-on-sort/m-p/5862605#M1321818</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;Call this method SET_SORT_CRITERIA with REFRESH_TABLE_DISPLAY method .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 18:37:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-alv-grid-refresh-problem-on-sort/m-p/5862605#M1321818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-09T18:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: OO ALV grid refresh problem on sort</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-alv-grid-refresh-problem-on-sort/m-p/5862606#M1321819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't do your refresh_table_display( ) until the data_changed_finished event. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, &lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2009 06:54:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-alv-grid-refresh-problem-on-sort/m-p/5862606#M1321819</guid>
      <dc:creator>phillip_manning2</dc:creator>
      <dc:date>2009-07-10T06:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: OO ALV grid refresh problem on sort</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-alv-grid-refresh-problem-on-sort/m-p/5862607#M1321820</link>
      <description>&lt;P&gt;After eleven years, this answer help me, thanks! &lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 17:49:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-alv-grid-refresh-problem-on-sort/m-p/5862607#M1321820</guid>
      <dc:creator>Alexsander</dc:creator>
      <dc:date>2020-06-09T17:49:08Z</dc:date>
    </item>
  </channel>
</rss>

