<?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: working with a internal table and database in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-a-internal-table-and-database/m-p/1776901#M335107</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;You can use SELECT .. FOR ALL ENTRIES&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Nov 2006 05:51:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-30T05:51:46Z</dc:date>
    <item>
      <title>working with a internal table and database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-a-internal-table-and-database/m-p/1776898#M335104</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;I have a question with database tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I want to read data from a database table using a record in an internal table, what is the best way of doing that? (for each record in the internal table, I have to read some records from the database table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srikanth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2006 05:50:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-a-internal-table-and-database/m-p/1776898#M335104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-30T05:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: working with a internal table and database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-a-internal-table-and-database/m-p/1776899#M335105</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;&amp;lt;b&amp;gt;use for all entries syntax&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

REPORT abc.

DATA : BEGIN OF itab OCCURS 0,
bukrs LIKE t001-bukrs,
END OF itab.

DATA : t001 LIKE TABLE OF t001 WITH HEADER LINE.

*--------------------

itab-bukrs = '1000'.
APPEND itab.
itab-bukrs = '1100'.
APPEND itab.


*--------------------

SELECT * FROM t001
INTO TABLE t001
FOR ALL ENTRIES IN itab
WHERE bukrs = itab-bukrs.


*--------------------------
LOOP AT t001.
WRITE :/ t001-bukrs.
ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2006 05:51:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-a-internal-table-and-database/m-p/1776899#M335105</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-11-30T05:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: working with a internal table and database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-a-internal-table-and-database/m-p/1776900#M335106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use FOR ALL ENTRIES in select statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2006 05:51:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-a-internal-table-and-database/m-p/1776900#M335106</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-30T05:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: working with a internal table and database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-a-internal-table-and-database/m-p/1776901#M335107</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;You can use SELECT .. FOR ALL ENTRIES&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2006 05:51:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-a-internal-table-and-database/m-p/1776901#M335107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-30T05:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: working with a internal table and database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-a-internal-table-and-database/m-p/1776902#M335108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the FOR ALL ENTRIES, so that for all the data in the internal table, you get the data form the database.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3a1f358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3a1f358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else you will have to loop at the internal table and fire the select inside the loop which will have performance issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note - Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2006 05:52:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/working-with-a-internal-table-and-database/m-p/1776902#M335108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-30T05:52:11Z</dc:date>
    </item>
  </channel>
</rss>

