<?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 Comparing 2 internal tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921089#M1331526</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 2 itabs.&lt;/P&gt;&lt;P&gt;itab2 contains:&lt;/P&gt;&lt;P&gt;174422070104      |0760 |000144200160|0000324482| 0321&lt;/P&gt;&lt;P&gt;174422070104      |0760 |000144200160|0000324482|1217&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab4 contains &lt;/P&gt;&lt;P&gt;174422070104      |0760 |000144200180|0000328602|0654&lt;/P&gt;&lt;P&gt;now when i compare as follows&lt;/P&gt;&lt;P&gt;LOOP AT ITAB2 .&lt;/P&gt;&lt;P&gt;   READ TABLE ITAB4 WITH KEY MATNR = ITAB2-MATNR binary search.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;   MOVE ITAB2-MATNR TO IT_DEL-MATNR.&lt;/P&gt;&lt;P&gt;   MOVE ITAB2-MAKTX TO IT_DEL-MAKTX.&lt;/P&gt;&lt;P&gt;   MOVE ITAB2-VORNR TO IT_DEL-VORNR.&lt;/P&gt;&lt;P&gt;   MOVE ITAB2-KZEAR TO IT_DEL-KZEAR.&lt;/P&gt;&lt;P&gt;   MOVE ITAB2-ENMNG TO IT_DEL-ENMNG.&lt;/P&gt;&lt;P&gt;   MOVE ITAB2-BDMNG TO IT_DEL-BDMNG.&lt;/P&gt;&lt;P&gt;APPEND IT_DEL.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;1st record of itab2 match with itab4 but itab4 does not have 2nd record. so it append to it_del. but its not happening as header line not cleared.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Jul 2009 06:36:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-11T06:36:53Z</dc:date>
    <item>
      <title>Comparing 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921089#M1331526</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 2 itabs.&lt;/P&gt;&lt;P&gt;itab2 contains:&lt;/P&gt;&lt;P&gt;174422070104      |0760 |000144200160|0000324482| 0321&lt;/P&gt;&lt;P&gt;174422070104      |0760 |000144200160|0000324482|1217&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab4 contains &lt;/P&gt;&lt;P&gt;174422070104      |0760 |000144200180|0000328602|0654&lt;/P&gt;&lt;P&gt;now when i compare as follows&lt;/P&gt;&lt;P&gt;LOOP AT ITAB2 .&lt;/P&gt;&lt;P&gt;   READ TABLE ITAB4 WITH KEY MATNR = ITAB2-MATNR binary search.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;   MOVE ITAB2-MATNR TO IT_DEL-MATNR.&lt;/P&gt;&lt;P&gt;   MOVE ITAB2-MAKTX TO IT_DEL-MAKTX.&lt;/P&gt;&lt;P&gt;   MOVE ITAB2-VORNR TO IT_DEL-VORNR.&lt;/P&gt;&lt;P&gt;   MOVE ITAB2-KZEAR TO IT_DEL-KZEAR.&lt;/P&gt;&lt;P&gt;   MOVE ITAB2-ENMNG TO IT_DEL-ENMNG.&lt;/P&gt;&lt;P&gt;   MOVE ITAB2-BDMNG TO IT_DEL-BDMNG.&lt;/P&gt;&lt;P&gt;APPEND IT_DEL.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;1st record of itab2 match with itab4 but itab4 does not have 2nd record. so it append to it_del. but its not happening as header line not cleared.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2009 06:36:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921089#M1331526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-11T06:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921090#M1331527</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;wht is ur doubt is not very clear.&lt;/P&gt;&lt;P&gt;If the problem is with header use work area for both the itabs.&lt;/P&gt;&lt;P&gt;If the issue is appending extra record in it_del thn loop at itab4 and read itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2009 06:48:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921090#M1331527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-11T06:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921091#M1331528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi seema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I tried work area also. but it is not working, i have to show this material in the deleted list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2009 06:56:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921091#M1331528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-11T06:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921092#M1331529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Khushi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its still not clear wht is the exact issue u r facing in the code. Can you please explain the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2009 07:10:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921092#M1331529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-11T07:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921093#M1331530</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT ITAB2 .
READ TABLE ITAB4 WITH KEY MATNR = ITAB2-MATNR binary search.
IF SY-SUBRC NE 0.                                     " check this
MOVE ITAB2-MATNR TO IT_DEL-MATNR.
MOVE ITAB2-MAKTX TO IT_DEL-MAKTX.
MOVE ITAB2-VORNR TO IT_DEL-VORNR.
MOVE ITAB2-KZEAR TO IT_DEL-KZEAR.
MOVE ITAB2-ENMNG TO IT_DEL-ENMNG.
MOVE ITAB2-BDMNG TO IT_DEL-BDMNG.
APPEND IT_DEL.
ENDIF.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2009 07:11:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921093#M1331530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-11T07:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921094#M1331531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi khushi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you explian me what is your code and what exact you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;raghava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2009 07:14:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921094#M1331531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-11T07:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921095#M1331532</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;&lt;/P&gt;&lt;P&gt; Clear  header table after append   .&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;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2009 07:15:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921095#M1331532</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2009-07-11T07:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921096#M1331533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Seema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In itab2 , there are 2 records and in itab4 there are only 1 record. now when i compare these 2 itabs as above after 1st execution ,2nd time itab4 should not contain the material number and value of sy-subrc should be 4, but its not happening. i have used itab with header line. so  2nd time itab4 contain same material number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2009 07:17:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921096#M1331533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-11T07:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921097#M1331534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi khushi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                   as i said  clear your read table i.e it_tab4  which contains  1 record  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_tab2 .&lt;/P&gt;&lt;P&gt;read table it_tab4 .....&lt;/P&gt;&lt;P&gt;your moving code here .&lt;/P&gt;&lt;P&gt;after append it_del .&lt;/P&gt;&lt;P&gt;clear it_tab4 .&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;clear it_tab2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will solve your problem .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your problem is that your header line does not get clear after reading .&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;Deepak .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2009 07:25:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921097#M1331534</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2009-07-11T07:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921098#M1331535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no its not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2009 07:31:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921098#M1331535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-11T07:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921099#M1331536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PLEASE READ THIS PROPERLY .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when you are reading itab 4   to match with itab2  which has two records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop will exectute two time  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read will execute one time  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;according to your code when record will not match i.e sy-subrc  NE 0 .&lt;/P&gt;&lt;P&gt;then you are moving your data to it_del  aND APPENDING BUT YOUR RECORD IS RETURNING SY-SUBCR = 0 .&lt;/P&gt;&lt;P&gt;SO IT WILL NOT MOVE RECORDS TO IT_DEL TABLE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF YOU WANT TO TRANSFER DATA IF MATNR MATCH  THEN USE SY-SUBRC = 0  AND THEN IT WILL MOVE DATA TO IT_DEL &lt;/P&gt;&lt;P&gt;THEN APPEND IT_DEL .&lt;/P&gt;&lt;P&gt;CLEAR ITAB4 .&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;CLEAR  ITAB2.&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;DEEPAK .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2009 07:39:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921099#M1331536</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2009-07-11T07:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921100#M1331537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to transfer data in matnr not matches ie sy-subrc ne 0. the problem is due the same material is coming twise. if i took differnet materials then i works fine. Is there another way to comapre ie FM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2009 07:46:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921100#M1331537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-11T07:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921101#M1331538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to transfer data in matnr not matches ie sy-subrc ne 0. the problem is due the same material is coming twise. if i take differnet materials then i works fine. Is there another way to comapre ie FM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2009 08:16:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921101#M1331538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-11T08:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921102#M1331539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi  khushi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                Now as code which is written will give you correct result according to what you said .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   NOw you tell me what result you are expecting  from records which you have show in itab2 and itab 4 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;according to you what result you are expecting  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  as there can be more  same matnr in itab2  so it will execute that many times .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  when there will be another matnr which does not matches itab4 table record .&lt;/P&gt;&lt;P&gt;then only itab2 data will be moved to i it_del table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if thios is not you are expecting  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then  pls give dummy data of both table and expected result .&lt;/P&gt;&lt;P&gt; in this reply .&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;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2009 08:39:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921102#M1331539</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2009-07-11T08:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921103#M1331540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have given data and code above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; u guess right, but not getting the result as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2009 08:58:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921103#M1331540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-11T08:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921104#M1331541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Khushi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already mentioned this na that try to loop at itab4 and read itab2 thn see the results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2009 09:02:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921104#M1331541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-11T09:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921105#M1331542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;khushi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 &lt;/P&gt;&lt;P&gt;                  what is your expected result if matnr does not match &lt;/P&gt;&lt;P&gt;                       you want to move data to it_del  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Redards&lt;/P&gt;&lt;P&gt;Deepak .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2009 09:05:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921105#M1331542</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2009-07-11T09:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921106#M1331543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, i want the same if material does not match , then append it_del.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2009 09:07:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921106#M1331543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-11T09:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921107#M1331544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then listen    , there is no data in your  internal tables that is not matching .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your both table have data they are same i.e matnr are matching  it returns sy-subrc = 0 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so it will not append data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that means now your code is working fine but you dont have different matnr to test  .&lt;/P&gt;&lt;P&gt;It will be better if you test using more data  using same code now .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will work fine .&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;Deepak .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2009 09:20:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921107#M1331544</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2009-07-11T09:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921108#M1331545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ya, both table have same data but in itab2 there are 2 records and itab4 contains only 1and qty is different . so i want the second record in itab2 in the deleted list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2009 09:25:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-internal-tables/m-p/5921108#M1331545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-11T09:25:00Z</dc:date>
    </item>
  </channel>
</rss>

