<?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 Material by Material Type in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-material-by-material-type/m-p/2512794#M568331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rich Heilman &lt;/P&gt;&lt;P&gt;It Works Perfect....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jul 2007 19:53:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-06T19:53:27Z</dc:date>
    <item>
      <title>Select Material by Material Type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-material-by-material-type/m-p/2512792#M568329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have Material Number in an internal table and not material type.i want to delete all the material Number from the table whose material type not equal to 'ZFRT'.How i can i do that? Kindly help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 19:00:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-material-by-material-type/m-p/2512792#M568329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T19:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Select Material by Material Type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-material-by-material-type/m-p/2512793#M568330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, it would be easier and better to have Material Type within the internal table if you have the chance to do that, or even you could do this condition when selecting the materials from the database into the internal table, but if you truely have no other option, then i guess you can do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: xmara type mara

loop at itab.

   select single * from mara into xmara
               where matnr = itab-matnr
                   and mtart = 'ZFRT'.
   if sy-subrc &amp;lt;&amp;gt; 0.
     delete itab.
     continue.
    endif.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 19:05:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-material-by-material-type/m-p/2512793#M568330</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-07-06T19:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Select Material by Material Type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-material-by-material-type/m-p/2512794#M568331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rich Heilman &lt;/P&gt;&lt;P&gt;It Works Perfect....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 19:53:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-material-by-material-type/m-p/2512794#M568331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T19:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Select Material by Material Type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-material-by-material-type/m-p/2512795#M568332</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;If you have material number in it_itab, then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES : BEGIN OF x_mara,
          matnr TYPE matnr,
          mtart TYPE mtart,
        END   OF x_mara.

DATA : it_mara TYPE TABLE OF x_mara.

SELECT matnr mtart
  FROM mara
  INTO TABLE it_mara
  FOR ALL ENTRIES IN it_itab
  WHERE matnr = it_itab-matnr
    AND mtart = 'ZFRT'.

IF sy-subrc = 0.
  DELETE it_itab FROM it_mara.
ELSE.
  REFRESH : it_mara.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Reward points if the answer is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mukul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 19:59:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-material-by-material-type/m-p/2512795#M568332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T19:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Select Material by Material Type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-material-by-material-type/m-p/2512796#M568333</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;If you have material number in it_itab, then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES : BEGIN OF x_mara,
          matnr TYPE matnr,
          mtart TYPE mtart,
        END   OF x_mara.
 
DATA : it_mara TYPE TABLE OF x_mara.
 
SELECT matnr mtart
  FROM mara
  INTO TABLE it_mara
  FOR ALL ENTRIES IN it_itab
  WHERE matnr = it_itab-matnr
    AND mtart = 'ZFRT'.
 
IF sy-subrc = 0.
  DELETE it_itab FROM it_mara.
ELSE.
  REFRESH : it_mara.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Reward points if the answer is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mukul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 20:02:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-material-by-material-type/m-p/2512796#M568333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T20:02:12Z</dc:date>
    </item>
  </channel>
</rss>

