<?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: Syntax error regarding table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-regarding-table/m-p/3817867#M918247</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The above selection logic is also an inner join...break them into three SELECT statements using FOR ALL ENTRIES statement. Also there is some error as you have not provided the join condition using ON statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 May 2008 14:02:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-15T14:02:32Z</dc:date>
    <item>
      <title>Syntax error regarding table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-regarding-table/m-p/3817863#M918243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on a select statement, initially I have wriiten a select statement using the inner joins but then we had some performance issues and I have advised not to use joins...and after that I have written the following statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mara~matnr &lt;/P&gt;&lt;P&gt;mara~means&lt;/P&gt;&lt;P&gt;mara~mtart &lt;/P&gt;&lt;P&gt;marc~werks&lt;/P&gt;&lt;P&gt;mard~lgort&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from &lt;/P&gt;&lt;P&gt;mara as mara,&lt;/P&gt;&lt;P&gt;mard as mard,&lt;/P&gt;&lt;P&gt;marc as marc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &lt;/P&gt;&lt;P&gt;(mara&lt;SUB&gt;matnr = mard&lt;/SUB&gt;matnr) and (marc&lt;SUB&gt;matnr = mard&lt;/SUB&gt;matnr) and (marc&lt;SUB&gt;werks = mard&lt;/SUB&gt;werks).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when I am executing this stattement it's iving me an error : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wrong table name or table alias name table alias name "VBSEGS". table		&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please tell me how make it right&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 13:43:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-regarding-table/m-p/3817863#M918243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T13:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error regarding table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-regarding-table/m-p/3817864#M918244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the syntax you are using is still assuming you want a join because you are trying to get from multiple tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to do this without joins, you will need to do your first select into an Internal Table, then do the second select&lt;/P&gt;&lt;P&gt;using values from the 1st table, and repeat for 3rd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See syntax for SELECT ... FOR ALL ENTRIES IN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 13:50:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-regarding-table/m-p/3817864#M918244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T13:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error regarding table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-regarding-table/m-p/3817865#M918245</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;Instead of giving the join conditions in the WHERE addition give it in the ON addition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;select mara&lt;SUB&gt;matnr makt&lt;/SUB&gt;maktx &lt;/P&gt;&lt;P&gt;   from mara inner join makt&lt;/P&gt;&lt;P&gt;      on mara&lt;SUB&gt;matnr = makt&lt;/SUB&gt;matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 13:55:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-regarding-table/m-p/3817865#M918245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T13:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error regarding table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-regarding-table/m-p/3817866#M918246</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;Instead of using select statment in your way, use for all entries to get the data from differnet tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: MARA, MARC and MARD are Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select Matnr Maktx from mara into table itab1 where matnr = '1234'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select x y from mard into table itab2 for all entries in itab1 where matnr = itab1-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;same thing follows for the 3rd tale also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 14:00:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-regarding-table/m-p/3817866#M918246</guid>
      <dc:creator>Adi_Bathineni</dc:creator>
      <dc:date>2008-05-15T14:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error regarding table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-regarding-table/m-p/3817867#M918247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The above selection logic is also an inner join...break them into three SELECT statements using FOR ALL ENTRIES statement. Also there is some error as you have not provided the join condition using ON statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 14:02:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-regarding-table/m-p/3817867#M918247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T14:02:32Z</dc:date>
    </item>
  </channel>
</rss>

