<?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: Reg : Select of Non corresponding data using Join statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-select-of-non-corresponding-data-using-join-statement/m-p/4963411#M1157102</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case of inner JOIN your are getting the result as A X B.&lt;/P&gt;&lt;P&gt; What do you mean by non corresponding data?&lt;/P&gt;&lt;P&gt;Clarify your requirement please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Dec 2008 10:43:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-15T10:43:48Z</dc:date>
    <item>
      <title>Reg : Select of Non corresponding data using Join statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-select-of-non-corresponding-data-using-join-statement/m-p/4963410#M1157101</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 2 custom tables. Now i want to select the non corresponding data (Sales Orders) from the this 2 tables. I am using the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT a~mandt&lt;/P&gt;&lt;P&gt;         a~account&lt;/P&gt;&lt;P&gt;         a~store&lt;/P&gt;&lt;P&gt;         a~purch_no&lt;/P&gt;&lt;P&gt;         a~dist_id&lt;/P&gt;&lt;P&gt;         a~purch_date&lt;/P&gt;&lt;P&gt;         a~order_no&lt;/P&gt;&lt;P&gt;         a~line_no&lt;/P&gt;&lt;P&gt;         a~sched_dt&lt;/P&gt;&lt;P&gt;         a~bk_ord_dt&lt;/P&gt;&lt;P&gt;         a~last_shp_dt&lt;/P&gt;&lt;P&gt;         a~order_qty&lt;/P&gt;&lt;P&gt;         a~sched_qty&lt;/P&gt;&lt;P&gt;         a~bk_ord_qty&lt;/P&gt;&lt;P&gt;         a~shipd_qty&lt;/P&gt;&lt;P&gt;         a~uom&lt;/P&gt;&lt;P&gt;         a~status&lt;/P&gt;&lt;P&gt;         a~shpfrm_loc&lt;/P&gt;&lt;P&gt;         a~shpfrm_city&lt;/P&gt;&lt;P&gt;         a~shpfrm_reg&lt;/P&gt;&lt;P&gt;         a~last_req_id&lt;/P&gt;&lt;P&gt;         a~last_req_dt&lt;/P&gt;&lt;P&gt;         a~last_req_tm&lt;/P&gt;&lt;P&gt;         a~last_resp_id&lt;/P&gt;&lt;P&gt;         a~last_resp_dt&lt;/P&gt;&lt;P&gt;         a~last_resp_tm&lt;/P&gt;&lt;P&gt;         a~mod_user&lt;/P&gt;&lt;P&gt;         FROM ztab1 AS a&lt;/P&gt;&lt;P&gt;         INNER JOIN ztab2 AS b&lt;/P&gt;&lt;P&gt;         ON a&lt;SUB&gt;order_no NE b&lt;/SUB&gt;order_no&lt;/P&gt;&lt;P&gt;         INTO TABLE it_eorditmstat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ztab1 have 27 records. ztab2 have 313. I am getting 8345 records into  table it_eorditmstat which should not . Please help me to overcome this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2008 10:30:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-select-of-non-corresponding-data-using-join-statement/m-p/4963410#M1157101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-15T10:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Select of Non corresponding data using Join statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-select-of-non-corresponding-data-using-join-statement/m-p/4963411#M1157102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case of inner JOIN your are getting the result as A X B.&lt;/P&gt;&lt;P&gt; What do you mean by non corresponding data?&lt;/P&gt;&lt;P&gt;Clarify your requirement please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2008 10:43:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-select-of-non-corresponding-data-using-join-statement/m-p/4963411#M1157102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-15T10:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Select of Non corresponding data using Join statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-select-of-non-corresponding-data-using-join-statement/m-p/4963412#M1157103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Non corresponding means I want Not matching records between both the tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an Order 100004550 in table ZTAB1 if this order is not available in ZTAB2 then record should be selected in the final internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reply for any clarification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2008 10:58:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-select-of-non-corresponding-data-using-join-statement/m-p/4963412#M1157103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-15T10:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Select of Non corresponding data using Join statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-select-of-non-corresponding-data-using-join-statement/m-p/4963413#M1157104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Using inner join will affect Performance and can cause issues in Production . &lt;/P&gt;&lt;P&gt;Try to use Views instead of inner join and select data accordingly &lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;Use FOR ALL ENTRIES .&lt;/P&gt;&lt;P&gt;First select all data from one DBTAble into Internal table and then select corresponding entries as per your KEY &lt;/P&gt;&lt;P&gt;Select*from DBtable FOR ALL ENTRIES IN &amp;lt;itab&amp;gt; WHERE field &amp;lt;&amp;gt; itab-field .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2008 11:11:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-select-of-non-corresponding-data-using-join-statement/m-p/4963413#M1157104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-15T11:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Select of Non corresponding data using Join statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-select-of-non-corresponding-data-using-join-statement/m-p/4963414#M1157105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this approach if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT data from both tables independently.

LOOP AT it_ztab1. 
READ it_ztab2. 
IF sy-subrc &amp;lt;&amp;gt; 0. 
APPEND it_eorditmstat. 
ENDIF.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2008 11:13:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-select-of-non-corresponding-data-using-join-statement/m-p/4963414#M1157105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-15T11:13:48Z</dc:date>
    </item>
  </channel>
</rss>

