<?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: Select distinct issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-distinct-issue/m-p/11869194#M1959714</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;&lt;A __default_attr="628119" __jive_macro_name="user" class="jive_macro_user jive_macro" data-orig-content="Feiyun Wu" href="https://community.sap.com/"&gt;&lt;/A&gt; is correct .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually it is documented&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/1022698" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get there use "google search operators "&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN&gt;site:&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.sap.com/abapdocu_740/en/"&gt;http://help.sap.com/abapdocu_740/en/&lt;/A&gt;&lt;SPAN&gt; "WHERE - FOR ALL ENTRIES "&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to get all your data you need to include in the output table the full key of your input table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Eitan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Aug 2016 03:53:22 GMT</pubDate>
    <dc:creator>rosenberg_eitan</dc:creator>
    <dc:date>2016-08-25T03:53:22Z</dc:date>
    <item>
      <title>Select distinct issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-distinct-issue/m-p/11869192#M1959712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus.&lt;/P&gt;&lt;P&gt;Forgive me for such silly question but I don't have too much experience in ABAP.&lt;/P&gt;&lt;P&gt;I search for an answer for this question but being honest, I have no idea of an effective way to search for this.&lt;/P&gt;&lt;P&gt;Well, the problem is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I build a dynamic SQL statement like this.&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/1022640" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I'm facing a problem, when I execute the same statemant using SE11 I got more records than when I execute this sentence in the program, so, I record a trace for this statemant in ST05 and for my surprise I got this.&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/1022641" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I ask you guys, where that &lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;DISCTINC&lt;/STRONG&gt;&lt;/SPAN&gt; came from? Because it is not in the lv_fields variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could solve this problem by selecting the PK fields for this table but, I don't need those fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I very appreciate any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ronaldo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 23:52:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-distinct-issue/m-p/11869192#M1959712</guid>
      <dc:creator>former_member202733</dc:creator>
      <dc:date>2016-08-24T23:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Select distinct issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-distinct-issue/m-p/11869193#M1959713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ronaldo,&lt;/P&gt;&lt;P&gt;Maybe it is because you used for all entries in itab.&lt;/P&gt;&lt;P&gt;It will delete the same lines in the result when you did not use all keys field in Select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2016 02:16:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-distinct-issue/m-p/11869193#M1959713</guid>
      <dc:creator>former_member192023</dc:creator>
      <dc:date>2016-08-25T02:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Select distinct issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-distinct-issue/m-p/11869194#M1959714</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;&lt;A __default_attr="628119" __jive_macro_name="user" class="jive_macro_user jive_macro" data-orig-content="Feiyun Wu" href="https://community.sap.com/"&gt;&lt;/A&gt; is correct .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually it is documented&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/1022698" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get there use "google search operators "&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN&gt;site:&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.sap.com/abapdocu_740/en/"&gt;http://help.sap.com/abapdocu_740/en/&lt;/A&gt;&lt;SPAN&gt; "WHERE - FOR ALL ENTRIES "&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to get all your data you need to include in the output table the full key of your input table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Eitan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2016 03:53:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-distinct-issue/m-p/11869194#M1959714</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2016-08-25T03:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Select distinct issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-distinct-issue/m-p/11869195#M1959715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you guys!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, in terms of performance, which is better, build the in condition my self or use the full qualified PK on the internal table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ronaldo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2016 12:49:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-distinct-issue/m-p/11869195#M1959715</guid>
      <dc:creator>former_member202733</dc:creator>
      <dc:date>2016-08-25T12:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Select distinct issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-distinct-issue/m-p/11869196#M1959716</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;The point is not only performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will not get all the records if you fail to use the full key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2016 13:36:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-distinct-issue/m-p/11869196#M1959716</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2016-08-25T13:36:53Z</dc:date>
    </item>
  </channel>
</rss>

