<?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: Unique Problem with ALV Filter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/unique-problem-with-alv-filter/m-p/10128477#M1818015</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mickey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be you can try like this.&lt;/P&gt;&lt;P&gt;After filter, use GET_FILTER_CRITERIA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delete the 2nd row + Refresh and call method SET_FILTER_CRITERIA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that the system will set the same filter criteria again after the deletion+refresh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thanga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Mar 2014 20:13:10 GMT</pubDate>
    <dc:creator>ThangaPrakash</dc:creator>
    <dc:date>2014-03-04T20:13:10Z</dc:date>
    <item>
      <title>Unique Problem with ALV Filter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unique-problem-with-alv-filter/m-p/10128475#M1818013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an ALV table created using class&amp;nbsp; CL_GUI_ALV_GRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Users are allowed to delete rows from the ALV, and I am using Method refresh_table_display to allow them to see the changes in real-time. This solution is working well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when a filter is applied on the ALV, it seems that after deletion and refresh, a line that doesn't belong in the filter criteria "sneaks in" to take the deleted line's place. I understand how this could sound weird, so I'm attaching an image with illustration. In this image I am filtering for vendor number 105608, and then try to delete the 2nd row. You can see what happens in the image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/402644" width="450" /&gt;&lt;/P&gt;&lt;P&gt;I have been reading through a lot of SCN threads but couldn't find a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using the set_filter_criteria method after refresh, but it didn't seem to re-apply the filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using set_table_for_first_display and sending it_filter, but that didn't go well either. When I tried calling the method without sending is_variant and is_layout, it worked well and re-applied the filter. However this has messed up the display (affecting the order of columns). When I tried calling the method with the layout and variant, the filter just reset himself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reading.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 16:15:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unique-problem-with-alv-filter/m-p/10128475#M1818013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-04T16:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Problem with ALV Filter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unique-problem-with-alv-filter/m-p/10128476#M1818014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mickey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just created an example of ALV on my system to take a look but i can't reproduce your error. I can filter and delete a line without errors. Can you attach me the source code so I can check it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 17:13:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unique-problem-with-alv-filter/m-p/10128476#M1818014</guid>
      <dc:creator>aferngas</dc:creator>
      <dc:date>2014-03-04T17:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Problem with ALV Filter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unique-problem-with-alv-filter/m-p/10128477#M1818015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mickey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be you can try like this.&lt;/P&gt;&lt;P&gt;After filter, use GET_FILTER_CRITERIA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delete the 2nd row + Refresh and call method SET_FILTER_CRITERIA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that the system will set the same filter criteria again after the deletion+refresh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thanga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 20:13:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unique-problem-with-alv-filter/m-p/10128477#M1818015</guid>
      <dc:creator>ThangaPrakash</dc:creator>
      <dc:date>2014-03-04T20:13:10Z</dc:date>
    </item>
  </channel>
</rss>

