<?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: Select * from itab. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-itab/m-p/5676534#M1290488</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot perform Select operation on Internal tables. You need to do loop / read operations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 May 2009 08:24:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-28T08:24:36Z</dc:date>
    <item>
      <title>Select * from itab.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-itab/m-p/5676533#M1290487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;              Can i select the data from itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g; Select * from itab into another_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Muhammad Sohail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 08:23:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-itab/m-p/5676533#M1290487</guid>
      <dc:creator>muhammad_sohail</dc:creator>
      <dc:date>2009-05-28T08:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Select * from itab.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-itab/m-p/5676534#M1290488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot perform Select operation on Internal tables. You need to do loop / read operations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 08:24:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-itab/m-p/5676534#M1290488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T08:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Select * from itab.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-itab/m-p/5676535#M1290489</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;No, it is not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;aonother_itab[] = itab[].&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will be the right statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pankaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 08:25:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-itab/m-p/5676535#M1290489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T08:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Select * from itab.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-itab/m-p/5676536#M1290490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, you cannot use SELECT * from internal table. SELECT is used only for Database Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can read a single records from Internal Table usong READ TABLE&lt;/P&gt;&lt;P&gt;Else you can loop through the records , using LOOP..ENDLOOP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 08:25:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-itab/m-p/5676536#M1290490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T08:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Select * from itab.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-itab/m-p/5676537#M1290491</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;&lt;/P&gt;&lt;P&gt;its not possible ,compulsary you have to mention database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;Madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 08:42:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-itab/m-p/5676537#M1290491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T08:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Select * from itab.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-itab/m-p/5676538#M1290492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Muhammad Sohail,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you cannot apply select statement on internal table. Still you can do any operation like Loop, read table on internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you to resolve your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 08:44:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-itab/m-p/5676538#M1290492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T08:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Select * from itab.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-itab/m-p/5676539#M1290493</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;SELECT clause is purely database oriented. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to read data from one internal table into another, try using the MOVE statement or as the others rightly put it, use a READ statement on the internal table or LOOP...ENDLOOP on it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 08:53:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-itab/m-p/5676539#M1290493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T08:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Select * from itab.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-itab/m-p/5676540#M1290494</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;Select is only for database fetch. If you already have data in the internal table and if you wish to move the data to another internal table, Inside,   loop at itab1, you can use the MOVE statment, MOVE CORRESPONDING  statement etc. and append it to the second internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else you can read the internal table 1 and can move the values to the internal table 2.&lt;/P&gt;&lt;P&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;Ramesh Sundaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 09:01:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-itab/m-p/5676540#M1290494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T09:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Select * from itab.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-itab/m-p/5676541#M1290495</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;If we can achieve something in a simple fashion then why should we go for a complicated one..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To copy the contents of an one internal table to the other, just copy the bodies like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

itab_2[] = itab_1[]

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S : Use of select statements have performance issues as it increases the number of database hits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the above statements it should be quite clear that select is used for database tables only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;No we can't copy the contents of one internal table to other using select statement.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhinab Mishra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 09:03:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-itab/m-p/5676541#M1290495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T09:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select * from itab.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-itab/m-p/5676542#M1290496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi select statement is only for database query&lt;/P&gt;&lt;P&gt;you can use read table( for single line read) or loop at (for multi line read )&lt;/P&gt;&lt;P&gt;can u be more specific about your operation on itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 09:03:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-itab/m-p/5676542#M1290496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T09:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Select * from itab.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-itab/m-p/5676543#M1290497</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 select data from itab using Read / loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Synatx :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab with key &lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;loop at itab where&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 09:21:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-itab/m-p/5676543#M1290497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T09:21:02Z</dc:date>
    </item>
  </channel>
</rss>

