<?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: Problems with SELECT ... WHERE ... IS NULL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-select-where-is-null/m-p/12604186#M2011237</link>
    <description>&lt;P&gt;Thanks for the information!&lt;/P&gt;</description>
    <pubDate>Thu, 27 Oct 2022 13:34:50 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2022-10-27T13:34:50Z</dc:date>
    <item>
      <title>Problems with SELECT ... WHERE ... IS NULL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-select-where-is-null/m-p/12604177#M2011228</link>
      <description>&lt;P&gt;Ahoi experts,&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;SELECT * FROM stpo INTO TABLE lt_stpo&amp;lt;br&amp;gt;
 WHERE stlty EQ 'P'        AND&lt;BR /&gt;       stlnr EQ '00191182' AND&lt;BR /&gt;       posnr EQ '0020'     AND&lt;BR /&gt;       lkenz NE abap_true  AND&lt;BR /&gt;       aedat IS NULL.
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;should yield the last entry of STPO as shown below.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2106660-grafik.png" /&gt;&lt;/P&gt;
  &lt;P&gt;but results in an SY-SUBRC=4. If I omit&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;aedat IS NULL&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;query yields 3 hits (lines 1, 2 and 4).&lt;/P&gt;
  &lt;P&gt;Can u pls tell me, what is wrong with &lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;aedat IS NULL&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Regards, Hubert&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 15:05:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-select-where-is-null/m-p/12604177#M2011228</guid>
      <dc:creator>hubert_heitzer</dc:creator>
      <dc:date>2022-10-26T15:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with SELECT ... WHERE ... IS NULL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-select-where-is-null/m-p/12604178#M2011229</link>
      <description>&lt;P&gt;Do not confuse &lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenwhere_logexp_null.htm"&gt;IS NULL&lt;/A&gt; (null value) with &lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenwhere_logexp_initial.htm"&gt;IS INITIAL&lt;/A&gt; (initial value of the dictionary type)&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 15:41:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-select-where-is-null/m-p/12604178#M2011229</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2022-10-26T15:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with SELECT ... WHERE ... IS NULL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-select-where-is-null/m-p/12604179#M2011230</link>
      <description>&lt;P&gt;Have you tried simply with &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;aedat = ''&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 15:41:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-select-where-is-null/m-p/12604179#M2011230</guid>
      <dc:creator>abo</dc:creator>
      <dc:date>2022-10-26T15:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with SELECT ... WHERE ... IS NULL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-select-where-is-null/m-p/12604180#M2011231</link>
      <description>&lt;P&gt;I know what you mean, but just to clarify, IS INITIAL is not valid with SELECT. Instead, we must use = followed by the corresponding initial value in the database.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 15:54:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-select-where-is-null/m-p/12604180#M2011231</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-10-26T15:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with SELECT ... WHERE ... IS NULL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-select-where-is-null/m-p/12604181#M2011232</link>
      <description>&lt;P&gt;yes, I tried but did not work&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 04:57:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-select-where-is-null/m-p/12604181#M2011232</guid>
      <dc:creator>hubert_heitzer</dc:creator>
      <dc:date>2022-10-27T04:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with SELECT ... WHERE ... IS NULL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-select-where-is-null/m-p/12604182#M2011233</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I think like this,your aedat field is value '00000000' in the table.&lt;/P&gt;&lt;P&gt;Could you try like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;aedat = '00000000'&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Oct 2022 06:32:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-select-where-is-null/m-p/12604182#M2011233</guid>
      <dc:creator>abityildiz</dc:creator>
      <dc:date>2022-10-27T06:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with SELECT ... WHERE ... IS NULL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-select-where-is-null/m-p/12604183#M2011234</link>
      <description>&lt;P&gt;Yes thats it.&lt;/P&gt;&lt;P&gt;Raymond already led me to the solution.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 06:47:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-select-where-is-null/m-p/12604183#M2011234</guid>
      <dc:creator>hubert_heitzer</dc:creator>
      <dc:date>2022-10-27T06:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with SELECT ... WHERE ... IS NULL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-select-where-is-null/m-p/12604184#M2011235</link>
      <description>&lt;P&gt;Better is&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;DATA zero_date TYPE d.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;WHERE aedat = zerodate.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 07:45:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-select-where-is-null/m-p/12604184#M2011235</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2022-10-27T07:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with SELECT ... WHERE ... IS NULL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-select-where-is-null/m-p/12604185#M2011236</link>
      <description>&lt;P&gt; &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; , since 7.53 : &lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/abennews-753-abap_sql.htm#!ABAP_MODIFICATION_4@4@"&gt;4. Relational Expression IS INITIAL&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 08:23:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-select-where-is-null/m-p/12604185#M2011236</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2022-10-27T08:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with SELECT ... WHERE ... IS NULL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-select-where-is-null/m-p/12604186#M2011237</link>
      <description>&lt;P&gt;Thanks for the information!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 13:34:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-select-where-is-null/m-p/12604186#M2011237</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-10-27T13:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with SELECT ... WHERE ... IS NULL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-select-where-is-null/m-p/12604187#M2011238</link>
      <description>&lt;P&gt;To sum up both valid answers:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Before 7.53, from &lt;SPAN class="mention-scrubbed"&gt;kamil.yildiz&lt;/SPAN&gt; : WHERE aedat = '00000000' (or other variants as explained by &lt;SPAN class="mention-scrubbed"&gt;matthew.billingham&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Since 7.53, from &lt;SPAN class="mention-scrubbed"&gt;raymond.giuseppi&lt;/SPAN&gt; : WHERE aedat IS INITIAL&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 27 Oct 2022 13:39:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-select-where-is-null/m-p/12604187#M2011238</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-10-27T13:39:31Z</dc:date>
    </item>
  </channel>
</rss>

