<?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 Reg the Decimal Values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-the-decimal-values/m-p/4622161#M1088794</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement where i have to sum up all the local curreincies for a given fiscal years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so while summing up i am moving the amount to a string varaiable. But if the amount consists of  zeros in the decimal places then the decimals are not being replicated in the string variable.&lt;/P&gt;&lt;P&gt; For ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x = x + itab-dmbtr.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the above ex if the total value of x(where x is of type string) is eq 50.00 then i am not able to display the decimals zero in the output.  I declared the varaible x as string because the summation value is exceeding the length of the amount feild.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if my total value of X is say 50.05 or 50.25 i am able to get these decimal places in the output. But if my total summation value contains zeros in the decimal places in the last i am not able to get those,like 50.00 or 50.20 , these are being displayed as 50 and 50.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Oct 2008 07:45:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-19T07:45:31Z</dc:date>
    <item>
      <title>Reg the Decimal Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-the-decimal-values/m-p/4622161#M1088794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement where i have to sum up all the local curreincies for a given fiscal years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so while summing up i am moving the amount to a string varaiable. But if the amount consists of  zeros in the decimal places then the decimals are not being replicated in the string variable.&lt;/P&gt;&lt;P&gt; For ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x = x + itab-dmbtr.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the above ex if the total value of x(where x is of type string) is eq 50.00 then i am not able to display the decimals zero in the output.  I declared the varaible x as string because the summation value is exceeding the length of the amount feild.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if my total value of X is say 50.05 or 50.25 i am able to get these decimal places in the output. But if my total summation value contains zeros in the decimal places in the last i am not able to get those,like 50.00 or 50.20 , these are being displayed as 50 and 50.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Oct 2008 07:45:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-the-decimal-values/m-p/4622161#M1088794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-19T07:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Reg the Decimal Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-the-decimal-values/m-p/4622162#M1088795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any special reason behind taking currency field as &lt;STRONG&gt;string&lt;/STRONG&gt; it looks interesting. check this .00 is displaying completely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: A(7) TYPE P DECIMALS 2 VALUE 1234567.&lt;/P&gt;&lt;P&gt;A = A + '.00'.&lt;/P&gt;&lt;P&gt;WRITE: 'ANSWER', A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any issues using the above example revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;Balu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Oct 2008 08:35:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-the-decimal-values/m-p/4622162#M1088795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-19T08:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Reg the Decimal Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-the-decimal-values/m-p/4622163#M1088796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree with you in the above example if you declare the variable as packed we will get decimals. But for me after doing the calculations the total sum is exceeding the packed varaible length 16 . Which is why i opted for string to hold the summation value in order to show in the output&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Oct 2008 08:45:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-the-decimal-values/m-p/4622163#M1088796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-19T08:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Reg the Decimal Values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-the-decimal-values/m-p/4622164#M1088797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The issue has been resolved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Apr 2010 12:41:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-the-decimal-values/m-p/4622164#M1088797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-08T12:41:55Z</dc:date>
    </item>
  </channel>
</rss>

