<?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 Statement + constant in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-constant/m-p/2003766#M408155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;No,You can't use constants, use only the Fields that are present in the Table in the Select statement in ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Mar 2007 10:02:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-07T10:02:45Z</dc:date>
    <item>
      <title>Select Statement + constant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-constant/m-p/2003765#M408154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a simply question. I have experience with microsoft SQL.&lt;/P&gt;&lt;P&gt;Can i use in ABAP SQL something else&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT column1 column2 'ABC'&lt;/P&gt;&lt;P&gt;   FROM ...&lt;/P&gt;&lt;P&gt;   INTO ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'ABC' - some constant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for advice in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2007 10:00:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-constant/m-p/2003765#M408154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-07T10:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement + constant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-constant/m-p/2003766#M408155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;No,You can't use constants, use only the Fields that are present in the Table in the Select statement in ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2007 10:02:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-constant/m-p/2003766#M408155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-07T10:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement + constant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-constant/m-p/2003767#M408156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only u can select the fields from the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ur case u can do like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT column1 column2 column3
FROM ...
INTO ....
where column3 = 'ABC'   "  CHECK HERE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2007 10:05:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-constant/m-p/2003767#M408156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-07T10:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement + constant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-constant/m-p/2003768#M408157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Martin &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;   In select statement the fields should be in the table from which we are retrieving the data , and u need to give the names of fields only in that syntax , u can not use other than the fields of that table ,it will give a syntax error in this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2007 10:05:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-constant/m-p/2003768#M408157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-07T10:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement + constant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-constant/m-p/2003769#M408158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As u are aware that, Select statement is basically used to get  data from Database tables u cant select constants from it as u need to specify the fields names which u want to select from the DBtable.&lt;/P&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;Select *  from dbtable into corresponding fields of table  itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2007 10:06:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-constant/m-p/2003769#M408158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-07T10:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement + constant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-constant/m-p/2003770#M408159</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;this wont work because u have to specify only the fields present in the table that is in the from clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2007 10:06:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-constant/m-p/2003770#M408159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-07T10:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement + constant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-constant/m-p/2003771#M408160</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;  Can you explain ur requirement?&lt;/P&gt;&lt;P&gt;   Why wull you have constants as fields in tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are you looking for this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;tables mara.

select single matnr  from mara into mara-matnr where matnr eq 'ABC'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2007 10:07:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-constant/m-p/2003771#M408160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-07T10:07:22Z</dc:date>
    </item>
  </channel>
</rss>

