<?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/1540165#M246144</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;select f1 f2 f3 f4
      into table itab
      from d_table
      where f5 = 1
      and   f6 NE space.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If F6 is a character type u can define as above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or if F6 of other than character type and it is of NUMC length 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select f1 f2 f3 f4
      into table itab
      from d_table
      where f5 = 1
      and   f6 NE '000000'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR for type I&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select f1 f2 f3 f4
      into table itab
      from d_table
      where f5 = 1
      and   f6 NE '      '. (6 spaces)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try any one of these, this will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if this anwers your query.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Aug 2006 07:53:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-10T07:53:01Z</dc:date>
    <item>
      <title>select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1540159#M246138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose i have 6 fields f1,f2,f3,f4 &amp;amp; f5, f6.&lt;/P&gt;&lt;P&gt;Now i wrote the select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to write the logic for field f6. If f6 is blank then it will exclude the records from the report.&lt;/P&gt;&lt;P&gt;My selection is based on 2 fields criteria so that it will select other values i.e&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select f1 f2 f3 f4 from table where f5 = '1' and not f6 is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the above select statement is correct??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz send me the coding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 07:20:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1540159#M246138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T07:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1540160#M246139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;f1,&lt;/P&gt;&lt;P&gt;f2,&lt;/P&gt;&lt;P&gt;f3,&lt;/P&gt;&lt;P&gt;f4,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select f1 f2 f3 f4&lt;/P&gt;&lt;P&gt;into table itab&lt;/P&gt;&lt;P&gt;from d_table&lt;/P&gt;&lt;P&gt;where f5  = 1&lt;/P&gt;&lt;P&gt;and  nto f6 is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;write here&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Naimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 07:22:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1540160#M246139</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2006-08-10T07:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1540161#M246140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; f6 ne ' '. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;HR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 07:24:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1540161#M246140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T07:24: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/1540162#M246141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select f1 f2 f3 f4 from table where f5 = '1' and not f6 is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only suggestion here would be to use into option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT F1 F2 F3 F4 INTO TABLE ITAB &lt;/P&gt;&lt;P&gt;FROM XYZ&lt;/P&gt;&lt;P&gt;WHERE F5 = '1' AND NOT F6 IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 07:45:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1540162#M246141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T07:45: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/1540163#M246142</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;&lt;/P&gt;&lt;P&gt;you can do this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select f1 f2 f3 f4 from table into itab where f5 = '1' .
if sy-subrc = 0.
delete itab where f6 = ' '.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 07:49:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1540163#M246142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T07:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1540164#M246143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;select f1 f2 f3 f4 from ztable into table itab 
 where f5 = '1' and f6 ne space.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 07:52:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1540164#M246143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T07:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1540165#M246144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;select f1 f2 f3 f4
      into table itab
      from d_table
      where f5 = 1
      and   f6 NE space.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If F6 is a character type u can define as above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or if F6 of other than character type and it is of NUMC length 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select f1 f2 f3 f4
      into table itab
      from d_table
      where f5 = 1
      and   f6 NE '000000'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR for type I&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select f1 f2 f3 f4
      into table itab
      from d_table
      where f5 = 1
      and   f6 NE '      '. (6 spaces)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try any one of these, this will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if this anwers your query.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 07:53:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/1540165#M246144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T07:53:01Z</dc:date>
    </item>
  </channel>
</rss>

