<?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 statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2911440#M685098</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your Select statement should only bring back one record.&lt;/P&gt;&lt;P&gt;  WHERE MATNR = P_MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will assume that your p_matnr is a range table and that it should read &lt;/P&gt;&lt;P&gt; where matnr in p_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally, you want to avoid negatives in your WHERE clause, so in your case you can write it:  AND MTART &amp;gt; SPACE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 Oct 2007 03:35:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-21T03:35:33Z</dc:date>
    <item>
      <title>select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2911435#M685093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please tell me how we can do this in the select query.&lt;/P&gt;&lt;P&gt;  select matnr mtart from mara into itab_mara&lt;/P&gt;&lt;P&gt;                   where matnr = p_matnr &lt;/P&gt;&lt;P&gt;                   and mtart must be having some value. ie if it is not having any data in that field it should not fetch that record.&lt;/P&gt;&lt;P&gt;so please tell me how to code my above select statement.&lt;/P&gt;&lt;P&gt;I think we should not use like this.....&lt;/P&gt;&lt;P&gt;  select matnr mtart from mara into itab_mara&lt;/P&gt;&lt;P&gt;                   where matnr = p_matnr &lt;/P&gt;&lt;P&gt;                   and mtart ne space.    " it is not recommended i think&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 08:40:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2911435#M685093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T08:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2911436#M685094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select matnr mtart from mara into itb_mara where matnr = p_matnr.&lt;/P&gt;&lt;P&gt;if itb-mtart is not initial.&lt;/P&gt;&lt;P&gt;delete itb_mara.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can use the above or the one u mentioned. It will suffice I think...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 10:41:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2911436#M685094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T10:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2911437#M685095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So long as the NE doesn't interfere with the index (and yours doesn't) you should be OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 13:31:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2911437#M685095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T13:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2911438#M685096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr mtart from mara into itb_mara where matnr = p_matnr and &lt;/P&gt;&lt;P&gt;                                                                        mtart ne ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 13:40:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2911438#M685096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T13:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2911439#M685097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select matnr mtart from mara into itab_mara&lt;/P&gt;&lt;P&gt;where matnr = p_matnr .&lt;/P&gt;&lt;P&gt;if itab_mara[] is not initial.&lt;/P&gt;&lt;P&gt; Loop at itab_mara.&lt;/P&gt;&lt;P&gt; if itab_mara-mtart is initial.&lt;/P&gt;&lt;P&gt;  delete itab_mara.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 07:20:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2911439#M685097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T07:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2911440#M685098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your Select statement should only bring back one record.&lt;/P&gt;&lt;P&gt;  WHERE MATNR = P_MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will assume that your p_matnr is a range table and that it should read &lt;/P&gt;&lt;P&gt; where matnr in p_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally, you want to avoid negatives in your WHERE clause, so in your case you can write it:  AND MTART &amp;gt; SPACE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Oct 2007 03:35:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2911440#M685098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-21T03:35:33Z</dc:date>
    </item>
  </channel>
</rss>

