<?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 Sort a View in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-a-view/m-p/2058803#M425244</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 want to sort a View with 4 fields in a program. I want to sort it before to write some registers in a internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how i can do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Mar 2007 08:45:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-28T08:45:17Z</dc:date>
    <item>
      <title>Sort a View</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-a-view/m-p/2058803#M425244</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 want to sort a View with 4 fields in a program. I want to sort it before to write some registers in a internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how i can do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 08:45:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-a-view/m-p/2058803#M425244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T08:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sort a View</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-a-view/m-p/2058804#M425245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not get your actual scenario.&lt;/P&gt;&lt;P&gt;Can u explain a bit in detail?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tejas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 08:46:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-a-view/m-p/2058804#M425245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T08:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sort a View</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-a-view/m-p/2058805#M425246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a view : Z99BW69.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a programa, I want to select some registers and insert into a internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had create the internal table with the same structure than the View.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But before insert the registers, I want to sort the view in 3 some fields. The reason is becase after that I want to use the instruction AT NEW, ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  Z99BW047.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : Z99BW69.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*sort z99BW69 by BUKRS MATNR POPER BLDAT BELNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: begin of ITAB1 occurs 0.&lt;/P&gt;&lt;P&gt;  INCLUDE STRUCTURE Z99BW69.&lt;/P&gt;&lt;P&gt;DATA: end of ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;HERE I WANT TO SORT THE Z99BW69!!&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;sort Z99BW69 by ..... // I cant do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from Z99BW69&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE  itab1&lt;/P&gt;&lt;P&gt;where MATNR = 'P39161200'&lt;/P&gt;&lt;P&gt;*AND POPER = '2'&lt;/P&gt;&lt;P&gt;AND WAERS = 'EUR'&lt;/P&gt;&lt;P&gt;AND BELNR IN ('0070000020','0070000023','0070000021','0070000022').&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 08:53:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-a-view/m-p/2058805#M425246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T08:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sort a View</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sort-a-view/m-p/2058806#M425247</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;    statements like sort, append, insert, read, etc. are all commands that perform operations on internal tables...you can't use them on a database object...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful, reward&lt;/P&gt;&lt;P&gt;Sathish. R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 09:08:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sort-a-view/m-p/2058806#M425247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T09:08:09Z</dc:date>
    </item>
  </channel>
</rss>

