<?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 data from one table which are not in another table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-one-table-which-are-not-in-another-table/m-p/7399260#M1546648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               &lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="tables"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Oct 2010 07:19:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-14T07:19:39Z</dc:date>
    <item>
      <title>Select data from one table which are not in another table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-one-table-which-are-not-in-another-table/m-p/7399255#M1546643</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 need to select onlyl those MBLNR from MKPF&lt;/P&gt;&lt;P&gt;Which MBLNR are not in BKPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have write code like below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : BEGIN OF T_BKPF OCCURS 0,
              BELNR LIKE BKPF-BELNR,
       END OF T_BKPF.

DATA: BEGIN OF T_MKPF OCCURS 0,
             MBLNR LIKE MKPF-MBLNR,
        END OF T_MKPF.

SELECT BELNR INTO CORRESPONDING FIELDS OF TABLE T_BKPF.

SELECT MBLNR INTO CORRESPOMDING FIELDS OF TABLE T_MKPF
             WHERE MBLNR NOT IN T_BKPF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But its not correct. Please tell me how can I get the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with thanks,&lt;/P&gt;&lt;P&gt;Moshior&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 03:45:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-one-table-which-are-not-in-another-table/m-p/7399255#M1546643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-14T03:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Select data from one table which are not in another table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-one-table-which-are-not-in-another-table/m-p/7399256#M1546644</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;range : r_xblnr for bkpf-xblnr.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECT XBLNR from bkpf  and populate into range r_xblnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT MBLNR INTO CORRESPOMDING FIELDS OF TABLE T_MKPF&lt;/P&gt;&lt;P&gt;             WHERE MBLNR NOT IN r_xblnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sachin Patil on Oct 14, 2010 9:30 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 03:56:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-one-table-which-are-not-in-another-table/m-p/7399256#M1546644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-14T03:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Select data from one table which are not in another table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-one-table-which-are-not-in-another-table/m-p/7399257#M1546645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this might not be very efficient but you could use a sub-query in the select:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data t type table of mkpf.&lt;/P&gt;&lt;P&gt;                          &lt;/P&gt;&lt;P&gt;select * from mkpf        &lt;/P&gt;&lt;P&gt;into table t              &lt;/P&gt;&lt;P&gt;where not exists          &lt;/P&gt;&lt;P&gt;( select * from bkpf      &lt;/P&gt;&lt;P&gt;where belnr = mkpf~mblnr )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 04:36:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-one-table-which-are-not-in-another-table/m-p/7399257#M1546645</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2010-10-14T04:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Select data from one table which are not in another table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-one-table-which-are-not-in-another-table/m-p/7399258#M1546646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..........Problem is solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 04:50:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-one-table-which-are-not-in-another-table/m-p/7399258#M1546646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-14T04:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Select data from one table which are not in another table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-one-table-which-are-not-in-another-table/m-p/7399259#M1546647</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;I'm not sure that your data selection makes sense. Normally MKPF-MBLNR and BKPF-BELNR are completely different document types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if it is true, then please verify, whether you have to check for the year MKPF-MJAHR vs. BKPF-GJAHR, too. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Those document numbers in both tables are not unique by there numbers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 04:55:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-one-table-which-are-not-in-another-table/m-p/7399259#M1546647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-14T04:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Select data from one table which are not in another table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-one-table-which-are-not-in-another-table/m-p/7399260#M1546648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               &lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="tables"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 07:19:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-data-from-one-table-which-are-not-in-another-table/m-p/7399260#M1546648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-14T07:19:39Z</dc:date>
    </item>
  </channel>
</rss>

