<?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: capturing missing info. in dbtable vs internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-missing-info-in-dbtable-vs-internal-table/m-p/1091668#M100899</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Copy the table that was returned from the database select to another table (itab2[] = itab1[]).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Sorry - I meant say - copy the original table used in the where clause to another internal table. **&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at the original table and create a range table from it (using 'I' and 'EQ'). I think you do have to use a loop here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;and use the table returned from the select in the range.**&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete itab2 where not number in range table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;delete itab2 where number in range table **&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rob Burbank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Nov 2005 21:54:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-03T21:54:55Z</dc:date>
    <item>
      <title>capturing missing info. in dbtable vs internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-missing-info-in-dbtable-vs-internal-table/m-p/1091661#M100892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have an internal table with few thousand entries depending on which i'm selection data from database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my internal table contains 'number' field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im selecting data from database from db table as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT number field1 field2...FROM dbtable into....&lt;/P&gt;&lt;P&gt; for all entries in itab WHERE&lt;/P&gt;&lt;P&gt;      NUMBER = ITAB-NUMBER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this works fine. but i need to capture the 'numbers' that doen't exits in database. i dont want to open an SELECT...ENDSELECT or anyo ther loop. is there any other way to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;kranthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2005 21:12:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-missing-info-in-dbtable-vs-internal-table/m-p/1091661#M100892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-03T21:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: capturing missing info. in dbtable vs internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-missing-info-in-dbtable-vs-internal-table/m-p/1091662#M100893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could probably use a subquery here.  You would add this subquery to the first select statement, the one that fill ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/dc/dc7614099b11d295320000e8353423/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/dc/dc7614099b11d295320000e8353423/frameset.htm&lt;/A&gt;&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2005 21:16:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-missing-info-in-dbtable-vs-internal-table/m-p/1091662#M100893</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-11-03T21:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: capturing missing info. in dbtable vs internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-missing-info-in-dbtable-vs-internal-table/m-p/1091663#M100894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kranthi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably you can populate those numbers into a range as a exluding(Not include) option and do the select using IN option&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2005 21:19:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-missing-info-in-dbtable-vs-internal-table/m-p/1091663#M100894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-03T21:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: capturing missing info. in dbtable vs internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-missing-info-in-dbtable-vs-internal-table/m-p/1091664#M100895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean that you want to know the numbers that are in your file that are not in the database?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2005 21:26:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-missing-info-in-dbtable-vs-internal-table/m-p/1091664#M100895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-03T21:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: capturing missing info. in dbtable vs internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-missing-info-in-dbtable-vs-internal-table/m-p/1091665#M100896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;yes,with out querying on the db(another time apart from fetching data ) and with out a loop or select..endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;kranthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2005 21:41:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-missing-info-in-dbtable-vs-internal-table/m-p/1091665#M100896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-03T21:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: capturing missing info. in dbtable vs internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-missing-info-in-dbtable-vs-internal-table/m-p/1091666#M100897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Delete the internal table where the numbers field is in the dataset returned by your select statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2005 21:44:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-missing-info-in-dbtable-vs-internal-table/m-p/1091666#M100897</guid>
      <dc:creator>former_member10945</dc:creator>
      <dc:date>2005-11-03T21:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: capturing missing info. in dbtable vs internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-missing-info-in-dbtable-vs-internal-table/m-p/1091667#M100898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, you can try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt; r_number-sign = 'E'.&lt;/P&gt;&lt;P&gt; r_number-option = 'EQ'.&lt;/P&gt;&lt;P&gt; r_number-low = itab-number.&lt;/P&gt;&lt;P&gt; append r_number.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT number field1 field2...FROM dbtable into....&lt;/P&gt;&lt;P&gt; WHERE&lt;/P&gt;&lt;P&gt;NUMBER in R_NUMBER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since we use exluding option it will fetch only those are not in the r_number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2005 21:48:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-missing-info-in-dbtable-vs-internal-table/m-p/1091667#M100898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-03T21:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: capturing missing info. in dbtable vs internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-missing-info-in-dbtable-vs-internal-table/m-p/1091668#M100899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Copy the table that was returned from the database select to another table (itab2[] = itab1[]).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Sorry - I meant say - copy the original table used in the where clause to another internal table. **&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at the original table and create a range table from it (using 'I' and 'EQ'). I think you do have to use a loop here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;and use the table returned from the select in the range.**&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete itab2 where not number in range table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;delete itab2 where number in range table **&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rob Burbank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2005 21:54:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-missing-info-in-dbtable-vs-internal-table/m-p/1091668#M100899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-03T21:54:55Z</dc:date>
    </item>
  </channel>
</rss>

