<?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: Use filtered ALV table data in OOP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-filtered-alv-table-data-in-oop/m-p/491754#M16610</link>
    <description>&lt;P&gt;Use method &lt;A href="https://onedx.find.sap.com/s#t=get_filtered_entries"&gt;get_filtered_entries&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Sep 2017 10:54:04 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2017-09-19T10:54:04Z</dc:date>
    <item>
      <title>Use filtered ALV table data in OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-filtered-alv-table-data-in-oop/m-p/491753#M16609</link>
      <description>&lt;P&gt;Is there an easy way of retrieving the ALV data that is displayed when there are also filters used on that ALV? &lt;/P&gt;
  &lt;P&gt;The ALV is an object of CL_GUI_ALV_GRID. When showing it to the user, there is a filter placed on it by default. The user also has a button that processes the data in the ALV. How can I make sure the process only works with the data that is displayed, even if the user places his own filters on the ALV? &lt;/P&gt;
  &lt;P&gt;e.g: An ALV gets created from an itab that has 10 rows, but because there is also a filter passed on the ALV, only 8 rows are showing. When pressing a button, I only want to work with the 8 rows currently showing to the user. &lt;/P&gt;
  &lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 09:50:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/use-filtered-alv-table-data-in-oop/m-p/491753#M16609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-09-19T09:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Use filtered ALV table data in OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-filtered-alv-table-data-in-oop/m-p/491754#M16610</link>
      <description>&lt;P&gt;Use method &lt;A href="https://onedx.find.sap.com/s#t=get_filtered_entries"&gt;get_filtered_entries&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 10:54:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/use-filtered-alv-table-data-in-oop/m-p/491754#M16610</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2017-09-19T10:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Use filtered ALV table data in OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-filtered-alv-table-data-in-oop/m-p/491755#M16611</link>
      <description>&lt;P&gt;Thanks, that is already really helpful, but this method gets me the entries that are NOT displayed. How would I best translate this to the displayed entries? I think filling a table with entries not displayed, copying the source table and then looping through this copy and checking if they are in the non-displayed entries to delete them is a little bit timeconsuming. &lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 11:11:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/use-filtered-alv-table-data-in-oop/m-p/491755#M16611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-09-19T11:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Use filtered ALV table data in OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-filtered-alv-table-data-in-oop/m-p/491756#M16612</link>
      <description>&lt;P&gt;Usually I loop in the internal table and for each record check if it's hidden (in the filtered entries) The other solution is build a second itab so the check is only executed once, it depends on your program layout.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 11:53:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/use-filtered-alv-table-data-in-oop/m-p/491756#M16612</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2017-09-19T11:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Use filtered ALV table data in OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-filtered-alv-table-data-in-oop/m-p/491757#M16613</link>
      <description>&lt;P&gt;I ended up copying the source table, looping over the filtered entries and deleting those indexes from the copy of source. &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;      " Copy original table
      DATA(lit_buffer) = lt_disp_items.

      " Get excluded rows
      lo_alv_grid-&amp;gt;get_filtered_entries(
        IMPORTING
          et_filtered_entries = DATA(lit_index)
      ).

      " Remove excluded rows from buffer
      LOOP AT lit_index ASSIGNING FIELD-SYMBOL(&amp;lt;index&amp;gt;).
        DELETE lit_buffer INDEX &amp;lt;index&amp;gt;.
      ENDLOOP.
&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Sep 2017 12:11:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/use-filtered-alv-table-data-in-oop/m-p/491757#M16613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-09-19T12:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Use filtered ALV table data in OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-filtered-alv-table-data-in-oop/m-p/491758#M16614</link>
      <description>&lt;P&gt;Be aware that deleting a row will change the index value of following rows... (you could sort/loop filtered entries by index descending among many other tricks to solve this one)&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 12:42:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/use-filtered-alv-table-data-in-oop/m-p/491758#M16614</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2017-09-19T12:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Use filtered ALV table data in OOP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/use-filtered-alv-table-data-in-oop/m-p/491759#M16615</link>
      <description>&lt;P&gt;Using method GET_FILTERED_ENTRIES you can get filtered values of the ALV. Exporting parameter ET_FILTERED_ENTRIES holds the filtered rows. &lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 14:22:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/use-filtered-alv-table-data-in-oop/m-p/491759#M16615</guid>
      <dc:creator>satyabrata_sahoo3</dc:creator>
      <dc:date>2017-09-19T14:22:38Z</dc:date>
    </item>
  </channel>
</rss>

