<?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: comparing field data in two itabs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-field-data-in-two-itabs/m-p/4767797#M1117636</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for example you can use:&lt;/P&gt;&lt;P&gt;LOOP AT ITAB1 INTO ... WHERE field IN itab2.&lt;/P&gt;&lt;P&gt;==&amp;gt; this value of field is in itab2&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Nov 2008 10:03:44 GMT</pubDate>
    <dc:creator>JozsefSzikszai</dc:creator>
    <dc:date>2008-11-10T10:03:44Z</dc:date>
    <item>
      <title>comparing field data in two itabs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-field-data-in-two-itabs/m-p/4767794#M1117633</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;Iu2019m calling on FM and it returns tab ITAB1 (with fields user,data, tcode &amp;amp; etc.). I have another structure Itab2 (with fields sing, option, low &amp;amp; high). Now I want to check each row in Itab2 is in the Itab2 range or not. And finally I want to save in another Itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggest me in ABAP statements,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 09:54:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-field-data-in-two-itabs/m-p/4767794#M1117633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-10T09:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: comparing field data in two itabs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-field-data-in-two-itabs/m-p/4767795#M1117634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Loop at itab1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Read table itab2 with key ( Comparing fields ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If sy-subrc eq o.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Move what ever your require in the 3rd itab.&lt;/P&gt;&lt;P&gt; Append itab3.&lt;/P&gt;&lt;P&gt; clear itab3.&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;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 10:02:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-field-data-in-two-itabs/m-p/4767795#M1117634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-10T10:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: comparing field data in two itabs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-field-data-in-two-itabs/m-p/4767796#M1117635</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;declare a range r_range and pass the values of itab2 to r_range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1 into wa_itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if wa_itab1-data in r_range .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;els.&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;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ramya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 10:03:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-field-data-in-two-itabs/m-p/4767796#M1117635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-10T10:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: comparing field data in two itabs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-field-data-in-two-itabs/m-p/4767797#M1117636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for example you can use:&lt;/P&gt;&lt;P&gt;LOOP AT ITAB1 INTO ... WHERE field IN itab2.&lt;/P&gt;&lt;P&gt;==&amp;gt; this value of field is in itab2&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 10:03:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-field-data-in-two-itabs/m-p/4767797#M1117636</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-11-10T10:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: comparing field data in two itabs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-field-data-in-two-itabs/m-p/4767798#M1117637</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;data: itab3 like table of itab1 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab1.

    read table  itab2 with table key  &amp;lt;condition&amp;gt;.
       if sy-subrc = 0.
         move itab1 to itab3.       
       endif .
enloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this logic will help ful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Srinivasu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: srinivasu bv on Nov 10, 2008 11:06 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 10:06:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-field-data-in-two-itabs/m-p/4767798#M1117637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-10T10:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: comparing field data in two itabs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-field-data-in-two-itabs/m-p/4767799#M1117638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       Sorry for asking this question.&lt;/P&gt;&lt;P&gt;     In ur replay, in  Read stat I need to write some contion. But the confustion is Itab1 contains a field Tcode but Itab2 contain fields Low &amp;amp; High (as Tcode fields).&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;      So, How can i write a condition at this case. Plz help me on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 10:39:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-field-data-in-two-itabs/m-p/4767799#M1117638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-10T10:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: comparing field data in two itabs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-field-data-in-two-itabs/m-p/4767800#M1117639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandya &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the Declerations of itab1 and itab2 internal tabels &lt;/P&gt;&lt;P&gt;then it is easy to understand your requiremnt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 10:43:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-field-data-in-two-itabs/m-p/4767800#M1117639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-10T10:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: comparing field data in two itabs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-field-data-in-two-itabs/m-p/4767801#M1117640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;REPORT  ZSRK_035                                .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF ITAB1 OCCURS 0,&lt;/P&gt;&lt;P&gt;       USER LIKE USR01-BNAME,&lt;/P&gt;&lt;P&gt;       DATA(30),&lt;/P&gt;&lt;P&gt;       TCODE LIKE TSTC-TCODE,&lt;/P&gt;&lt;P&gt;       END OF ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN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ITAB1-USER = SY-UNAME.&lt;/P&gt;&lt;P&gt;ITAB1-DATA = 'DDDDDDDDDDDDD'.&lt;/P&gt;&lt;P&gt;ITAB1-TCODE = 'VA02'.&lt;/P&gt;&lt;P&gt;APPEND ITAB1.&lt;/P&gt;&lt;P&gt;CLEAR ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB1-USER = SY-UNAME.&lt;/P&gt;&lt;P&gt;ITAB1-DATA = 'EEEEEEEEEEEE'.&lt;/P&gt;&lt;P&gt;ITAB1-TCODE = 'MM03'.&lt;/P&gt;&lt;P&gt;APPEND ITAB1.&lt;/P&gt;&lt;P&gt;CLEAR ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOOP AT ITAB1 WHERE TCODE IN ITAB2.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;WRITE : / ITAB1-DATA.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDLOOP.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 10:52:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-field-data-in-two-itabs/m-p/4767801#M1117640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-10T10:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: comparing field data in two itabs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-field-data-in-two-itabs/m-p/4767802#M1117641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Can you explain a little bit clearly. I hope this process will solve my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thkx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2008 12:11:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-field-data-in-two-itabs/m-p/4767802#M1117641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-10T12:11:49Z</dc:date>
    </item>
  </channel>
</rss>

