<?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: table control find button in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-find-button/m-p/7359350#M1541729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can we Hi-Lite the Perticular Row what we Searched and also Can i have the code for Next button also&lt;/P&gt;&lt;P&gt;So that if the record exist with same Name So that i stops at Next row of same Name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Feb 2011 11:15:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-02-28T11:15:22Z</dc:date>
    <item>
      <title>table control find button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-find-button/m-p/7359344#M1541723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had used find button in my screen painter. the below code is working fine when i give material number input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my given material nuber matches with more number of records in my internal table but in my top of line of table control &lt;/P&gt;&lt;P&gt;its showing only one record. i want to display all records matches in order from top of line of table control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please provide me some solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code:&lt;/P&gt;&lt;P&gt; WHEN 'FIND'.&lt;/P&gt;&lt;P&gt;        REFRESH tab.&lt;/P&gt;&lt;P&gt;      clear ok_code.&lt;/P&gt;&lt;P&gt;      TAB-TABNAME = 'MARA'.&lt;/P&gt;&lt;P&gt;      TAB-FIELDNAME = 'MATNR'.&lt;/P&gt;&lt;P&gt;      TAB-VALUE = ''.&lt;/P&gt;&lt;P&gt;      APPEND TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'POPUP_GET_VALUES'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          POPUP_TITLE           = 'FIND'&lt;/P&gt;&lt;P&gt;          START_COLUMN      = '5'&lt;/P&gt;&lt;P&gt;          START_ROW            = '5'&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;            FIELDS                  = TAB.&lt;/P&gt;&lt;P&gt;     LOOP AT TAB WHERE VALUE IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;          READ TABLE ITAB WITH KEY MATNR = TAB-VALUE.&lt;/P&gt;&lt;P&gt;            IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;              TBL_CTRL_0112-TOP_LINE = sy-tabix.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 09:40:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-find-button/m-p/7359344#M1541723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-11T09:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: table control find button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-find-button/m-p/7359345#M1541724</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;Why don't you have a separate button 'Find Next' which will take you to the next record that matches your find? Or code your FIND in such a way that it displays all the matched records in the beginning followed by the others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 10:11:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-find-button/m-p/7359345#M1541724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-11T10:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: table control find button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-find-button/m-p/7359346#M1541725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i want to display all records matches in order from top of line of table control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are providing serach for some fixed fields then you can just do a sort on the internal table based on the searched field and use your existing logic. If the search fields are not fixed then you can use the logic below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: itab    TYPE TABLE OF string,
      lf_string type string,
      lf_pattern type string,
      results TYPE match_result_tab.

lf_string = 'AA'.
append lf_string to itab.
lf_string = 'AC'.
append lf_string to itab.
lf_string = 'BB'.
append lf_string to itab.
lf_string = 'AC'.
append lf_string to itab.
lf_string = 'ABAC'.
append lf_string to itab.

lf_pattern = 'AC'.

FIND ALL OCCURRENCES OF lf_pattern
  IN TABLE itab
  RESULTS results.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table results will hold all the indexes of the search pattern.&lt;/P&gt;&lt;P&gt;Now when the user clicks find next read the index from results and place it as the top_line of the table control.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2010 11:46:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-find-button/m-p/7359346#M1541725</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-11-11T11:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: table control find button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-find-button/m-p/7359347#M1541726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its too late but i think it will help the people who will find for the similar option. Check out my Blog [Filter and Search in Table Control|http://sdnabaper.blogspot.com/2010/11/filter-and-search-in-table-control.html]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Nov 2010 06:35:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-find-button/m-p/7359347#M1541726</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2010-11-22T06:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: table control find button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-find-button/m-p/7359348#M1541727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to search a particular column for a string, you will have to parse the column names. of the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 14:25:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-find-button/m-p/7359348#M1541727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-22T14:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: table control find button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-find-button/m-p/7359349#M1541728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for ur help my Problem Solved. . . .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 10:59:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-find-button/m-p/7359349#M1541728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-28T10:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: table control find button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-find-button/m-p/7359350#M1541729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can we Hi-Lite the Perticular Row what we Searched and also Can i have the code for Next button also&lt;/P&gt;&lt;P&gt;So that if the record exist with same Name So that i stops at Next row of same Name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 11:15:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-find-button/m-p/7359350#M1541729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-28T11:15:22Z</dc:date>
    </item>
  </channel>
</rss>

