<?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 select statement with where condition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-with-where-condition/m-p/2001870#M407610</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 want to extract data from data base table with where condition with Z*.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mara into table it_mara where matnr = '12*'.&lt;/P&gt;&lt;P&gt;but iam unable to get materials starts with 12 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i get that one?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Mar 2007 14:57:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-21T14:57:15Z</dc:date>
    <item>
      <title>select statement with where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-with-where-condition/m-p/2001870#M407610</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 want to extract data from data base table with where condition with Z*.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mara into table it_mara where matnr = '12*'.&lt;/P&gt;&lt;P&gt;but iam unable to get materials starts with 12 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i get that one?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 14:57:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-with-where-condition/m-p/2001870#M407610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T14:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: select statement with where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-with-where-condition/m-p/2001871#M407611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WHERE matnr LIKE '12%'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 14:58:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-with-where-condition/m-p/2001871#M407611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T14:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: select statement with where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-with-where-condition/m-p/2001872#M407612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select * from mara into table it_mara where matnr like '12%'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 14:59:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-with-where-condition/m-p/2001872#M407612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T14:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: select statement with where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-with-where-condition/m-p/2001873#M407613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do this way&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select * from mara into table it_mara where matnr like'12%'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 14:59:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-with-where-condition/m-p/2001873#M407613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T14:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: select statement with where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-with-where-condition/m-p/2001874#M407614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But you should remember that material numbers are stored with leading zeros internally (if your material numbers are all numeric). So this still may not give you what you wanted to achieve.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 14:59:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-with-where-condition/m-p/2001874#M407614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T14:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: select statement with where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-with-where-condition/m-p/2001875#M407615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        priya katragadda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 15:03:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-with-where-condition/m-p/2001875#M407615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T15:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: select statement with where condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-with-where-condition/m-p/2001876#M407616</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;You can also use ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
tables: mara.

ranges: r_matnr for mara-matnr.

r_matnr-sign = 'I'.
r_matnr-option = 'CP'.
r_matnr-low = '12*'.
append r_matnr.

select * from mara into table it_mara where matnr in r_matnr.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 15:11:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-with-where-condition/m-p/2001876#M407616</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-03-21T15:11:58Z</dc:date>
    </item>
  </channel>
</rss>

