<?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 Delete adjacent duplicates in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-adjacent-duplicates/m-p/10992647#M1895860</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Writing a query using tables VBRK &amp;amp; VBRP.&amp;nbsp; Require VBRP-VGBEL in the query.&amp;nbsp; VBRP-VGBEL is always the same on all line items.&amp;nbsp; I just want the report to show 1 line.&amp;nbsp; I have tried different coding but still get multiple lines.&amp;nbsp; I think my issues is I need some coding around the VBRP-POSNR.&lt;/P&gt;&lt;P&gt;Not sure what I am missing.&amp;nbsp; If VBRK-VBELN eq VBRP-VBELN then return one line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: ls_vbrp like standard table of vbrp with header line.&lt;/P&gt;&lt;P&gt;Select VBELN into corresponding fields of table ls_vbrp from vbrp&lt;/P&gt;&lt;P&gt;where vbeln eq vbrk-vbeln.&lt;/P&gt;&lt;P&gt;sort ls_vbrp by vbeln descending.&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from ls_vbrp comparing vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried including vgbel and only using vgbel. I've tried up to 1 rows.&amp;nbsp; I have tried adding VBRP-VGBEL as an additional field instead of using the table and the field appears blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pamela&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Apr 2015 21:48:47 GMT</pubDate>
    <dc:creator>former_member263707</dc:creator>
    <dc:date>2015-04-02T21:48:47Z</dc:date>
    <item>
      <title>Delete adjacent duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-adjacent-duplicates/m-p/10992647#M1895860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Writing a query using tables VBRK &amp;amp; VBRP.&amp;nbsp; Require VBRP-VGBEL in the query.&amp;nbsp; VBRP-VGBEL is always the same on all line items.&amp;nbsp; I just want the report to show 1 line.&amp;nbsp; I have tried different coding but still get multiple lines.&amp;nbsp; I think my issues is I need some coding around the VBRP-POSNR.&lt;/P&gt;&lt;P&gt;Not sure what I am missing.&amp;nbsp; If VBRK-VBELN eq VBRP-VBELN then return one line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: ls_vbrp like standard table of vbrp with header line.&lt;/P&gt;&lt;P&gt;Select VBELN into corresponding fields of table ls_vbrp from vbrp&lt;/P&gt;&lt;P&gt;where vbeln eq vbrk-vbeln.&lt;/P&gt;&lt;P&gt;sort ls_vbrp by vbeln descending.&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from ls_vbrp comparing vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried including vgbel and only using vgbel. I've tried up to 1 rows.&amp;nbsp; I have tried adding VBRP-VGBEL as an additional field instead of using the table and the field appears blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pamela&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 21:48:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-adjacent-duplicates/m-p/10992647#M1895860</guid>
      <dc:creator>former_member263707</dc:creator>
      <dc:date>2015-04-02T21:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Delete adjacent duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-adjacent-duplicates/m-p/10992648#M1895861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pamela,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use SELECT SINGLE as below and try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE vbeln FROM vbrp INTO CORRESPONDING FIELDS OF TABLE ls_vbrp WHERE vbeln EQ vbrk-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;TP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 10:57:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-adjacent-duplicates/m-p/10992648#M1895861</guid>
      <dc:creator>ThangaPrakash</dc:creator>
      <dc:date>2015-04-10T10:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Delete adjacent duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-adjacent-duplicates/m-p/10992649#M1895862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pamela,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your code is correct, when using DELETE DUPLICATES you will get only one of each VBELN records.&lt;/P&gt;&lt;P&gt;The code your are testing is the same you pasted here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Frisoni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 12:56:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-adjacent-duplicates/m-p/10992649#M1895862</guid>
      <dc:creator>guilherme_frisoni</dc:creator>
      <dc:date>2015-04-10T12:56:32Z</dc:date>
    </item>
  </channel>
</rss>

