<?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! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2584023#M591093</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure you use the labels for the fields in the field list.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select a~ekorg a~ekgrp     "&amp;lt;--  RIGHT HERE
from eine as a
inner join eine as b on a~infnr = b~infnr
where
matnr = it_rkwa-matnr_rkwa
and lifnr = it_rkwa-lifnr_rkwa.
&lt;/CODE&gt;&lt;/PRE&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, 06 Aug 2007 13:07:59 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2007-08-06T13:07:59Z</dc:date>
    <item>
      <title>Syntax Error!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2584020#M591090</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;i had written the code as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_rkwa.&lt;/P&gt;&lt;P&gt;      select ekorg ekgrp&lt;/P&gt;&lt;P&gt;        from eine as a&lt;/P&gt;&lt;P&gt;             inner join eine as b on a&lt;SUB&gt;infnr = b&lt;/SUB&gt;infnr&lt;/P&gt;&lt;P&gt;        where&lt;/P&gt;&lt;P&gt;            matnr = it_rkwa-matnr_rkwa&lt;/P&gt;&lt;P&gt;        and lifnr = it_rkwa-lifnr_rkwa.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;append it_rkwa.&lt;/P&gt;&lt;P&gt;clear it_rkwa.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i check it for syntax for consistency it throws me the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"the column name 'EKORG ' has two meanings: ABAP/4 open SQL statement "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any body here tell me what could be the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 13:04:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2584020#M591090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-06T13:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2584021#M591091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are doing an INNER JOIN on the same table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from eine as a&lt;/P&gt;&lt;P&gt;inner join eine as b&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INNER JOINs are for joining different tables not the same table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 13:06:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2584021#M591091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-06T13:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2584022#M591092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at it_rkwa.&lt;/P&gt;&lt;P&gt;select &amp;lt;b&amp;gt;a&lt;SUB&gt;ekorg a&lt;/SUB&gt;ekgrp&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;from eine as a&lt;/P&gt;&lt;P&gt;inner join eine as b on a&lt;SUB&gt;infnr = b&lt;/SUB&gt;infnr&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;matnr = it_rkwa-matnr_rkwa&lt;/P&gt;&lt;P&gt;and lifnr = it_rkwa-lifnr_rkwa.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;append it_rkwa.&lt;/P&gt;&lt;P&gt;clear it_rkwa.&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;Please modify the code in the high lighted part.&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;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 13:07:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2584022#M591092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-06T13:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2584023#M591093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure you use the labels for the fields in the field list.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select a~ekorg a~ekgrp     "&amp;lt;--  RIGHT HERE
from eine as a
inner join eine as b on a~infnr = b~infnr
where
matnr = it_rkwa-matnr_rkwa
and lifnr = it_rkwa-lifnr_rkwa.
&lt;/CODE&gt;&lt;/PRE&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, 06 Aug 2007 13:07:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2584023#M591093</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-08-06T13:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2584024#M591094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Re-write your code as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if not it_rkwa[] is initial.
select ekorg ekgrp
from eine 
into corresponding fields of table it_rkwa2
for all entries in it_rkwa
where matnr = it_rkwa-matnr_rkwa
and lifnr = it_rkwa-lifnr_rkwa.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark points if the solution was useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 13:08:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2584024#M591094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-06T13:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2584025#M591095</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;Check this link....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change u r select according to that..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2469471"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if it helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Omakr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 13:08:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2584025#M591095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-06T13:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2584026#M591096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;y r u joining the same table...??&lt;/P&gt;&lt;P&gt;We will generally get that error because when we are joining two tables and writing  a condition on particular field which is PRESENT in both the tables then it will be giving that error. To avoid that we can use the Aliases i.e&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;ekorg a&lt;/SUB&gt;ekgrp ... .&lt;/P&gt;&lt;P&gt;if it helps dont forget the REWARD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;harris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 13:11:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2584026#M591096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-06T13:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2584027#M591097</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;eine inner join eine is meaning less.use like this.&lt;/P&gt;&lt;P&gt;select ekorg ekgrp into wa from eine where where&lt;/P&gt;&lt;P&gt;matnr = it_rkwa-matnr_rkwa&lt;/P&gt;&lt;P&gt;and lifnr = it_rkwa-lifnr_rkwa.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 13:13:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/2584027#M591097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-06T13:13:16Z</dc:date>
    </item>
  </channel>
</rss>

