<?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: fetching data which are not common in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-which-are-not-common/m-p/4605869#M1085477</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how can mara and mard will differe in entries. if there is a entry in MARD there should be an entry in MARA since it is master table. so in this case you can do some thing like this.&lt;/P&gt;&lt;P&gt;first get the data from both the tables.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at it_mara.

read table it_mard.
if sy-subrc ne 0.
 "find the material which is not there in MARD and only in MARA
 "append the matnr to another table
endif.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be you have taken a wrong example to describe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Oct 2008 01:29:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-27T01:29:45Z</dc:date>
    <item>
      <title>fetching data which are not common</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-which-are-not-common/m-p/4605868#M1085476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;          I got an strange requirement it is to fetch data from 2 internal table from the same field name but the values should not be same.can any one tell me some logic for this? eg: fetch matnr from mara and mard into an internal table but the final result in the internal table should be values which are not common in both the tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ragards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2008 00:38:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-which-are-not-common/m-p/4605868#M1085476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-27T00:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: fetching data which are not common</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-which-are-not-common/m-p/4605869#M1085477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how can mara and mard will differe in entries. if there is a entry in MARD there should be an entry in MARA since it is master table. so in this case you can do some thing like this.&lt;/P&gt;&lt;P&gt;first get the data from both the tables.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at it_mara.

read table it_mard.
if sy-subrc ne 0.
 "find the material which is not there in MARD and only in MARA
 "append the matnr to another table
endif.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be you have taken a wrong example to describe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2008 01:29:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-which-are-not-common/m-p/4605869#M1085477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-27T01:29:45Z</dc:date>
    </item>
  </channel>
</rss>

