<?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: Sorting Option in Table Control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799852#M1679999</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiiii ,&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; For Search option on your main screen give a search button ... on click event call modal dialog box screen - and you can make a modal dialog box screen give suitable field which you want to use as a search option&amp;nbsp; and on modal dialog box screen made 2 buttons ok and cancel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on ok button write logic ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;READ &lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&amp;lt;internal table&amp;gt; &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;&amp;lt;workarea&amp;gt; &lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;KEY &amp;lt;as you given in modal screen&amp;gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;sy-subrc = &lt;SPAN class="L0S32"&gt;0 &lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;SET &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;SCREEN &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S32"&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;table control name&amp;gt;-current_line = " Write &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;your own logic &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;&amp;lt;table control name&amp;gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;top_line =. "Write your own logic &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ELSE.&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;MESSAGE &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'No record found ' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'S'&lt;/SPAN&gt;.&lt;BR /&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;Same as for filer also use delete on internal table as per your filter criteria and&amp;nbsp; show it on &amp;lt;table_control&amp;gt; . " For filter you have to use some screen concept also &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to apply your own logic also .............i have given hints ..... &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/825/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jun 2012 07:50:29 GMT</pubDate>
    <dc:creator>Aashish28</dc:creator>
    <dc:date>2012-06-27T07:50:29Z</dc:date>
    <item>
      <title>Sorting Option in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799839#M1679986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guru's,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have a requirement that to add Sorting option in my Table Control Wizard .I added code but in my table control I am unable to select any column .This is in editable mode also.I am facing this problem and i go through the websites .I didn't get solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 06:21:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799839#M1679986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-27T06:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Option in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799840#M1679987</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;In the table control properties there are checkboxes about column and line select-ability. Please check that the correct checkboxes are selected and reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 06:43:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799840#M1679987</guid>
      <dc:creator>laurent_fournier2</dc:creator>
      <dc:date>2012-06-27T06:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Option in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799841#M1679988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you referring to below settings? I can see the options to hide (mark invisible) fields. But there is no option to sort them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I doubt it can be done in table control.&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/114231" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 06:50:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799841#M1679988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-27T06:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Option in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799842#M1679989</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;I didn't get you.Will you plz explain me in detail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 07:01:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799842#M1679989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-27T07:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Option in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799843#M1679990</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; I got it .Can you plz tell me filter option ,search option also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 07:03:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799843#M1679990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-27T07:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Option in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799844#M1679991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Laurent,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was working now.Can you plz tell me filter and search option also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 07:10:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799844#M1679991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-27T07:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Option in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799845#M1679992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no built-in sort option in table control, you have to code the SORT yourself by reacting to selectio of column headers and your own defined function code (eg. adding two icons on the dynpro for sort ascending/descending).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PBO :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In the defined Table control (CONTROLS, structure CXTAB_CONTROL) there is a subfield COL_SEL_MODE to enable column selection (0-no selection (default) 1-one column 2-any number of&amp;nbsp; columns)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PAI :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Loop at columns (subfield COLS internal table, records structure CXTAB_COLUMN subfield SELECTED) to find which columns where selected and execute a dynamic SORT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 07:11:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799845#M1679992</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-06-27T07:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Option in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799846#M1679993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raymond ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I added code for sorting .It is working .Now I need filtering and search option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 07:13:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799846#M1679993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-27T07:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Option in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799847#M1679994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiiii,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For selecting column : &lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/114246" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to set this column property and for your sorting give 2 sort up and sort down button and write logic for function code in PAI - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;READ &lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;I&amp;lt;table_contol_name&amp;gt;-cols &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;cols &lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;KEY &lt;/SPAN&gt;selected = &lt;SPAN class="L0S33"&gt;'X'&lt;/SPAN&gt;.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;sy-subrc = &lt;SPAN class="L0S32"&gt;0.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;SORT &lt;/SPAN&gt;&amp;lt;Internal_table&amp;gt;_name STABLE &lt;SPAN class="L0S52"&gt;BY &lt;/SPAN&gt;(cols-SCREEN-name+17) ASCENDING. " OR &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;DESCENDING&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cols-selected = &lt;SPAN class="L0S33"&gt;' '&lt;/SPAN&gt;.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;MODIFY &amp;lt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;table_contol_name&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;-cols &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;cols &lt;SPAN class="L0S52"&gt;INDEX &lt;/SPAN&gt;sy-tabix.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i've used 17 for offset because my internal table name is 16character long + one character for '-'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 07:19:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799847#M1679994</guid>
      <dc:creator>Aashish28</dc:creator>
      <dc:date>2012-06-27T07:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Option in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799848#M1679995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(You could consider using ALV grid, where those functions are built-in)&lt;/P&gt;&lt;P&gt;The filtering is a little harder.&lt;SPAN __jive_emoticon_name="plain" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/825/images/emoticons/plain.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Layout :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For filter input, add a new icon with function code (e.g.ICON_FILTER)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PAI :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You could use a FM like FREE_SELECTIONS_DIALOG to generate a "selection-screen" dialog, then FREE_SELECTIONS_RANGE_2_WHERE to convert into ranges &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PBO &lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;You should consider filtering record between two internal tables - the total one and the filtered one using the generated ranges. (and in PAI you will have to map the update from the filtered/displayed itab&amp;nbsp; to the full itab)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The search tool is comparatively easy, try to solve it yourself &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/825/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 07:23:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799848#M1679995</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-06-27T07:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Option in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799849#M1679996</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;I is working fine . Now I want searchng &amp;amp; filtering option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 07:26:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799849#M1679996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-27T07:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Option in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799850#M1679997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As with sorting functionality, filtering and search requires you to program the functions manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add the pushbuttons and create coding for eash function depending what you want to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, since you want all this functionality, why you are not using alv instead of table control ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 07:28:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799850#M1679997</guid>
      <dc:creator>laurent_fournier2</dc:creator>
      <dc:date>2012-06-27T07:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Option in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799851#M1679998</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;I suggested my user for ALV but they don't want to use it .That is the problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 07:42:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799851#M1679998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-27T07:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Option in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799852#M1679999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiiii ,&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; For Search option on your main screen give a search button ... on click event call modal dialog box screen - and you can make a modal dialog box screen give suitable field which you want to use as a search option&amp;nbsp; and on modal dialog box screen made 2 buttons ok and cancel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on ok button write logic ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;READ &lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&amp;lt;internal table&amp;gt; &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;&amp;lt;workarea&amp;gt; &lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;KEY &amp;lt;as you given in modal screen&amp;gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;sy-subrc = &lt;SPAN class="L0S32"&gt;0 &lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;SET &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;SCREEN &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S32"&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;table control name&amp;gt;-current_line = " Write &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;your own logic &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;&amp;lt;table control name&amp;gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;top_line =. "Write your own logic &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ELSE.&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;MESSAGE &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'No record found ' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'S'&lt;/SPAN&gt;.&lt;BR /&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;Same as for filer also use delete on internal table as per your filter criteria and&amp;nbsp; show it on &amp;lt;table_control&amp;gt; . " For filter you have to use some screen concept also &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to apply your own logic also .............i have given hints ..... &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/825/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 07:50:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799852#M1679999</guid>
      <dc:creator>Aashish28</dc:creator>
      <dc:date>2012-06-27T07:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Option in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799853#M1680000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, so in this case , you must code all the appropriate functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 07:56:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799853#M1680000</guid>
      <dc:creator>laurent_fournier2</dc:creator>
      <dc:date>2012-06-27T07:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Option in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799854#M1680001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Here what logic I have to write &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;table control name&amp;gt;-current_line = " Write &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;your own logic &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;&amp;lt;table control name&amp;gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;top_line =. "Write your own logic &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 08:53:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799854#M1680001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-27T08:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Option in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799855#M1680002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiiii ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In my Case for putting my search result on top I had used serial no. in my internal table so when my read table performs and if i got successful search result than i also got one serial number which i had used for putting result to top of row in table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;table control name&amp;gt;-current_line = wa-srno . " Write &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;your own logic &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;&amp;lt;table control name&amp;gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;top_line =. wa-srno . "Write your own logic &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per you requirement you can use your one &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/825/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&amp;nbsp; and filtering is tricky and little harder so just apply screen logic for that read my previous comments . &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/825/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 11:08:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799855#M1680002</guid>
      <dc:creator>Aashish28</dc:creator>
      <dc:date>2012-06-27T11:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Option in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799856#M1680003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Searching option was solved . Only filter option is remaining.If you have any logic plz provide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 11:15:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799856#M1680003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-27T11:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting Option in Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799857#M1680004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiii shek ,&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have one new idea just try it ...... all the fields which you have in your internal table same field put on your one new modal dialog screen ok and same as search button give two more button filter and delete filter - put both buttons on main screen (but delete filter button should not be activate until filter is set ) on click event of filter button check whether the column is selected or not if yes - than get column name as i mentioned above by offset than in PBO do loop on screen and rest of all screen field make hide and show only selected field than on POV use F4IF_INT_TABLE_VALUE_REQUEST FM for getting F4 help by internal table values , once you select value from F4 List and press ok button delete all&amp;nbsp; record&amp;nbsp; from internal table which not come into filter criteria and show results on screen . before deleting make sure your original internal table should be copied into same new internal table because when you press delete filter button than on than buttons click event you can get the original records back &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/825/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my solution was different ....Try this&amp;nbsp; one .... and let me know if you found any problem , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards ,&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 11:47:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sorting-option-in-table-control/m-p/8799857#M1680004</guid>
      <dc:creator>Aashish28</dc:creator>
      <dc:date>2012-06-27T11:47:45Z</dc:date>
    </item>
  </channel>
</rss>

