<?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: abap code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code/m-p/1991960#M404562</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Rich. It worked. Full points to you.&lt;/P&gt;&lt;P&gt;SK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Mar 2007 21:15:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-08T21:15:15Z</dc:date>
    <item>
      <title>abap code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code/m-p/1991958#M404560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some help in the abap code. I have some records in a database table A and I need to validate the records in the table with the records in an internal table based on the employeeid. if there are records in the internal table then continueotherwise insert the record from the table into the itab and append it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I first read all the records fromt he database table into the internal table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select * from A  into corresponding fields of  itab_A where vpid = empnum and endda = v_enddate    and begda = v_startdate.&lt;/P&gt;&lt;P&gt;   if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  append itab_A.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I want to validate the records in itab_A with another itab_B. itab_B has some records that are common with itab_A in that case justcontinue otherwise insert the record in itab_B&lt;/P&gt;&lt;P&gt;also itab_A and itab_B have different table structure with few common fields.&lt;/P&gt;&lt;P&gt;my question is how to validte between two internal tables?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2007 20:57:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code/m-p/1991958#M404560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-08T20:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: abap code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code/m-p/1991959#M404561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;select * from A into corresponding fields of  TABLE itab_A 
         where vpid = empnum 
            and endda = v_enddate 
            and begda = v_startdate.

Loop at itab_a.

read table itab_b with key vpid = itab_a-vpid.
if sy-subrc  &amp;lt;&amp;gt; 0.
move-corresponding itab_a to itab_b.
append itab_B.
endif.

endloop.



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2007 21:06:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code/m-p/1991959#M404561</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-03-08T21:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: abap code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code/m-p/1991960#M404562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Rich. It worked. Full points to you.&lt;/P&gt;&lt;P&gt;SK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2007 21:15:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-code/m-p/1991960#M404562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-08T21:15:15Z</dc:date>
    </item>
  </channel>
</rss>

