<?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 How to replace NULL value in a table after creation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-null-value-in-a-table-after-creation/m-p/6527838#M1426170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We added an include to the table EKKO containing several fields including ZZTYPC.&lt;/P&gt;&lt;P&gt;The initialization flag was not set at creation time so the new fields were populated with the NULL value.&lt;/P&gt;&lt;P&gt;We would like now to initialize the value for all the records of the field ZZTYPC to avoid problems when we use this field as a selection criteria in Tx SE16.&lt;/P&gt;&lt;P&gt;As suggested in the following post &lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="8627895"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I checked the initilization flag for this field at the structure level (Dictionary : Display structure), save &amp;amp; activate but the modification is not carried over the table EKKO : the "initial values" check box stays unchecked for the field ZZTYPC thus the adaptation of EKKO is useless.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use DB2 as database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Olivier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jan 2010 16:02:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-21T16:02:18Z</dc:date>
    <item>
      <title>How to replace NULL value in a table after creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-null-value-in-a-table-after-creation/m-p/6527838#M1426170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We added an include to the table EKKO containing several fields including ZZTYPC.&lt;/P&gt;&lt;P&gt;The initialization flag was not set at creation time so the new fields were populated with the NULL value.&lt;/P&gt;&lt;P&gt;We would like now to initialize the value for all the records of the field ZZTYPC to avoid problems when we use this field as a selection criteria in Tx SE16.&lt;/P&gt;&lt;P&gt;As suggested in the following post &lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="8627895"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I checked the initilization flag for this field at the structure level (Dictionary : Display structure), save &amp;amp; activate but the modification is not carried over the table EKKO : the "initial values" check box stays unchecked for the field ZZTYPC thus the adaptation of EKKO is useless.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use DB2 as database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Olivier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 16:02:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-null-value-in-a-table-after-creation/m-p/6527838#M1426170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T16:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace NULL value in a table after creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-null-value-in-a-table-after-creation/m-p/6527839#M1426171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Olivier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to put values in all the records of ZTYPC field. Once all the records are filled with some values apart from null, then try to check the initialization check box in Maintain table screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope  this will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2010 06:36:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-null-value-in-a-table-after-creation/m-p/6527839#M1426171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-22T06:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace NULL value in a table after creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-null-value-in-a-table-after-creation/m-p/6527840#M1426172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just ran into this problem as well.  I added an append structure to REGUH, you can not check the initial value column.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I found was the new field on existing records contained a null value and on new records it was set to initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I did (in test) is write a program that changes all records where the new field = NULL to inital date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: init_date LIKE reguh-zzextrd,&lt;/P&gt;&lt;P&gt;             init_time LIKE reguh-zzextrt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR: init_date,&lt;/P&gt;&lt;P&gt;               init_time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  UPDATE reguh&lt;/P&gt;&lt;P&gt;    SET zzextrd = init_date&lt;/P&gt;&lt;P&gt;           zzextrt = init_time&lt;/P&gt;&lt;P&gt;       WHERE zzextrd IS NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2011 14:06:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-null-value-in-a-table-after-creation/m-p/6527840#M1426172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-05T14:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace NULL value in a table after creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-null-value-in-a-table-after-creation/m-p/6527841#M1426173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Olivier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly you could use the following to update all NULL values to spaces using SQL etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;update ZTABLE set ZFIELD = ' ' where ZFIELD is null&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;-Derrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2011 16:01:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-null-value-in-a-table-after-creation/m-p/6527841#M1426173</guid>
      <dc:creator>VEPS</dc:creator>
      <dc:date>2011-05-05T16:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace NULL value in a table after creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-null-value-in-a-table-after-creation/m-p/6527842#M1426174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I just ran into this problem as well. I added an append structure to REGUH, you can not check the initial value column. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Jerry: That's not true. You can always check the box for a DB field.  When you use an append structure in a DB table, by default the Initialization flag is not shown.  You simply need to go to Extras-&amp;gt;DB Attributes -&amp;gt; Init flag On/Off.  This removes the need to use a program to fix the issue for new records.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2011 18:22:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-null-value-in-a-table-after-creation/m-p/6527842#M1426174</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2011-05-05T18:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace NULL value in a table after creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-null-value-in-a-table-after-creation/m-p/6527843#M1426175</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;Do one thing. Change the table and now check the Initialize flag and the go to database Utility and check the radio button Save and Adjust and then activate the table. You will not lose the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnx,&lt;/P&gt;&lt;P&gt;Bhargav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2011 08:33:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-null-value-in-a-table-after-creation/m-p/6527843#M1426175</guid>
      <dc:creator>Venkat_Sesha</dc:creator>
      <dc:date>2011-05-20T08:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace NULL value in a table after creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-null-value-in-a-table-after-creation/m-p/6527844#M1426176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Olivier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please change the INIT Flag within the Extras TAB and then goto SE14 to adjust the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though updating the Table with changes in the value NULL is easy to do it, sometimes the ztable cannot be adjusted automatically which leads to data inconsistency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert for further clarification&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2011 12:59:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-null-value-in-a-table-after-creation/m-p/6527844#M1426176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-20T12:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace NULL value in a table after creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-null-value-in-a-table-after-creation/m-p/6527845#M1426177</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 to SE14 give the table name , Select Extras-&amp;gt;Force conversion that initiates all the null Values...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 10:35:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-null-value-in-a-table-after-creation/m-p/6527845#M1426177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-10T10:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace NULL value in a table after creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-null-value-in-a-table-after-creation/m-p/6527846#M1426178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added an append structure to table MARC with several CHAR1 fields for checkboxes. &lt;/P&gt;&lt;P&gt;Our development system is running on &lt;STRONG&gt;OS: Linux/DB: Oracle&lt;/STRONG&gt; and has no problems in SE16 filtering on these new fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After transporting the append structure to a customer system running on &lt;STRONG&gt;OS: Microsoft Server 2008/DB: MS SQL Server&lt;/STRONG&gt;, transaction SE16 was behaving unexpected as selection on the new fields were returning not all expected records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MS SQL Server handles NULL values differently than Oracle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You gave me the solution for our problem:&lt;/P&gt;&lt;P&gt;transaction SE14 &amp;gt; table MARC &amp;gt; Select Extras &amp;gt;Force conversion that initiates all the null Values&lt;/P&gt;&lt;P&gt;This action has to be repeated in every system at the customer (development, test and production).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for sharing your solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: it is impossible to set the Initial value flag in a table for fields added via an append structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: R. J. Bouwknegt on Jul 18, 2011 12:17 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 10:16:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-replace-null-value-in-a-table-after-creation/m-p/6527846#M1426178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-18T10:16:54Z</dc:date>
    </item>
  </channel>
</rss>

