<?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 syntax error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/2012534#M410922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;select addrnumber name1 street str_suppl1 city1 region
         post_code1 country countrycode tel_number 
                from adrc 
                     inner join t005t
                          on adrc~country = t005t~land1      "&amp;lt;- Use ~
                                 into table itab3
                                         for all entries in itab1 
                                             where adrc~addrnumber = itab1-adrnr   "&amp;lt;- Use ~
                                                 and t005t~spras = sy-langu.     "&amp;lt;- Use ~
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming all of your field names are correct,  you need to use the ~  when defining the join and referencing the fields in the WHERE clause,  you only need to do this when working with joins. &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>Mon, 19 Mar 2007 22:06:04 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2007-03-19T22:06:04Z</dc:date>
    <item>
      <title>select syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/2012533#M410921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;select addrnumber name1 street str_suppl1 city1 region post_code1 country countrycode tel_number 
from adrc join t005t on adrc-country = t005t-land1 into table itab3 for all entries in itab1 where addrnumber = itab1-adrnr 
and t005t-spras = sy-langu.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error is Field "ADRC-COUNTRY" unknown.		&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the field exists so not sure how to resolve this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 21:58:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/2012533#M410921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T21:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: select syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/2012534#M410922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;select addrnumber name1 street str_suppl1 city1 region
         post_code1 country countrycode tel_number 
                from adrc 
                     inner join t005t
                          on adrc~country = t005t~land1      "&amp;lt;- Use ~
                                 into table itab3
                                         for all entries in itab1 
                                             where adrc~addrnumber = itab1-adrnr   "&amp;lt;- Use ~
                                                 and t005t~spras = sy-langu.     "&amp;lt;- Use ~
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming all of your field names are correct,  you need to use the ~  when defining the join and referencing the fields in the WHERE clause,  you only need to do this when working with joins. &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>Mon, 19 Mar 2007 22:06:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/2012534#M410922</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-03-19T22:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: select syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/2012535#M410923</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;Please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select addrnumber name1 street str_suppl1 city1 region post_code1 country countrycode tel_number 
from adrc inner join t005t on adrc~country = t005t~land1 
into table itab3 
for all entries in itab1 
where adrc~addrnumber = itab1-adrnr 
  and t005t~spras = sy-langu.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 22:06:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/2012535#M410923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T22:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: select syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/2012536#M410924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Megan,&lt;/P&gt;&lt;P&gt;  As per mentioned above solutions&lt;/P&gt;&lt;P&gt;   &amp;lt;b&amp;gt;instead of adrc-country = t005t-land1 &lt;/P&gt;&lt;P&gt;   mentioned adrc&lt;SUB&gt;country = t005t&lt;/SUB&gt;land.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt; Then it wioll work.&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 08:26:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-syntax-error/m-p/2012536#M410924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T08:26:38Z</dc:date>
    </item>
  </channel>
</rss>

