<?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 compare internal tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-internal-tables/m-p/5594288#M1275129</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;&lt;/P&gt;&lt;P&gt;i have entries  from reguh table in 1 it_table. and corresponding entries from bkpf table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to check if the entries in reguh table exist in bkpf table on the basis of document number, document type 'ZP' and posting date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me with the syntax. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaustubh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 May 2009 11:16:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-15T11:16:43Z</dc:date>
    <item>
      <title>compare internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-internal-tables/m-p/5594288#M1275129</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;&lt;/P&gt;&lt;P&gt;i have entries  from reguh table in 1 it_table. and corresponding entries from bkpf table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to check if the entries in reguh table exist in bkpf table on the basis of document number, document type 'ZP' and posting date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me with the syntax. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaustubh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 11:16:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-internal-tables/m-p/5594288#M1275129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T11:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: compare internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-internal-tables/m-p/5594289#M1275130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The entries in reguh and bkpf tables are in 2 different internal tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 11:17:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-internal-tables/m-p/5594289#M1275130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T11:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: compare internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-internal-tables/m-p/5594290#M1275131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOOP at itab1 and READ (or LOOP in case relationship is 1 : N) the other internal table with the keys mentioned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 11:21:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-internal-tables/m-p/5594290#M1275131</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-05-15T11:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: compare internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-internal-tables/m-p/5594291#M1275132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These are the common fields in both the tables:&lt;/P&gt;&lt;P&gt;  1 ) BKPF-BUKRS REGUH-ZBUKR&lt;/P&gt;&lt;P&gt;  2 ) BKPF-WAERS REGUH-WAERS&lt;/P&gt;&lt;P&gt;  3 ) BKPF-BELNR EQ REGUH-VBLNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Compare on the basis of above fields &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck =;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 11:25:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-internal-tables/m-p/5594291#M1275132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T11:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: compare internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-internal-tables/m-p/5594292#M1275133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check out this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort: itab2 by document number doctype postindate.&lt;/P&gt;&lt;P&gt;loop at itab1 into wa_itab1.&lt;/P&gt;&lt;P&gt;   read table itab2 into wa_itab2 with key document number = wa_itab1-docnumber doctype = 'ZP' positng date  = wa_itab1-posting date.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the value come in this portion ,is your required outputvalue.&lt;/P&gt;&lt;P&gt;collect this value to internal table.&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>Fri, 15 May 2009 11:26:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-internal-tables/m-p/5594292#M1275133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T11:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: compare internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-internal-tables/m-p/5594293#M1275134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;    let your internal tables be it_reugh and it_bkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if not it_reugh is initial.&lt;/P&gt;&lt;P&gt;     loop at it_reugh.&lt;/P&gt;&lt;P&gt;            read table it_bkpf with key docnum EQ it_reugh-docnum&lt;/P&gt;&lt;P&gt;                                                   doctyp  EQ  'ZP'&lt;/P&gt;&lt;P&gt;                                                    posting_date EQ sy-date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           if sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;             &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Then the record exists&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          else.&lt;/P&gt;&lt;P&gt;              *it does not exist&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;     endloop.&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;try this..it will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 11:29:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-internal-tables/m-p/5594293#M1275134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T11:29:11Z</dc:date>
    </item>
  </channel>
</rss>

