<?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: Duplicate records in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/3986891#M952433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, before assign your final internal table to ALV funtion module. just refresh the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat n&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jun 2008 03:39:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-24T03:39:56Z</dc:date>
    <item>
      <title>Duplicate records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/3986887#M952429</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 have developed a ALV report which is working fine, if i give single value as input for a particular field in the selection. But if i give multiple values for the same fields as input, the records are getting duplicated for one input value.&lt;/P&gt;&lt;P&gt;           For example, if i give just one PERNR in the input, it will show 6 records as output which are correct. But if i give two pernrs in the input, for one pernr it showing 12 (getting duplicates of original 6) and for other pernr it showing only one which is correct...where might i go wrong..pls suggest me...&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;             Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 02:34:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/3986887#M952429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T02:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/3986888#M952430</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;Clear the final internal table which shown in the ALV...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for clear the internal table use &lt;STRONG&gt;Refresh itab&lt;/STRONG&gt; statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 02:55:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/3986888#M952430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T02:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/3986889#M952431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram, &lt;/P&gt;&lt;P&gt;             Its just simple, if u try to again execute it will give 18 ,24 entries and so on, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to clear the internal table to avoid duplicates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 03:29:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/3986889#M952431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T03:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/3986890#M952432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the following :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Clear itab.
Delete adjecent duplicates from itab.
DELETE ADJACENT DUPLICATES FROM itab comparing pernr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rock.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 03:39:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/3986890#M952432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T03:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/3986891#M952433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, before assign your final internal table to ALV funtion module. just refresh the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat n&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 03:39:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/3986891#M952433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T03:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/3986892#M952434</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;When there is issue of duplicate records the first thing we need to check , if the internal table for ALV is refreshed or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like all data objects, you can initialize internal tables with the&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLEAR &amp;lt;itab&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; . &lt;/P&gt;&lt;P&gt;This statement restores an internal table to the state it was in immediately after you declared it. This means that the table contains no lines. However, the memory already occupied by the memory up until you cleared it remains allocated to the table. If you are using internal tables with header lines, remember that the header line and the body of the table have the same name. If you want to address the body of the table in a comparison, you&lt;/P&gt;&lt;P&gt;must place two brackets ([ ]) after the table name. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLEAR &amp;lt;itab&amp;gt;[].&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;To ensure that the table itself has been initialized, you can use the&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REFRESH &amp;lt;itab&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; . &lt;/P&gt;&lt;P&gt;This always applies to the body of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other thing we can do is use ''delete adjacent duplicates''  syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dhanashri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 04:28:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicate-records/m-p/3986892#M952434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T04:28:01Z</dc:date>
    </item>
  </channel>
</rss>

