<?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 Select Query Issue ! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-issue/m-p/2360324#M522089</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 the following query which is fetchin me each record three times :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ekpo&lt;SUB&gt;ebeln ekpo&lt;/SUB&gt;matnr ekpo&lt;SUB&gt;adrnr ekpo&lt;/SUB&gt;meins ekpo&lt;SUB&gt;menge ekpo&lt;/SUB&gt;netpr ekpo~netwr&lt;/P&gt;&lt;P&gt;       eket&lt;SUB&gt;banfn eket&lt;/SUB&gt;eindt ekpo&lt;SUB&gt;ebeln ekko&lt;/SUB&gt;bedat makt~maktx&lt;/P&gt;&lt;P&gt;       from ekpo&lt;/P&gt;&lt;P&gt;       join ekko on ekko&lt;SUB&gt;ebeln = ekpo&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;       join eket on eket&lt;SUB&gt;ebeln = ekpo&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;       join makt on makt&lt;SUB&gt;matnr = ekpo&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;       into corresponding fields of table potab&lt;/P&gt;&lt;P&gt;       where ekpo~ebeln = pono.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANY GUESSES WHY ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jun 2007 10:41:00 GMT</pubDate>
    <dc:creator>sachin_soni</dc:creator>
    <dc:date>2007-06-04T10:41:00Z</dc:date>
    <item>
      <title>Select Query Issue !</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-issue/m-p/2360324#M522089</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 the following query which is fetchin me each record three times :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ekpo&lt;SUB&gt;ebeln ekpo&lt;/SUB&gt;matnr ekpo&lt;SUB&gt;adrnr ekpo&lt;/SUB&gt;meins ekpo&lt;SUB&gt;menge ekpo&lt;/SUB&gt;netpr ekpo~netwr&lt;/P&gt;&lt;P&gt;       eket&lt;SUB&gt;banfn eket&lt;/SUB&gt;eindt ekpo&lt;SUB&gt;ebeln ekko&lt;/SUB&gt;bedat makt~maktx&lt;/P&gt;&lt;P&gt;       from ekpo&lt;/P&gt;&lt;P&gt;       join ekko on ekko&lt;SUB&gt;ebeln = ekpo&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;       join eket on eket&lt;SUB&gt;ebeln = ekpo&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;       join makt on makt&lt;SUB&gt;matnr = ekpo&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;       into corresponding fields of table potab&lt;/P&gt;&lt;P&gt;       where ekpo~ebeln = pono.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANY GUESSES WHY ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 10:41:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-issue/m-p/2360324#M522089</guid>
      <dc:creator>sachin_soni</dc:creator>
      <dc:date>2007-06-04T10:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Issue !</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-issue/m-p/2360325#M522090</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 do the folowing change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select ekpo~ebeln ekpo~matnr ekpo~adrnr ekpo~meins ekpo~menge ekpo~netpr ekpo~netwr
eket~banfn eket~eindt ekpo~ebeln ekko~bedat makt~maktx
from ekpo
join ekko on ekko~ebeln = ekpo~ebeln
join eket on eket~ebeln = ekpo~ebeln
join makt on makt~matnr = ekpo~matnr
into corresponding fields of table potab
where ekko~ebeln = pono.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope That helps&lt;/P&gt;&lt;P&gt;Anirban M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 10:45:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-issue/m-p/2360325#M522090</guid>
      <dc:creator>former_member480923</dc:creator>
      <dc:date>2007-06-04T10:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Issue !</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-issue/m-p/2360326#M522091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Soni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the code like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select ekpo~ebeln ekpo~matnr ekpo~adrnr ekpo~meins ekpo~menge ekpo~netpr ekpo~netwr
eket~banfn eket~eindt ekpo~ebeln ekko~bedat makt~maktx
from ekpo
join ekko on ekko~ebeln = ekpo~ebeln
join eket on eket~ebeln = ekpo~ebeln and 
                  eket~ebelp = ekpo~ebelp   " Check here
join makt on makt~matnr = ekpo~matnr
into corresponding fields of table potab
where ekpo~ebeln = pono.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgadrs,&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 10:46:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-issue/m-p/2360326#M522091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T10:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Issue !</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-issue/m-p/2360327#M522092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this it may help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ekpo&lt;SUB&gt;ebeln ekpo&lt;/SUB&gt;matnr ekpo&lt;SUB&gt;adrnr ekpo&lt;/SUB&gt;meins ekpo&lt;SUB&gt;menge ekpo&lt;/SUB&gt;netpr ekpo~netwr&lt;/P&gt;&lt;P&gt;eket&lt;SUB&gt;banfn eket&lt;/SUB&gt;eindt ekpo&lt;SUB&gt;ebeln ekko&lt;/SUB&gt;bedat makt~maktx&lt;/P&gt;&lt;P&gt;from ekpo&lt;/P&gt;&lt;P&gt;join ekko on ekko&lt;SUB&gt;ebeln = ekpo&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;join eket on eket&lt;SUB&gt;ebeln = ekpo&lt;/SUB&gt;ebeln and&lt;/P&gt;&lt;P&gt;                  eket&lt;SUB&gt;ebelp = ekpo&lt;/SUB&gt;ebelp&lt;/P&gt;&lt;P&gt;join makt on makt&lt;SUB&gt;matnr = ekpo&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;into corresponding fields of table potab&lt;/P&gt;&lt;P&gt;where ekpo~ebeln = pono.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 10:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-issue/m-p/2360327#M522092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T10:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query Issue !</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-issue/m-p/2360328#M522093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sachin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       may be ur using this query under internal table which have three records...........&lt;/P&gt;&lt;P&gt;         like &lt;/P&gt;&lt;P&gt;   loop at itab &lt;/P&gt;&lt;P&gt;        ur query........&lt;/P&gt;&lt;P&gt;   endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if not than specify ur entire code here............it makes more clear to solve it....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward point if helpful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Imran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 10:48:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-issue/m-p/2360328#M522093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T10:48:20Z</dc:date>
    </item>
  </channel>
</rss>

