<?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 TABLE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-table/m-p/2607215#M597679</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not at all advisable to use inner joins on 6 tables.this will create a lot of performance problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You better go for 'for all entries' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;join ekko and ekkn first on ebeln.(these being the header tables)&lt;/P&gt;&lt;P&gt;then you can go with for all entries using entries from above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Harmeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Aug 2007 08:47:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-08T08:47:33Z</dc:date>
    <item>
      <title>SELECT TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-table/m-p/2607212#M597676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have six tables ekko, ekpo,ekkn,eskl,eskl,lfa1&lt;/P&gt;&lt;P&gt;and i user for inner join first three table taking ebeln&lt;/P&gt;&lt;P&gt;and another three table how should i write the select statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;points will awarded,help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 08:23:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-table/m-p/2607212#M597676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-08T08:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-table/m-p/2607213#M597677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first chk ekko, ekpo,ekkn,eskl,eskl,lfa1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;following table primary key .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;afer using inner join syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exaple&lt;/P&gt;&lt;P&gt;SELECT  p&lt;SUB&gt;carrid p&lt;/SUB&gt;connid f&lt;SUB&gt;fldate b&lt;/SUB&gt;bookid&lt;/P&gt;&lt;P&gt;  INTO  CORRESPONDING FIELDS OF TABLE itab&lt;/P&gt;&lt;P&gt;  FROM  ( ( spfli AS p&lt;/P&gt;&lt;P&gt;            INNER JOIN sflight AS f ON p&lt;SUB&gt;carrid = f&lt;/SUB&gt;carrid AND&lt;/P&gt;&lt;P&gt;                                       p&lt;SUB&gt;connid = f&lt;/SUB&gt;connid    )&lt;/P&gt;&lt;P&gt;            INNER JOIN sbook   AS b ON b&lt;SUB&gt;carrid = f&lt;/SUB&gt;carrid AND&lt;/P&gt;&lt;P&gt;                                       b&lt;SUB&gt;connid = f&lt;/SUB&gt;connid AND&lt;/P&gt;&lt;P&gt;                                       b&lt;SUB&gt;fldate = f&lt;/SUB&gt;fldate     )&lt;/P&gt;&lt;P&gt;  WHERE p~cityfrom = 'FRANKFURT' AND&lt;/P&gt;&lt;P&gt;        p~cityto   = 'NEW YORK'  AND&lt;/P&gt;&lt;P&gt;        f&lt;SUB&gt;seatsmax &amp;gt; f&lt;/SUB&gt;seatsocc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 08:31:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-table/m-p/2607213#M597677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-08T08:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-table/m-p/2607214#M597678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;      Better go for FOR ALL ENTRIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vishvesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 08:35:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-table/m-p/2607214#M597678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-08T08:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-table/m-p/2607215#M597679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not at all advisable to use inner joins on 6 tables.this will create a lot of performance problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You better go for 'for all entries' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;join ekko and ekkn first on ebeln.(these being the header tables)&lt;/P&gt;&lt;P&gt;then you can go with for all entries using entries from above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Harmeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 08:47:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-table/m-p/2607215#M597679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-08T08:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-table/m-p/2607216#M597680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;the following link has the relationship betwen the various tables in MM module.. this link will be able  to help you find the link between the tables u specified&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/abap/tables_mm.htm" target="test_blank"&gt;http://www.erpgenie.com/abap/tables_mm.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aparna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 09:12:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-table/m-p/2607216#M597680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-08T09:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-table/m-p/2607217#M597681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First do inner join on ekko and ekpo.&lt;/P&gt;&lt;P&gt;                    on ekko&lt;SUB&gt;ebeln = ekpo&lt;/SUB&gt;ebeln into itab&lt;/P&gt;&lt;P&gt;secondly, select * from ekkn .....use for all entries in itab &lt;/P&gt;&lt;P&gt;                where ebeln = itab-ebeln and ebelp = itab-ebelp.&lt;/P&gt;&lt;P&gt;third,  select * from eskn....for all entries in itab &lt;/P&gt;&lt;P&gt;                where zekkn = itab-zekkn (eskn-zekkn = ekkn-zekkn)&lt;/P&gt;&lt;P&gt;fourt,  select * from eskl........for all entries in itab &lt;/P&gt;&lt;P&gt;                 where packno = itab-packno (eskl-packno = eskn-packno)&lt;/P&gt;&lt;P&gt;fifth,  select * from lfa1........for all entries in itab &lt;/P&gt;&lt;P&gt;                 where lifnr  = itab-lifnr (lfa1-lifnr = ekko-lifnr)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;anju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 09:13:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-table/m-p/2607217#M597681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-08T09:13:29Z</dc:date>
    </item>
  </channel>
</rss>

