<?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 query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/5226261#M1208255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DIvya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't write select query to the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from itab is not avaliable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop you intenakl table and pass the ur required data to the another internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Feb 2009 15:57:48 GMT</pubDate>
    <dc:creator>tarangini_katta</dc:creator>
    <dc:date>2009-02-12T15:57:48Z</dc:date>
    <item>
      <title>Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/5226258#M1208252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  In my code have fetched the value in a table using a function module.Consider the values is present in table gi_table this is being declared as  gi_table   LIKE ekbe occurs 0 with header line,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my problem is have to fetch the values from the table gi_table using select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use a more informative subject line. Many of the posts in this forum are about SELECT Queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i write &lt;/P&gt;&lt;P&gt;select belnr from gi_table where some codn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.Error is thrown which specifies gi_table is not present.Please help to write a select query to fetch the values from the table gi_table.I cant change the declaration of gi_table bcoz if i change in the FM its not accepting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Feb 12, 2009 10:51 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 15:36:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/5226258#M1208252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T15:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/5226259#M1208253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot use an sql select on an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead use &lt;/P&gt;&lt;P&gt;    loop at your_itab&lt;/P&gt;&lt;P&gt;       where   'some where condition'&lt;/P&gt;&lt;P&gt;   endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F1 on the loop statement will be able to help as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Greg Kern&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 15:41:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/5226259#M1208253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T15:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/5226260#M1208254</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 not use Select statements to retrieve data from Internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only Loop statements and Read statements are used to retrive data for Internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you selected data from FM, then use Loop at ITAB....Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 15:57:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/5226260#M1208254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T15:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/5226261#M1208255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DIvya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't write select query to the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from itab is not avaliable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop you intenakl table and pass the ur required data to the another internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 15:57:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/5226261#M1208255</guid>
      <dc:creator>tarangini_katta</dc:creator>
      <dc:date>2009-02-12T15:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/5226262#M1208256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Divya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT query is written only to fetch records from a database table... Which is available in data dictionary (SE11). For internal tables, you cannot use SELECT query.. &lt;/P&gt;&lt;P&gt;Instead You have to Use LOOP AT itab. ENDLOOP. statements or READ TABLE itab WITH KEY ... Statement to access records of internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to include a condition..&lt;/P&gt;&lt;P&gt;You may say..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab WHERE fld1 = var1. &lt;/P&gt;&lt;P&gt;..... Do you processing..&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way you can also modify or alter any of the records in the internal table using &lt;/P&gt;&lt;P&gt;MODIFY statement.&lt;/P&gt;&lt;P&gt;Plz let me know if you need more info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Geetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 15:58:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/5226262#M1208256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T15:58:07Z</dc:date>
    </item>
  </channel>
</rss>

