<?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 query join problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-join-problem/m-p/7695557#M1577419</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;First avoid joining more than 3 table&lt;/P&gt;&lt;P&gt;instead you can use for all entries.&lt;/P&gt;&lt;P&gt;search on for all entries&lt;/P&gt;&lt;P&gt;it will surely resolve your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Lalit Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Feb 2011 11:00:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-02-22T11:00:42Z</dc:date>
    <item>
      <title>Select query join problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-join-problem/m-p/7695555#M1577417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey guys,&lt;/P&gt;&lt;P&gt;i've used a select query to get details from KNA1, KNVV, ADRC, KNVP, pa0002. tables by joining. but i'm getting only about 170 records. there are more than 3000 records in the database. for each tables. here is my select query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT KNA1&lt;SUB&gt;KUNNR KNA1&lt;/SUB&gt;NAME1 KNA1&lt;SUB&gt;NAME2 ADRC&lt;/SUB&gt;STR_SUPPL1 ADRC&lt;SUB&gt;STR_SUPPL2 ADRC&lt;/SUB&gt;STR_SUPPL3 ADRC&lt;SUB&gt;CITY1 KNVV&lt;/SUB&gt;VWERK KNVP&lt;SUB&gt;PERNR PA0002&lt;/SUB&gt;VORNA PA0002&lt;SUB&gt;NACHN KNVV&lt;/SUB&gt;VKBUR KNVV&lt;SUB&gt;KDGRP KNA1&lt;/SUB&gt;STCD1 KNA1~STCEG&lt;/P&gt;&lt;P&gt;    INTO CORRESPONDING FIELDS OF TABLE IT_FINAL FROM KNA1&lt;/P&gt;&lt;P&gt;    INNER JOIN KNVV ON KNA1&lt;SUB&gt;KUNNR = KNVV&lt;/SUB&gt;KUNNR&lt;/P&gt;&lt;P&gt;    INNER JOIN ADRC ON KNA1&lt;SUB&gt;ADRNR = ADRC&lt;/SUB&gt;ADDRNUMBER&lt;/P&gt;&lt;P&gt;    INNER JOIN KNVP ON KNA1&lt;SUB&gt;KUNNR = KNVP&lt;/SUB&gt;KUNNR&lt;/P&gt;&lt;P&gt;    INNER JOIN PA0002 ON KNVP&lt;SUB&gt;PERNR = PA0002&lt;/SUB&gt;PERNR&lt;/P&gt;&lt;P&gt;    WHERE KNA1&lt;SUB&gt;KUNNR IN S_KUNNR AND KNVV&lt;/SUB&gt;VWERK in P_VWERK AND PA0002&lt;SUB&gt;PERNR IN S_PERNR AND KNVV&lt;/SUB&gt;VKBUR IN S_VKBUR AND KNVV~KDGRP IN S_KDGRP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone tell me the problem in the above query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 10:28:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-join-problem/m-p/7695555#M1577417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-22T10:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Select query join problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-join-problem/m-p/7695556#M1577418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please help me someone.. &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 10:54:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-join-problem/m-p/7695556#M1577418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-22T10:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Select query join problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-join-problem/m-p/7695557#M1577419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;First avoid joining more than 3 table&lt;/P&gt;&lt;P&gt;instead you can use for all entries.&lt;/P&gt;&lt;P&gt;search on for all entries&lt;/P&gt;&lt;P&gt;it will surely resolve your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Lalit Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 11:00:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-join-problem/m-p/7695557#M1577419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-22T11:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Select query join problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-join-problem/m-p/7695558#M1577420</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;don't know why your join is not working but you can analyse that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use SQVI (Quick viewer) and join the first 2 tables and view the result with a data record that is veryfied to be ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now add always one additional table to the join and check which join causes and why you loose the data record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards, Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 11:01:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-join-problem/m-p/7695558#M1577420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-22T11:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Select query join problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-join-problem/m-p/7695559#M1577421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to search on for all entries? can u explain it further  more?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 11:02:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-join-problem/m-p/7695559#M1577421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-22T11:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Select query join problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-join-problem/m-p/7695560#M1577422</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 are using tables KNA1, KNVV, ADRC, KNVP, pa0002.&lt;/P&gt;&lt;P&gt;Create internal table for each table mentioned above with all the primary keys and find the links between them&lt;/P&gt;&lt;P&gt;then select data in one table and select data from another table into your internal table for all the entries exists in firs internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go for below links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdev.co.uk/abap/commands/select_forallentries.htm" target="test_blank"&gt;http://www.sapdev.co.uk/abap/commands/select_forallentries.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/ABAP/FOR" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/ABAP/FOR&lt;/A&gt;&lt;EM&gt;ALL&lt;/EM&gt;ENTRIES&lt;EM&gt;-&lt;/EM&gt;Home+page&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu_70/en/ABENWHERE_LOGEXP_ITAB.htm" target="test_blank"&gt;http://help.sap.com/abapdocu_70/en/ABENWHERE_LOGEXP_ITAB.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;lalit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 11:15:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-join-problem/m-p/7695560#M1577422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-22T11:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Select query join problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-join-problem/m-p/7695561#M1577423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Christian ,&lt;/P&gt;&lt;P&gt; Could you please tell me , how to check the entries in the Transaction 'SQVI' by using the Data record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking You All.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 13:54:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-join-problem/m-p/7695561#M1577423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-22T13:54:14Z</dc:date>
    </item>
  </channel>
</rss>

