<?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: inner join in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1821105#M350924</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here why are you using kna1~ktokd two times i dont know... if you want to append some conditon you can append that in your selectoption also then why the range is there.&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;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jan 2007 09:35:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-24T09:35:31Z</dc:date>
    <item>
      <title>inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1821102#M350921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT kna1&lt;SUB&gt;kunnr kna1&lt;/SUB&gt;ktokd INTO TABLE i_kna1keym&lt;/P&gt;&lt;P&gt;            FROM ( kna1 INNER JOIN knvv ON kna1&lt;SUB&gt;kunnr = knvv&lt;/SUB&gt;kunnr )&lt;/P&gt;&lt;P&gt;                   WHERE kna1~kunnr IN s_kunnr  AND&lt;/P&gt;&lt;P&gt;                         knvv~vkorg IN s_vkorg  AND&lt;/P&gt;&lt;P&gt;                         kna1~ktokd IN r_ktokd  AND&lt;/P&gt;&lt;P&gt;                         kna1~ktokd IN s_ktokd.&lt;/P&gt;&lt;P&gt;this is taking long time can any one help me how to make it faster.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 09:30:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1821102#M350921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T09:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1821103#M350922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the field KTOKD on on the index. If not you may be best to extract this field into your internal table then filter the records out from that. Also remove the condition from your select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also notice that you are check the value of KTOKD in two separate range tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 09:33:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1821103#M350922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T09:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1821104#M350923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joins statements in your select would easily consume your time. I would suggest you to dump the data from both tab;es separately into 2 internal tables and then use your conditions to filter the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 09:33:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1821104#M350923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T09:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1821105#M350924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here why are you using kna1~ktokd two times i dont know... if you want to append some conditon you can append that in your selectoption also then why the range is there.&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;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 09:35:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1821105#M350924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T09:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1821106#M350925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1 SELECT kna1&lt;SUB&gt;kunnr kna1&lt;/SUB&gt;ktokd INTO TABLE i_kna1keym&lt;/P&gt;&lt;P&gt;2 FROM ( kna1 INNER JOIN knvv ON kna1&lt;SUB&gt;kunnr = knvv&lt;/SUB&gt;kunnr )&lt;/P&gt;&lt;P&gt;3 WHERE kna1~kunnr IN s_kunnr AND&lt;/P&gt;&lt;P&gt;4 knvv~vkorg IN s_vkorg AND&lt;/P&gt;&lt;P&gt;5 kna1~ktokd IN r_ktokd AND  &lt;/P&gt;&lt;P&gt;6 kna1~ktokd IN s_ktokd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whats the difference between 5th and 6th line.Can you please check it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 09:35:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1821106#M350925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T09:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1821107#M350926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but the condition i am using is needed its extracting the data from only one table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 09:36:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1821107#M350926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T09:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1821108#M350927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your final fetch is ktokd  from KNA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;select 1 into itab.&lt;/P&gt;&lt;P&gt;You can make use of table  TVKO + KNVV  for identifying the customer in the sales area   . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. for all entries of itab select 2 from kna1 into jtab with KTokd .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make use of this logic .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.&lt;/P&gt;&lt;P&gt;making use of index also is one quick access but u need to get approval for that if u get it then its okay else go with the logic .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are doing validation on two tables one for sales orgnization with no matching primary /foreign keys to have a faster access.&lt;/P&gt;&lt;P&gt;so decrease the time access  by tvko and knvv &lt;/P&gt;&lt;P&gt;next get the kna1-ktokd field with a single acces .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 09:37:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1821108#M350927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T09:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1821109#M350928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to change your code as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select kunnr ktokd from kna1 into table i_kna1keym
from kna1
where kunnr in ( select kunnr from knvv where kunnr in s_kunnr
                                                         and vkorg in s_vkorg)
and ktokd in r_ktokd
and ktokd in s_ktokd.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also try to replace the two selection parameters for ktokd with one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 09:37:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1821109#M350928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T09:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1821110#M350929</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;&lt;/P&gt;&lt;P&gt;Append r_ktokd  dats into s_ktokd &lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;Append s_ktokd  dats into r_ktokd &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use any one in the select statement.&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;Ashok kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 09:46:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1821110#M350929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T09:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1821111#M350930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use more key fields in the where condiiton like VKORG VTWEG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 11:09:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1821111#M350930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T11:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1821112#M350931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am getting error in the code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 11:10:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/1821112#M350931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T11:10:21Z</dc:date>
    </item>
  </channel>
</rss>

