<?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: question on select in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-select/m-p/1651209#M289357</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I understand the questoin completely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If you want distinct rows only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT DISTINCT FIELD1 FIELD2 .... INTO TABLE .......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If you want to select all the rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT FIELD1 FIELD2 .... INTO TABLE .......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note : Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Nov 2006 13:17:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-13T13:17:47Z</dc:date>
    <item>
      <title>question on select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-select/m-p/1651208#M289356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was doing a select in a program and I was selecting specific fields. I noticed that if there was more that one record with the same values in the fields that I was selecting, it would only retreive one record. I had to put a field in the select that was unique so that I could extract all of the records. Is there something that I have to code in the select statement to be able to retreive all of the records that have the same values or is it that I have to include a unique identifier in the select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in avdance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 13:15:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-select/m-p/1651208#M289356</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T13:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: question on select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-select/m-p/1651209#M289357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I understand the questoin completely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If you want distinct rows only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT DISTINCT FIELD1 FIELD2 .... INTO TABLE .......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If you want to select all the rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT FIELD1 FIELD2 .... INTO TABLE .......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note : Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 13:17:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-select/m-p/1651209#M289357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T13:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: question on select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-select/m-p/1651210#M289358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Timothy,&lt;/P&gt;&lt;P&gt;    If it is that way, you can select * (Instead of specific fields) .&lt;/P&gt;&lt;P&gt;If you get only specific fields, whats is the point in getting duplicate records?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 13:20:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-select/m-p/1651210#M289358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T13:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: question on select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-select/m-p/1651211#M289359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By default SELECT will fetch all the records when there are more than one record. You can avoid it by using DISTICT addition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But by your question I understand you want duplicate records too. You no need to write any addition for your SELECT as it fetches all the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can write the query we could help you better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Surya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 13:35:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-select/m-p/1651211#M289359</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T13:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: question on select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-select/m-p/1651212#M289360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Timothy,&lt;/P&gt;&lt;P&gt;There must be distinct value for atleast one field to retrieve the records having same values for differnet fileds. or else it would not b epossible in the way u want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;keerthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 13:35:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-select/m-p/1651212#M289360</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T13:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: question on select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-select/m-p/1651213#M289361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Timothy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select fields into table itab from ztab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above should fetch all the records irrespective of duplicates...Now, as you said that it is not fetching duplicates records it can be due to defn of you internal table is it a standard table or other ? If not please check there might be a code which would deleting the adjacent duplicates and hence a single record ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 13:45:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-select/m-p/1651213#M289361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T13:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: question on select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-select/m-p/1651214#M289362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is an issue whe you SELECT using FOR ALL ENTRIES. If you check the documentation, you'll see that duplicate entries are discarded, so if you want all records, you have to make the selection unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 14:32:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-select/m-p/1651214#M289362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T14:32:59Z</dc:date>
    </item>
  </channel>
</rss>

