<?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: Adding a Sort Button in SM30 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-sort-button-in-sm30/m-p/7638662#M1572007</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try creating your own PAI module in which u can mention code something like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: fld(30),&lt;/P&gt;&lt;P&gt;      lin TYPE i,&lt;/P&gt;&lt;P&gt;      off TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET CURSOR FIELD fld LINE lin OFFSET off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fld gives you the fild name on which u put the cursor. Based on that u can try sorting. Dunno if this works or not, but u can give it a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Feb 2011 11:18:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-02-04T11:18:55Z</dc:date>
    <item>
      <title>Adding a Sort Button in SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-sort-button-in-sm30/m-p/7638661#M1572006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        I have a Z table which I am maintaining it through SM30 which has got 5 fields (ZREFERENCE, Profit Center, GL Account, Posting date and amount), currently the data is getting sorted on the basis of ZREFERENCE field. The requirement is after clicking a sort button the data should get sorted on the basis of the field that I have selected. I have created a button on application tollbar.  Need further help in displaying the data in required sorted format...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Viraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 10:07:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-sort-button-in-sm30/m-p/7638661#M1572006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-04T10:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Sort Button in SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-sort-button-in-sm30/m-p/7638662#M1572007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try creating your own PAI module in which u can mention code something like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: fld(30),&lt;/P&gt;&lt;P&gt;      lin TYPE i,&lt;/P&gt;&lt;P&gt;      off TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET CURSOR FIELD fld LINE lin OFFSET off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fld gives you the fild name on which u put the cursor. Based on that u can try sorting. Dunno if this works or not, but u can give it a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 11:18:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-sort-button-in-sm30/m-p/7638662#M1572007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-04T11:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Sort Button in SM30</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-sort-button-in-sm30/m-p/7638663#M1572008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might want to sort the internat table of table maintaince based on the sort is hit before you display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer:http://help-abap.blogspot.com/2008/09/add-custom-button-on-maintianence-view.html&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 11:41:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-a-sort-button-in-sm30/m-p/7638663#M1572008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-04T11:41:56Z</dc:date>
    </item>
  </channel>
</rss>

