<?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 stmt error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmt-error/m-p/2217083#M475514</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you need match lifnr in your select query not PO number (lfa1&lt;SUB&gt;lifnr = ekko&lt;/SUB&gt;lifnr ), it should be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: lfa1, ekko,&lt;/P&gt;&lt;P&gt;select-options: vend for lfa1-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;lifnr like lfa1-lifnr,&lt;/P&gt;&lt;P&gt;name1 like lfa1-name1,&lt;/P&gt;&lt;P&gt;land1 like lfa1-land1,&lt;/P&gt;&lt;P&gt;ebeln like ekko-ebeln,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select lfa1&lt;SUB&gt;lifnr lfa1&lt;/SUB&gt;name1 lfa1&lt;SUB&gt;land1 ekko&lt;/SUB&gt;ebeln into table itab from lfa1 inner join ekko on lfa1&lt;SUB&gt;lifnr = ekko&lt;/SUB&gt;lifnr where lfa1~lifnr in vend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write: itab.&lt;/P&gt;&lt;P&gt;endloop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;MM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Apr 2007 16:33:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-27T16:33:02Z</dc:date>
    <item>
      <title>select stmt error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmt-error/m-p/2217081#M475512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;  plz rectify the error,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;there is some prob with my inner join select stmt which i am unable to identify&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: lfa1, ekko,&lt;/P&gt;&lt;P&gt;select-options: vend for lfa1-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;         lifnr like lfa1-lifnr,&lt;/P&gt;&lt;P&gt;         name1 like lfa1-name1,&lt;/P&gt;&lt;P&gt;        land1 like lfa1-land1,&lt;/P&gt;&lt;P&gt;        ebeln like ekko-ebeln,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select lfa1&lt;SUB&gt;lifnr lfa1&lt;/SUB&gt;name1 lfa1&lt;SUB&gt;land1 ekko&lt;/SUB&gt;ebeln into table itab from lfa1 inner join ekko on lfa1&lt;SUB&gt;lifnr  = ekko&lt;/SUB&gt;ebeln where lfa1~lifnr in vend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write: itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 16:29:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmt-error/m-p/2217081#M475512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T16:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: select stmt error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmt-error/m-p/2217082#M475513</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;Try like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select lfa1~lifnr lfa1~name1 lfa1~land1 ekko~ebeln 
  into table itab 
  from lfa1 inner join ekko on lfa1~lifnr = ekko~lifnr   "ekko~lifnr
  where lfa1~lifnr in vend.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 16:32:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmt-error/m-p/2217082#M475513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T16:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: select stmt error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmt-error/m-p/2217083#M475514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you need match lifnr in your select query not PO number (lfa1&lt;SUB&gt;lifnr = ekko&lt;/SUB&gt;lifnr ), it should be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: lfa1, ekko,&lt;/P&gt;&lt;P&gt;select-options: vend for lfa1-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;lifnr like lfa1-lifnr,&lt;/P&gt;&lt;P&gt;name1 like lfa1-name1,&lt;/P&gt;&lt;P&gt;land1 like lfa1-land1,&lt;/P&gt;&lt;P&gt;ebeln like ekko-ebeln,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select lfa1&lt;SUB&gt;lifnr lfa1&lt;/SUB&gt;name1 lfa1&lt;SUB&gt;land1 ekko&lt;/SUB&gt;ebeln into table itab from lfa1 inner join ekko on lfa1&lt;SUB&gt;lifnr = ekko&lt;/SUB&gt;lifnr where lfa1~lifnr in vend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write: itab.&lt;/P&gt;&lt;P&gt;endloop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;MM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 16:33:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmt-error/m-p/2217083#M475514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T16:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: select stmt error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmt-error/m-p/2217084#M475515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi  tamas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx for the response.&lt;/P&gt;&lt;P&gt;        actually it was type mistake , i am having prob with the one which had provided&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 16:36:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmt-error/m-p/2217084#M475515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T16:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: select stmt error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmt-error/m-p/2217085#M475516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;  Whenever you are writing the select query on joins are tables first note down that &lt;/P&gt;&lt;P&gt;fields order in the select query must match with the Internal table fields declarations otherwise simply use the &amp;lt;b&amp;gt;corresponding fields of table&amp;lt;/b&amp;gt; in your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your query is going wrong because of these reason only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sreeram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 17:39:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmt-error/m-p/2217085#M475516</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2007-04-27T17:39:00Z</dc:date>
    </item>
  </channel>
</rss>

