<?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: compare records in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-records/m-p/3065779#M726475</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Suganya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want to compare the records or do u need something else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u want to compare the records, then u can do it in nested loops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg : Consider i_tab1 is  first internal table with header lines.&lt;/P&gt;&lt;P&gt;                     i_tab2 is second internal table with header lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at i_tab1.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;    loop at i_tab2  where field1 = i_tab1-field1 and&lt;/P&gt;&lt;P&gt;                                   field2 = i_tab1-field2 and&lt;/P&gt;&lt;P&gt;                                   fieldN = i_tab1-fieldN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;if the control enters the second loop, then duplicate records exists.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;if u want to count the duplicate records,set a counter &amp;amp; increment the counter       &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Nov 2007 04:22:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-16T04:22:29Z</dc:date>
    <item>
      <title>compare records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-records/m-p/3065776#M726472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the itab for ex.&lt;/P&gt;&lt;P&gt; no              code&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------" /&gt;&lt;P&gt;1                   ht&lt;/P&gt;&lt;P&gt;1                   ht&lt;/P&gt;&lt;P&gt;1                   ht1&lt;/P&gt;&lt;P&gt;I want to compare these record.ie 1st rec with all other records and 2nd  with all other rec etc. How can I do this. Or else can I find the count.How?Plz help me..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 04:04:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-records/m-p/3065776#M726472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T04:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: compare records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-records/m-p/3065777#M726473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data:count type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into wA.&lt;/P&gt;&lt;P&gt;at new field1.&lt;/P&gt;&lt;P&gt;clear count.&lt;/P&gt;&lt;P&gt;count = count + 1.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;count = count + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Karthikeyan Pandurangan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 04:07:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-records/m-p/3065777#M726473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T04:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: compare records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-records/m-p/3065778#M726474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
data : l_lines type sy-tabix.
describe table itab lines l_lines.
loop at itab into watab.
l_tabix = sy-tabix + 1.
loop at itab into wtemp from l_tabix to l_lines where matnr = watab-matnr.
write :/ 'duplicate record exists'.
endloop.
clear : l_tabix,
          watab,
          wtemp.
endloop.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 04:07:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-records/m-p/3065778#M726474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T04:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: compare records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-records/m-p/3065779#M726475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Suganya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want to compare the records or do u need something else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u want to compare the records, then u can do it in nested loops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg : Consider i_tab1 is  first internal table with header lines.&lt;/P&gt;&lt;P&gt;                     i_tab2 is second internal table with header lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at i_tab1.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;    loop at i_tab2  where field1 = i_tab1-field1 and&lt;/P&gt;&lt;P&gt;                                   field2 = i_tab1-field2 and&lt;/P&gt;&lt;P&gt;                                   fieldN = i_tab1-fieldN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;if the control enters the second loop, then duplicate records exists.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;if u want to count the duplicate records,set a counter &amp;amp; increment the counter       &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 04:22:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-records/m-p/3065779#M726475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T04:22:29Z</dc:date>
    </item>
  </channel>
</rss>

