<?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 Difference between 'Not Null' and 'Initial' in data dictionary in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-not-null-and-initial-in-data-dictionary/m-p/9366935#M1732703</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;(1) If the field is defined on the database with NOT NULL as initial value, the field is filled&lt;/P&gt;&lt;P&gt;with the corresponding initial value.&lt;/P&gt;&lt;P&gt;&amp;nbsp; (2) If the field is defined on the database as NOT NULL without initial value, an insert is not&lt;/P&gt;&lt;P&gt;possible. This results in a database error.&lt;/P&gt;&lt;P&gt;&amp;nbsp; (3) If the field is not defined on the database as NOT NULL, there will be a NULL value in&lt;/P&gt;&lt;P&gt;this field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i am having one question on this ..&lt;/P&gt;&lt;P&gt;Whenever i am creating a field in the table,the field is defined on the database as NOT NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i set initial field on then it should fill the initial values that is working fine.&lt;/P&gt;&lt;P&gt;but if i leave initial field as empty,and if i try to insert initial values then i should get an error but that is not happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And how can i define a field on the database as NOT NULL and NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;Raghunadh.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Mar 2013 12:42:54 GMT</pubDate>
    <dc:creator>former_member226225</dc:creator>
    <dc:date>2013-03-29T12:42:54Z</dc:date>
    <item>
      <title>Difference between 'Not Null' and 'Initial' in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-not-null-and-initial-in-data-dictionary/m-p/9366935#M1732703</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;(1) If the field is defined on the database with NOT NULL as initial value, the field is filled&lt;/P&gt;&lt;P&gt;with the corresponding initial value.&lt;/P&gt;&lt;P&gt;&amp;nbsp; (2) If the field is defined on the database as NOT NULL without initial value, an insert is not&lt;/P&gt;&lt;P&gt;possible. This results in a database error.&lt;/P&gt;&lt;P&gt;&amp;nbsp; (3) If the field is not defined on the database as NOT NULL, there will be a NULL value in&lt;/P&gt;&lt;P&gt;this field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i am having one question on this ..&lt;/P&gt;&lt;P&gt;Whenever i am creating a field in the table,the field is defined on the database as NOT NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i set initial field on then it should fill the initial values that is working fine.&lt;/P&gt;&lt;P&gt;but if i leave initial field as empty,and if i try to insert initial values then i should get an error but that is not happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And how can i define a field on the database as NOT NULL and NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;Raghunadh.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2013 12:42:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-not-null-and-initial-in-data-dictionary/m-p/9366935#M1732703</guid>
      <dc:creator>former_member226225</dc:creator>
      <dc:date>2013-03-29T12:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between 'Not Null' and 'Initial' in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-not-null-and-initial-in-data-dictionary/m-p/9366936#M1732704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghunandh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;A Database NULL value represents a field that has never been stored to database - this saving space, potentially.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;Usually all SAP tables are stored with all fields, empty fields are stored with their initial value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;But: If a new table append is created and the newly-added fields do not have the 'initial value' marked in table definition, Oracle will just set NULL values for them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;as mentioned: There is no NULL value to be stored in an ABAP field. The IS NULL comparison is valid only for WHERE clause in SELECT statement. WHERE field = space is different from WHERE field IS NULL. That's why you should check for both specially for appended table fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;If a record is selected (fulfilling another WHERE condition) into an internal table or work area, NULL values are converted to their initial values anyway.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;regards&lt;/P&gt;&lt;P&gt;Dipesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Apr 2013 10:08:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-not-null-and-initial-in-data-dictionary/m-p/9366936#M1732704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-06T10:08:32Z</dc:date>
    </item>
  </channel>
</rss>

