<?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: suppress Zero's in module pool . in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/suppress-zero-s-in-module-pool/m-p/8901363#M1689844</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhishek, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think that you are able to differentiate between null and "0.00" here. &lt;/P&gt;&lt;P&gt;Null values can be recognized on database level (they could e.g. arise for existing records when you create an additional column in a database table). In ABAP itself (leaving aside SELECT) you can only check for &lt;STRONG&gt;initial&lt;/STRONG&gt; values (but not for null). The initial value for P is "0". Therefore the dynpro displays "0.00" in your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some thoughts. I cannot say more without knowing the exact use-case:&lt;/P&gt;&lt;P&gt;1) if you have a read-only field, you could create an additional CHAR field on the screen. Then you could get empty columns for initial values / "0" values (that only partly solves the topic for you). Example&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;field1 type p (hidden on screen)&lt;/LI&gt;&lt;LI&gt;field2 type c (visible)&lt;/LI&gt;&lt;LI&gt;logic: if field1 is not initial... write field1 to field2... format options...&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;2) if you want to differentiate between "user has entered 0.00" and "user has not entered anything", you need to somehow memorize that the user has entered something (and you might have to be able to recover this from the database, if your program has a persistence). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Thorsten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Aug 2012 20:03:10 GMT</pubDate>
    <dc:creator>schneidertho</dc:creator>
    <dc:date>2012-08-03T20:03:10Z</dc:date>
    <item>
      <title>suppress Zero's in module pool .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suppress-zero-s-in-module-pool/m-p/8901362#M1689843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have used a field in module pool.the data type of that field is &lt;STRONG&gt; type p dcimals 2.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;it is showing &lt;STRONG&gt;0.00 &lt;/STRONG&gt; when nil at the begning of program.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i want it no to display anything till its value is zero or nil.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/126062" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;it want these fields blank not even 0 should be displayed.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;plz suggest some solution.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 06:35:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suppress-zero-s-in-module-pool/m-p/8901362#M1689843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-03T06:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: suppress Zero's in module pool .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suppress-zero-s-in-module-pool/m-p/8901363#M1689844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhishek, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think that you are able to differentiate between null and "0.00" here. &lt;/P&gt;&lt;P&gt;Null values can be recognized on database level (they could e.g. arise for existing records when you create an additional column in a database table). In ABAP itself (leaving aside SELECT) you can only check for &lt;STRONG&gt;initial&lt;/STRONG&gt; values (but not for null). The initial value for P is "0". Therefore the dynpro displays "0.00" in your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some thoughts. I cannot say more without knowing the exact use-case:&lt;/P&gt;&lt;P&gt;1) if you have a read-only field, you could create an additional CHAR field on the screen. Then you could get empty columns for initial values / "0" values (that only partly solves the topic for you). Example&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;field1 type p (hidden on screen)&lt;/LI&gt;&lt;LI&gt;field2 type c (visible)&lt;/LI&gt;&lt;LI&gt;logic: if field1 is not initial... write field1 to field2... format options...&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;2) if you want to differentiate between "user has entered 0.00" and "user has not entered anything", you need to somehow memorize that the user has entered something (and you might have to be able to recover this from the database, if your program has a persistence). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Thorsten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 20:03:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suppress-zero-s-in-module-pool/m-p/8901363#M1689844</guid>
      <dc:creator>schneidertho</dc:creator>
      <dc:date>2012-08-03T20:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: suppress Zero's in module pool .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suppress-zero-s-in-module-pool/m-p/8901364#M1689845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i have a doubt is the " Con SCM/Ton "&amp;nbsp; a field present in the table you used in the module pool program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if it is so just try to change the data type of the data element you used for that field .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make it as Data Type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : QUAN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; No. of cahr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; decimal Places&amp;nbsp; : 2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; use this field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Ron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2012 12:46:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suppress-zero-s-in-module-pool/m-p/8901364#M1689845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-04T12:46:03Z</dc:date>
    </item>
  </channel>
</rss>

