<?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: Inserting Field in Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-field-in-table/m-p/1988128#M403306</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One solution to this problem could be to fire the following DML statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE  ZDODATA SET FIELD_1 = ' ' WHERE FIELD_1 IS NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, does this mean that everytime you add a column(s) to an already existing Z table, you have to fire UPDATE statement to ensure proper selection of data through Data Beowser (SE16)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Feb 2007 12:30:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-27T12:30:59Z</dc:date>
    <item>
      <title>Inserting Field in Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-field-in-table/m-p/1988122#M403300</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;I have added a new field FIELD_1 (domain CHAR10) to a already existing Z table, recreated the "Table Maintenance Generator" and transported the table to Test server. Test data exists on test server with some records having FIELD_1 populated and others having FIELD_1 blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following query when executed on test server fetches no records though many records satisfying the WHERE condition exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM ZDODATA&lt;/P&gt;&lt;P&gt;INTO IT_ZDODATA&lt;/P&gt;&lt;P&gt;WHERE FIELD_1 EQ SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, it should be noted that the below query fetches proper records as expected.&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM ZDODATA&lt;/P&gt;&lt;P&gt;INTO IT_ZDODATA&lt;/P&gt;&lt;P&gt;WHERE FIELD_1 NE SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why does the first query fail to fetch records?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anoop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 07:27:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-field-in-table/m-p/1988122#M403300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T07:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Field in Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-field-in-table/m-p/1988123#M403301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there should not be a problem at all.&lt;/P&gt;&lt;P&gt;Please check whether the table really conaines data for the wher condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, send me you complete code and table structure.&lt;/P&gt;&lt;P&gt;to my email id kavithan@intelligroup.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kavitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 08:07:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-field-in-table/m-p/1988123#M403301</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T08:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Field in Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-field-in-table/m-p/1988124#M403302</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;select query is wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: IT_ZDODATA TYPE STANDARD TABLE OF zdodata with header line.

SELECT *
FROM ZDODATA
INTO&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &amp;lt;b&amp;gt;TABLE&amp;lt;/b&amp;gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IT_ZDODATA
WHERE FIELD_1 EQ '0000000000'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See teh table entries how teh values look like when it is balnk adn pass taht value I have passes 10 zeros considering field length as 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if u find helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 08:33:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-field-in-table/m-p/1988124#M403302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T08:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Field in Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-field-in-table/m-p/1988125#M403303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Anup,&lt;/P&gt;&lt;P&gt; Check with your select query   .. table statement is missing and i advice to follow this path  &lt;/P&gt;&lt;P&gt;goto Utilities-&amp;gt; database utility an press button activate and adjust database ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM ZDODATA&lt;/P&gt;&lt;P&gt;INTO TABLE  IT_ZDODATA&lt;/P&gt;&lt;P&gt;WHERE FIELD_1 EQ SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santoosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 08:45:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-field-in-table/m-p/1988125#M403303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T08:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Field in Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-field-in-table/m-p/1988126#M403304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    Instead of using SPACE( predefined data object ), use IS NULL in &lt;/P&gt;&lt;P&gt;WHERE addition.So that, you can get the required records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             The logical expression sql_cond is either " true, false, or unknown". The expression is unknown if one of the columns involved in the database contains a null value and is evaluated with another comparison as IS NULL. A line is only included in the resulting set if the logical expression is true. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                In the first query you posted, Your are comparing NULL with SPACE.&lt;/P&gt;&lt;P&gt;Here the Logical expression result is UNKNOWN.&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;              When you insert a new field to the already existing table.NULL values&lt;/P&gt;&lt;P&gt;are automatically inserted by the system.NULL and SPACE are not one and the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I think the above desc. make you understand crystal clear. &lt;/P&gt;&lt;P&gt;Hope that you have got the solution, now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                                                    Regards,&lt;/P&gt;&lt;P&gt;                                                                   M.Sandhya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 11:57:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-field-in-table/m-p/1988126#M403304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T11:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Field in Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-field-in-table/m-p/1988127#M403305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandhya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is precisely the solution. Thankyou.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The select statement now gives proper output. However, Data Browser (SE16) selects no records for FIELD_1 = ___________ (Blank Box). Is there any solution for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Anoop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 12:22:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-field-in-table/m-p/1988127#M403305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T12:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Field in Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-field-in-table/m-p/1988128#M403306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One solution to this problem could be to fire the following DML statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE  ZDODATA SET FIELD_1 = ' ' WHERE FIELD_1 IS NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, does this mean that everytime you add a column(s) to an already existing Z table, you have to fire UPDATE statement to ensure proper selection of data through Data Beowser (SE16)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 12:30:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-field-in-table/m-p/1988128#M403306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T12:30:59Z</dc:date>
    </item>
  </channel>
</rss>

