<?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: initialize value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/initialize-value/m-p/2532690#M574455</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Preeti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its not your fault that the default value is being displayed.&lt;/P&gt;&lt;P&gt;What you can do is to have another column in your internal table of type c.&lt;/P&gt;&lt;P&gt;Whenever there is a value in rseb just transfer it to you column.&lt;/P&gt;&lt;P&gt;At the time of display hide the column with the actual values and display the type c column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jul 2007 08:57:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-23T08:57:00Z</dc:date>
    <item>
      <title>initialize value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initialize-value/m-p/2532687#M574452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to display value of quantity field as blank if it contains vaue as 0.00&lt;/P&gt;&lt;P&gt;This is the query which i hav written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from resb into corresponding fields of  resb_itab_wa&lt;/P&gt;&lt;P&gt;        where aufnr = itab_wa-aufnr AND  WERKS = ITAB_WA-DWERK.&lt;/P&gt;&lt;P&gt;IF RESB_ITAB_WA-ENMNG = 0.&lt;/P&gt;&lt;P&gt;        RESB_ITAB_WA-ENMNG = '   '.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. if the value of resb_itab_wa is 0.00 then it should display blank&lt;/P&gt;&lt;P&gt;So i wrote the above query. But there is no change . 0.00 is yet being displayed.&lt;/P&gt;&lt;P&gt;Do i hav to write something else since it is a quantity field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2007 08:40:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initialize-value/m-p/2532687#M574452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-23T08:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: initialize value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initialize-value/m-p/2532688#M574453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The default value depends on the data type of the variable.&lt;/P&gt;&lt;P&gt;If the RESB_ITAB_WA-ENMNG is QUAN, then it would display only 0.00. You cannot change it to BLANK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To give BLANK (" ") as default value, the data type should be one that would accept CHAR values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Allot points if answer was useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2007 08:43:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initialize-value/m-p/2532688#M574453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-23T08:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: initialize value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initialize-value/m-p/2532689#M574454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WHERE do you have your problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in SMARTFORMS? in SAP-Script? in a write statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in SMARTFORMS and in SAP-Script the solution is quite easy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at your output variable in your form just add (I).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: &amp;amp;EKPO-NETWR(I)&amp;amp;&lt;/P&gt;&lt;P&gt;if EKPO-NETWR is initial (would be 0.00), then it wiont get printed.&lt;/P&gt;&lt;P&gt;if it differs from initial state, then it will be printed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have that problem in a write statement, you should swap that value through a char field, and print (write) that char field.&lt;/P&gt;&lt;P&gt;Swap the value ONLY if your value is not initial.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2007 08:45:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initialize-value/m-p/2532689#M574454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-23T08:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: initialize value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initialize-value/m-p/2532690#M574455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Preeti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its not your fault that the default value is being displayed.&lt;/P&gt;&lt;P&gt;What you can do is to have another column in your internal table of type c.&lt;/P&gt;&lt;P&gt;Whenever there is a value in rseb just transfer it to you column.&lt;/P&gt;&lt;P&gt;At the time of display hide the column with the actual values and display the type c column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2007 08:57:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initialize-value/m-p/2532690#M574455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-23T08:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: initialize value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initialize-value/m-p/2532691#M574456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANK YOU SO MUCH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2007 08:58:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initialize-value/m-p/2532691#M574456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-23T08:58:21Z</dc:date>
    </item>
  </channel>
</rss>

