<?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: Set a field to null in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-field-to-null/m-p/6801256#M1467499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have oupput in ALV formt you can use &lt;EM&gt;NO_ZERO = 'X'&lt;/EM&gt; attribute of fieldcatalog to turn off displaying zeros in tat column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Apr 2010 07:23:46 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2010-04-09T07:23:46Z</dc:date>
    <item>
      <title>Set a field to null</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-field-to-null/m-p/6801253#M1467496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys I have a structure (a workare) which I want to set NULL not 0. I tried it with the command CLEAR WITH NULL but it doesnt work because my structure fields content references. This is not supported by the CLEAR WITH NULL command and I get an error. &lt;/P&gt;&lt;P&gt;Do you have any idea how to solve that problem?&lt;/P&gt;&lt;P&gt;Thans a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 07:00:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-field-to-null/m-p/6801253#M1467496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-09T07:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set a field to null</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-field-to-null/m-p/6801254#M1467497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Null&lt;/EM&gt; value is set in special cases only by the system. I.e. when you don't use certain fields from table in the view and you do an &lt;EM&gt;insert&lt;/EM&gt; . In this case the system puts null values to all remaining fields in the underlying tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CLEAR WITH NULL&lt;/EM&gt; is obsolete. I would simply suggeest to use &lt;EM&gt;CLEAR&lt;/EM&gt; with no addition. This will initialize your reference variable which means in the field there is nothing stored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 07:17:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-field-to-null/m-p/6801254#M1467497</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-04-09T07:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set a field to null</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-field-to-null/m-p/6801255#M1467498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that i have numfields too and they are set to 0 then but I dont want to have 0 in there because my output shall show empty fields and not 0 :). Any other idea?&lt;/P&gt;&lt;P&gt;Thanks for ur post&lt;/P&gt;&lt;P&gt;Marko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 07:20:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-field-to-null/m-p/6801255#M1467498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-09T07:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set a field to null</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-field-to-null/m-p/6801256#M1467499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have oupput in ALV formt you can use &lt;EM&gt;NO_ZERO = 'X'&lt;/EM&gt; attribute of fieldcatalog to turn off displaying zeros in tat column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 07:23:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-field-to-null/m-p/6801256#M1467499</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-04-09T07:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set a field to null</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-field-to-null/m-p/6801257#M1467500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ABAP does not support NULL values. ABAP only supports INITIAL values, but with these you are not able to differ between content and non-contont.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to fill your structure with self defined indicater variables indicating if a value contains data or nor. something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES:
  begin of struct,
    a type p decimals 5,
    a_i type apap_bool,
    b type c length 30,
    b_i type abap:bool
  end of struct.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filling the _i components you have full control if a componet contains NULL values or initial values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 07:25:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-a-field-to-null/m-p/6801257#M1467500</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2010-04-09T07:25:05Z</dc:date>
    </item>
  </channel>
</rss>

