<?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: doubt in dictionary in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-dictionary/m-p/1364377#M180459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Surendra,&lt;/P&gt;&lt;P&gt;u cannot make a field mandatory in a table even if it is among the primary keys.. for that u need to write additional piece of code while maintaining data via SM30.&lt;/P&gt;&lt;P&gt;The INitial option just fills the field with its initial value automatically if nothing is being put.. if u do no chk this field, it will remain blank ( even if the initial value is 0, as in case of integers )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 May 2006 04:46:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-30T04:46:27Z</dc:date>
    <item>
      <title>doubt in dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-dictionary/m-p/1364375#M180457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have great confusion about the use of INIT. check box in ABAP dictionary beside KEY field check box. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some say this is to ensure not null is forced for the field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i created a table with 2 fields one key field(NUMC4) another non-key(char4). for the second one i checked the INIT check box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i make table entries where i leave the second field. that means initial value(space for characters). it takes this initial value also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then what is the use of this checkbox. please explain. i m so confused.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also tell me how we can make a table field mandatory while creating a table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 04:33:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-dictionary/m-p/1364375#M180457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T04:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: doubt in dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-dictionary/m-p/1364376#M180458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Surendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its the indicator that NOT NULL is forced for this field&lt;/P&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;Select this flag if a field to be inserted in the database is to be filled with initial values. The initial value used depends on the data type of the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that fields in the database for which the this flag is not set can also be filled with initial values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you create a table, all fields of the table can be defined as NOT NULL and filled with an initial value. The same applies when converting the table. Only when new fields are added or inserted, are these filled with initial values. An exception is key fields. These are always filled automatically with initial values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Restrictions and notes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The initial value cannot be set for fields of data types LCHR, LRAW, and RAW. If the field length is greater than 32, the initial flag cannot be set for fields of data type NUMC.&lt;/P&gt;&lt;P&gt;If a new field is inserted in the table and the initial flag is set, the complete table is scanned on activation and an UPDATE is made to the new field. This can be very time-consuming.&lt;/P&gt;&lt;P&gt;If the initial flag is set for an included structure, this means that the attributes from the structure are transferred. That is, exactly those fields which are marked as initial in the definition have this attribute in the table as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Susmitha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont forget to reward for useful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 04:39:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-dictionary/m-p/1364376#M180458</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T04:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: doubt in dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-dictionary/m-p/1364377#M180459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Surendra,&lt;/P&gt;&lt;P&gt;u cannot make a field mandatory in a table even if it is among the primary keys.. for that u need to write additional piece of code while maintaining data via SM30.&lt;/P&gt;&lt;P&gt;The INitial option just fills the field with its initial value automatically if nothing is being put.. if u do no chk this field, it will remain blank ( even if the initial value is 0, as in case of integers )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 04:46:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-dictionary/m-p/1364377#M180459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T04:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: doubt in dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-dictionary/m-p/1364378#M180460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi surendrakumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. This is the default and appropriate behaviour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If we specify any field as primary key,&lt;/P&gt;&lt;P&gt;(it cannot be NULL in physical database table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Hence, INITIAL means,&lt;/P&gt;&lt;P&gt;SPACES for charcter field&lt;/P&gt;&lt;P&gt;ZERO for numeric field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. So Its ok what is happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 05:02:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-dictionary/m-p/1364378#M180460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T05:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: doubt in dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-dictionary/m-p/1364379#M180461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;let me know clearly the diff, b/n NULL and INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what u mean by physical database? is it ORACLE etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 05:20:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-dictionary/m-p/1364379#M180461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T05:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: doubt in dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-dictionary/m-p/1364380#M180462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Surendra,&lt;/P&gt;&lt;P&gt; Null means nothing ( not even a blank space )&lt;/P&gt;&lt;P&gt; Initial :&lt;/P&gt;&lt;P&gt; for characters : space&lt;/P&gt;&lt;P&gt; for numbers    : 0 ( with decimals depending on the data type )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 05:52:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-dictionary/m-p/1364380#M180462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T05:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: doubt in dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-dictionary/m-p/1364381#M180463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You check the null value using INITIAL..&lt;/P&gt;&lt;P&gt;IF NOT w_matnr IS INITIAL.&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;IF w_matnr IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NULL of oracle is reffered as INITIAL in ABAP. As such INITIAL and '' have same meaning. If you want to specifically check with space then you use SPACE reserved word.&lt;/P&gt;&lt;P&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&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&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&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&gt;If a record is selected (fulfilling another WHERE condition) into an internal table or work area, NULL values are convertted to their initial values anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that sheds some light on the subject!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 05:58:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-dictionary/m-p/1364381#M180463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T05:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: doubt in dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-dictionary/m-p/1364382#M180464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.  what u mean by physical database? is it ORACLE etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Yes, the oracle database for sap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.  let me know clearly the diff, b/n NULL and INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  When we set a field(s) as primary key&lt;/P&gt;&lt;P&gt;  in a oracle database,&lt;/P&gt;&lt;P&gt;  we cannot insert NULL value in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; (NULL = No value, not even spaces, It means totally EMPTY)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; (INITIAL value =  &lt;/P&gt;&lt;P&gt;  Spaces for character type field&lt;/P&gt;&lt;P&gt;  Zeroes for numeric/numc type of field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. So, in SAP, if we create a table,&lt;/P&gt;&lt;P&gt;   and we set one field(s) as primary key,&lt;/P&gt;&lt;P&gt;   then &lt;/P&gt;&lt;P&gt;   by default,&lt;/P&gt;&lt;P&gt;   it means that we cannot &lt;/P&gt;&lt;P&gt;   insert NULL in the table record,&lt;/P&gt;&lt;P&gt;   so ATLEAST,&lt;/P&gt;&lt;P&gt;   SOME VALUE should go in the table,&lt;/P&gt;&lt;P&gt;   and this SOME VALUE &lt;/P&gt;&lt;P&gt;   can be&lt;/P&gt;&lt;P&gt;   SPACES / ZEROES&lt;/P&gt;&lt;P&gt;   (based upon the field type)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 06:32:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-dictionary/m-p/1364382#M180464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T06:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: doubt in dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-dictionary/m-p/1364383#M180465</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;Go through the following link :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap/ab4dict.pdf" target="test_blank"&gt;http://www.sappoint.com/abap/ab4dict.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ramya Reddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 06:45:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-dictionary/m-p/1364383#M180465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T06:45:12Z</dc:date>
    </item>
  </channel>
</rss>

