<?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: How to check two internal table fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043706#M87269</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nandha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this,,&lt;/P&gt;&lt;P&gt;sort: it1 , it2 ,&lt;/P&gt;&lt;P&gt;loop at it1.&lt;/P&gt;&lt;P&gt;read table it2 with key pernr = it1-pernr&lt;/P&gt;&lt;P&gt;                        FAC_C = it1-FAC_C&lt;/P&gt;&lt;P&gt;binary search.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;write: / it1-pernr, it1-fac_c.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Dec 2005 11:57:28 GMT</pubDate>
    <dc:creator>suresh_datti</dc:creator>
    <dc:date>2005-12-21T11:57:28Z</dc:date>
    <item>
      <title>How to check two internal table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043691#M87254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt; I need to check two internal table fields are equal or not means which statement i can use.&lt;/P&gt;&lt;P&gt; Not internal table ,table contents i need to check i.e&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it1-pernr = it2-pernr.&lt;/P&gt;&lt;P&gt;like this&lt;/P&gt;&lt;P&gt;if i put loop it'll check one table field for one loop.&lt;/P&gt;&lt;P&gt;if i put two loop means some fields reflecting 2 in it1 then it'll pring 4 times like that.i want to print whatever in internal table only .&lt;/P&gt;&lt;P&gt; pernr(0001) two times there in it1 means&lt;/P&gt;&lt;P&gt;it1-pernr = it2-pernr then&lt;/P&gt;&lt;P&gt;it's printing&lt;/P&gt;&lt;P&gt;0001&lt;/P&gt;&lt;P&gt;0001&lt;/P&gt;&lt;P&gt;0001&lt;/P&gt;&lt;P&gt;0001&lt;/P&gt;&lt;P&gt;like this but actually in it1 only two records.&lt;/P&gt;&lt;P&gt;Anybody know solution.tell me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nandha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 10:57:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043691#M87254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T10:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to check two internal table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043692#M87255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the following,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;read table itab2 index sy-tabix.&lt;/P&gt;&lt;P&gt;if itab1-field1 = itab2-field1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Do something&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&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;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 11:01:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043692#M87255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T11:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to check two internal table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043693#M87256</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;Loop at itab.&lt;/P&gt;&lt;P&gt;read table itab1 with key pernr = itab-pernr.&lt;/P&gt;&lt;P&gt;...........&lt;/P&gt;&lt;P&gt;...........&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;Here it will read the records from itab1 where pernr equal to looping itab-pernr.&lt;/P&gt;&lt;P&gt;****************&lt;/P&gt;&lt;P&gt;Here in that loop you need to MOVE to another internal table.&lt;/P&gt;&lt;P&gt;With move command move to another internal table and the display from that internal table.&lt;/P&gt;&lt;P&gt;***********&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;If this helps you reward with points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Deepak333 k&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 11:01:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043693#M87256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T11:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to check two internal table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043694#M87257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nadha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort: it1 by pernr, it2 by pernr.&lt;/P&gt;&lt;P&gt;loop at it1.&lt;/P&gt;&lt;P&gt;read table it2 with key pernr = it1-pernr&lt;/P&gt;&lt;P&gt;                        binary search.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt; write: / it1-pernr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&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;&lt;/P&gt;&lt;P&gt;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 11:02:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043694#M87257</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2005-12-21T11:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to check two internal table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043695#M87258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;loop at it1.

read table it2 with key pernr = it1-pernr.

if sy-subrc &amp;lt;&amp;gt; 0.
record not equal...
endif.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 11:03:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043695#M87258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T11:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to check two internal table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043696#M87259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi nandha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. what i understood is that&lt;/P&gt;&lt;P&gt;   u want to print only those pernr&lt;/P&gt;&lt;P&gt;   which are EQUAL/EXIST in both tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If that is so,&lt;/P&gt;&lt;P&gt;   that just use one loop.&lt;/P&gt;&lt;P&gt;   LOOP AT ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   READ TABLE ITAB2 WITH KEY PERNR = ITAB1.PERNR.&lt;/P&gt;&lt;P&gt;   IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;   WRITE ITAB1-PERNR.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. NO NEED TO USE 2ND LOOP ON ITAB2.&lt;/P&gt;&lt;P&gt;   (BCOS LOOP1 TAKES CARE OF ALL THE COMMON PERNR)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. If ur requirement is different,  &lt;/P&gt;&lt;P&gt;   then pls let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 11:07:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043696#M87259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T11:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to check two internal table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043697#M87260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to check all fields not only one field in one table.&lt;/P&gt;&lt;P&gt;it1 having -- 0001&lt;/P&gt;&lt;P&gt;              0001 &lt;/P&gt;&lt;P&gt;              0002&lt;/P&gt;&lt;P&gt;              0003&lt;/P&gt;&lt;P&gt;it2 having--0001&lt;/P&gt;&lt;P&gt;            0001&lt;/P&gt;&lt;P&gt;            0002&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to print it1 where it1-ernr equals it2 pernr&lt;/P&gt;&lt;P&gt; like&lt;/P&gt;&lt;P&gt;0001&lt;/P&gt;&lt;P&gt;0001&lt;/P&gt;&lt;P&gt;0002&lt;/P&gt;&lt;P&gt;here 0003 not equal so don't want to print&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Nandha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 11:16:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043697#M87260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T11:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to check two internal table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043698#M87261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nadha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give the complete structure of it1 &amp;amp; it2 or paste ur code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 11:22:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043698#M87261</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2005-12-21T11:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to check two internal table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043699#M87262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; All codes are triggering same result.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nandha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 11:35:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043699#M87262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T11:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to check two internal table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043700#M87263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please,Any body can help me.Any way to get result according to my requirement.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nandha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 11:37:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043700#M87263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T11:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to check two internal table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043701#M87264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nandha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PL refer to my earlier post &amp;amp; pate the code or give the structure for the 2 itabs..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 11:40:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043701#M87264</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2005-12-21T11:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to check two internal table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043702#M87265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you just give the structure fields and sample output..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 11:41:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043702#M87265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T11:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to check two internal table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043703#M87266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nandha Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Instead of printing in the list as soon as you find the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   You can follow this...&lt;/P&gt;&lt;P&gt;1. Declare a itab with the result field as it's structure.&lt;/P&gt;&lt;P&gt;2. Check whether itab1-field = itab2-field.&lt;/P&gt;&lt;P&gt;3. If they are equal then&lt;/P&gt;&lt;P&gt;    check whether the field is present in the itab.&lt;/P&gt;&lt;P&gt;4. If present don't append it.&lt;/P&gt;&lt;P&gt;5. else append it.&lt;/P&gt;&lt;P&gt;6. At last display the itab contents for the result.&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maheswaran.B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Maheswaran B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 11:53:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043703#M87266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T11:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to check two internal table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043704#M87267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. can u provide the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. It seems u are missing something very small.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   for eg.&lt;/P&gt;&lt;P&gt;  READ TABLE ITAB2 WITH KEY  PERNR = ITAB1-PERNR.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.  "&amp;lt;--- VERY  IMPORTANT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 11:54:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043704#M87267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T11:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to check two internal table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043705#M87268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; code for your view&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of it1 occurs 0,&lt;/P&gt;&lt;P&gt;       z_pernr like pa9012-pernr,&lt;/P&gt;&lt;P&gt;       z_fac_c like pa9012-zz_fac_c,&lt;/P&gt;&lt;P&gt;       end of it1.&lt;/P&gt;&lt;P&gt;data : it2 like Zsc1 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;It1 data &lt;/P&gt;&lt;P&gt;pernr   FAC C&lt;/P&gt;&lt;P&gt; 0001   5555&lt;/P&gt;&lt;P&gt; 0001   5555&lt;/P&gt;&lt;P&gt; 0002   4444&lt;/P&gt;&lt;P&gt; 0003   3333&lt;/P&gt;&lt;P&gt; 0006   8888&lt;/P&gt;&lt;P&gt;It2 data &lt;/P&gt;&lt;P&gt;pernr   FAC C&lt;/P&gt;&lt;P&gt; 0001   5555&lt;/P&gt;&lt;P&gt; 0001   5555&lt;/P&gt;&lt;P&gt; 0005   6666&lt;/P&gt;&lt;P&gt; 0003   3333&lt;/P&gt;&lt;P&gt;output(My code)&lt;/P&gt;&lt;P&gt;loop at it2 .&lt;/P&gt;&lt;P&gt;loop at it1 where pernr = it2-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  write:/01 it1-1pernr,&lt;/P&gt;&lt;P&gt;        10 it1-z_fac_c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;out put i need.&lt;/P&gt;&lt;P&gt;0001   5555&lt;/P&gt;&lt;P&gt; 0001   5555&lt;/P&gt;&lt;P&gt; 0002   4444&lt;/P&gt;&lt;P&gt; 0003   3333&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nandha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 11:54:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043705#M87268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T11:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to check two internal table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043706#M87269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nandha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this,,&lt;/P&gt;&lt;P&gt;sort: it1 , it2 ,&lt;/P&gt;&lt;P&gt;loop at it1.&lt;/P&gt;&lt;P&gt;read table it2 with key pernr = it1-pernr&lt;/P&gt;&lt;P&gt;                        FAC_C = it1-FAC_C&lt;/P&gt;&lt;P&gt;binary search.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;write: / it1-pernr, it1-fac_c.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 11:57:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043706#M87269</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2005-12-21T11:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to check two internal table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043707#M87270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi suresh,&lt;/P&gt;&lt;P&gt; Thankyou for the reply.I got result finally.so,i have given full point to you.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nandha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 12:23:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043707#M87270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T12:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to check two internal table fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043708#M87271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;use the read statement in the loop.&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;  read table itab2 with key xyz = itab1-xyz.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.  " Both are matching&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 12:49:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-check-two-internal-table-fields/m-p/1043708#M87271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T12:49:25Z</dc:date>
    </item>
  </channel>
</rss>

