<?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: Not getting data for Null Records. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-for-null-records/m-p/5957981#M1337188</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data:v_sczuo type CO_SCZUO value is INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF itab OCCURS 0.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE makz.&lt;/P&gt;&lt;P&gt;DATA : END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM makz INTO TABLE itab WHERE sczuo = v_sczuo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Aug 2009 10:56:23 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2009-08-06T10:56:23Z</dc:date>
    <item>
      <title>Not getting data for Null Records.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-for-null-records/m-p/5957979#M1337186</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 am trying to fetch the records where  sczuo  values are NULL .  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF itab OCCURS 0.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE makz.&lt;/P&gt;&lt;P&gt;DATA : END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM makz INTO TABLE itab WHERE sczuo IS NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;  LOOP AT itab.&lt;/P&gt;&lt;P&gt;    WRITE : /3 itab-matnr , 20 itab-sczuo.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not getting data any data .But if i write select statement like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM makz INTO TABLE itab WHERE sczuo = ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This select statement returns the correct data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why my first select statement is not working ? how can i use IS NULL?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2009 10:12:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-for-null-records/m-p/5957979#M1337186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-06T10:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting data for Null Records.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-for-null-records/m-p/5957980#M1337187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;I did a Trace on your report and found that the first Select sends "Is Null" to database &lt;/P&gt;&lt;P&gt;Whereas the second query sends " ",As shown below in Open SQL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="green" __jive_macro_name="color"&gt; SELECT WHERE "MANDT" = '800' AND "SCZUO" IS NULL&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;FETCH             0   1403&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="green" __jive_macro_name="color"&gt; SELECT WHERE "MANDT" = '800' AND "SCZUO" = ' '&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;FETCH             2   1403&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field also has a conversion routine ALPHA attached to it.&lt;/P&gt;&lt;P&gt;So I Think  the DB interpreataion of &lt;STRONG&gt;IS NULL&lt;/STRONG&gt; value is different from &lt;STRONG&gt;SPACE&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;i.e. The initial value of this field in Database is other than " ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AJR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2009 10:53:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-for-null-records/m-p/5957980#M1337187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-06T10:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting data for Null Records.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-for-null-records/m-p/5957981#M1337188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data:v_sczuo type CO_SCZUO value is INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF itab OCCURS 0.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE makz.&lt;/P&gt;&lt;P&gt;DATA : END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM makz INTO TABLE itab WHERE sczuo = v_sczuo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2009 10:56:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-for-null-records/m-p/5957981#M1337188</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-08-06T10:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting data for Null Records.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-for-null-records/m-p/5957982#M1337189</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;When we insert a new field to an existing table, NULL values are automatically inserted into the new field by the system for all existing records. However NULL and SPACE are not the same.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logical expression SQL condition is either "true, false, or unknown". The expression is UNKNOWN if one of the columns involved in the database contains a NULL value and such records could be retrieved by using u201CIS NULLu201D instead of SPACE.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that the NULL value is inserted only for the existing records, by the time the new field is being inserted. For all new records, SPACE or the initial (default) value is inserted.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the new field is inserted by checking the checkbox u201Cinitial valuesu201D, then the initial values (SPACE in case of characters) are automatically inserted and not the NULL values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ihope u get the solution...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ashu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2009 11:59:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-for-null-records/m-p/5957982#M1337189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-06T11:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting data for Null Records.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-for-null-records/m-p/5957983#M1337190</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;I tried "IS NULL" type of query on a number of tables in SAP (IDES system). However, none of these tables returned any records. Is there any standard table at all in SAP that may contain "NULL" value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have any query on any SAP table that returned you the data with "IS NULL" in it, I would appreciate it if you could share the table name with me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this point, I am led to believe that SAP tables never contain NULL values even though ABAP SQL query supports "IS NULL" and "NOT IS NULL."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2009 18:52:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-for-null-records/m-p/5957983#M1337190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-07T18:52:14Z</dc:date>
    </item>
  </channel>
</rss>

