<?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: Regading SAP Query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regading-sap-query/m-p/6782338#M1464744</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;  I'm facing the same requirement. The internal table should be %dtab, the problem is that I'm not able to write code to delete the duplicate records. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried writing in &lt;STRONG&gt;SQ02&lt;/STRONG&gt; in additional coding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;data %dtab type standard table of /1BCDWB/IQ000000001053 with header line.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sort %dtab by vbeln posnr.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DELETE ADJACENT DUPLICATES FROM %dtab.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way I get the short dump when running the query: "Statement is not accessible.".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I declare %dtab in the additional coding under "DATA", when I run the query I get the error "%dtab is already declared".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I don't declare %dtab, I can't generate the infoset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any suggestion?&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;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Jan 2011 12:36:32 GMT</pubDate>
    <dc:creator>andrea_brusarestelletti</dc:creator>
    <dc:date>2011-01-24T12:36:32Z</dc:date>
    <item>
      <title>Regading SAP Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regading-sap-query/m-p/6782337#M1464743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SAP Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me how to delete adjacent duplicates from the output of a query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By watching different  posts I have found that by writing code in the infoset the duplicates can be deleted, but i not getting the internal table from where the output is displayed, can any one help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Pavan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 06:36:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regading-sap-query/m-p/6782337#M1464743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-24T06:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Regading SAP Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regading-sap-query/m-p/6782338#M1464744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;  I'm facing the same requirement. The internal table should be %dtab, the problem is that I'm not able to write code to delete the duplicate records. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried writing in &lt;STRONG&gt;SQ02&lt;/STRONG&gt; in additional coding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;data %dtab type standard table of /1BCDWB/IQ000000001053 with header line.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sort %dtab by vbeln posnr.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DELETE ADJACENT DUPLICATES FROM %dtab.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way I get the short dump when running the query: "Statement is not accessible.".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I declare %dtab in the additional coding under "DATA", when I run the query I get the error "%dtab is already declared".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I don't declare %dtab, I can't generate the infoset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any suggestion?&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;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 12:36:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regading-sap-query/m-p/6782338#M1464744</guid>
      <dc:creator>andrea_brusarestelletti</dc:creator>
      <dc:date>2011-01-24T12:36:32Z</dc:date>
    </item>
  </channel>
</rss>

