<?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: selecting not matching fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-not-matching-fields/m-p/6942328#M1487520</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;data: begin of ls_data,
           matnr type matnr,
           normt type ???,
           zmatnr type matnr,
         end of ls_data,
         lt_data like table of ls_data.


SELECT mara~matnr mara~normt z~matnr as zmatnr
  into corresponding fields of table lt_data
  from mara left outer join z
  on mara~matnr = z~matnr
  where ....

delete lt_data where [not] zmatnr is initial.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;André Witt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jun 2010 13:58:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-07T13:58:10Z</dc:date>
    <item>
      <title>selecting not matching fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-not-matching-fields/m-p/6942327#M1487519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have selected  matnr and normt from mara and kept in internal table i_mara,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have selected matnr from z table in internal table i_docp,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to have a internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it should contain matnr from mara which is not matching with ztable matnr...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jun 2010 13:52:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-not-matching-fields/m-p/6942327#M1487519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-07T13:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: selecting not matching fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-not-matching-fields/m-p/6942328#M1487520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;data: begin of ls_data,
           matnr type matnr,
           normt type ???,
           zmatnr type matnr,
         end of ls_data,
         lt_data like table of ls_data.


SELECT mara~matnr mara~normt z~matnr as zmatnr
  into corresponding fields of table lt_data
  from mara left outer join z
  on mara~matnr = z~matnr
  where ....

delete lt_data where [not] zmatnr is initial.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;André Witt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jun 2010 13:58:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-not-matching-fields/m-p/6942328#M1487520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-07T13:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: selecting not matching fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-not-matching-fields/m-p/6942329#M1487521</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;use this code..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

loop i_mara into wa_mara.

read table i_docp into wa_docp with key matnr = wa_mara-matnr.
 if sy-subrc eq 0.
   delete i_mara where matnr = wa_mara-matnr.
 endif.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jun 2010 14:07:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-not-matching-fields/m-p/6942329#M1487521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-07T14:07:28Z</dc:date>
    </item>
  </channel>
</rss>

