<?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 Abap query and duplicate rows in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-and-duplicate-rows/m-p/8609955#M1663095</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'm creating a query using tables VBAK and VBKD.&lt;/P&gt;&lt;P&gt;When I execute the query, system displays duplicate rows.&lt;/P&gt;&lt;P&gt;Is there a code I can put in the infoset so that will be displayed only one row for each sales order ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My situation is the following:&lt;/P&gt;&lt;P&gt;2035000 ZSOR FOB&lt;/P&gt;&lt;P&gt;2035000 ZSOR FOB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first columns is related to a sales order, the second is the document type and last one is the incoterms. I also have furthers data in my report&lt;/P&gt;&lt;P&gt;and I have to use the above tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Apr 2012 15:31:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-04-03T15:31:25Z</dc:date>
    <item>
      <title>Abap query and duplicate rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-and-duplicate-rows/m-p/8609955#M1663095</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'm creating a query using tables VBAK and VBKD.&lt;/P&gt;&lt;P&gt;When I execute the query, system displays duplicate rows.&lt;/P&gt;&lt;P&gt;Is there a code I can put in the infoset so that will be displayed only one row for each sales order ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My situation is the following:&lt;/P&gt;&lt;P&gt;2035000 ZSOR FOB&lt;/P&gt;&lt;P&gt;2035000 ZSOR FOB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first columns is related to a sales order, the second is the document type and last one is the incoterms. I also have furthers data in my report&lt;/P&gt;&lt;P&gt;and I have to use the above tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 15:31:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-and-duplicate-rows/m-p/8609955#M1663095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-03T15:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Abap query and duplicate rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-and-duplicate-rows/m-p/8609956#M1663096</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 do not how you written code and key fields in in it.Go through this &lt;A _jive_internal="true" href="https://answers.sap.com/thread/2116717"&gt;http://scn.sap.com/thread/2116717&lt;/A&gt;.If there is any issue post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 16:03:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-and-duplicate-rows/m-p/8609956#M1663096</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2012-04-03T16:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Abap query and duplicate rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-and-duplicate-rows/m-p/8609957#M1663097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you look at VBKD, you will see a 2nd key field - POSNR.&amp;nbsp; Therefore, it would appear that there can be more than one entry for a document in VBKD, but only only row per document in VBAK, would you agree?&amp;nbsp; Add something that does 'where POSNR = 0' to the data selection for VBKD, since in SD, posnr = 0 refers to the header portion of the document.&amp;nbsp; If you do that, however, you will fail to report item level rows ( = VBAP table) that have a different INCO1, 2 than what is stored at the header or document level.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 17:48:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-and-duplicate-rows/m-p/8609957#M1663097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-03T17:48:16Z</dc:date>
    </item>
  </channel>
</rss>

