<?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: Displaying 3 decimal places? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-3-decimal-places/m-p/4909666#M1146232</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;just try to pass your value to var,it will take care of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: var type p decimals 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aakash Banga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Dec 2008 11:18:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-08T11:18:16Z</dc:date>
    <item>
      <title>Displaying 3 decimal places?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-3-decimal-places/m-p/4909663#M1146229</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 a bespoke program which picks up lines from bsis and displays them on a screen, the user then selects a few lines and the program posts them using program RFBIBL00.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently this program is working perfectly but I have a few countries which work with 3 decimal places instead of 2 and the program isn't picking this up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've found that table TCURX holds currencies which have 3 decimal places but I want to know how I change all my internal tables and screen fields to suddenly have 3 decimal places instead of 2?  My internal tables and screen fields are all based on fields from BSIS and I have ALV grids and individual screen fields.  Do I need to duplicate all of the amount fields, one set to have 2 decimal places and the other to have 3?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2008 11:06:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-3-decimal-places/m-p/4909663#M1146229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-08T11:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying 3 decimal places?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-3-decimal-places/m-p/4909664#M1146230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it is only the display that you are concerned about - carry out a P to C conversion and use string concatenation and then a C to P conversion if required&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2008 11:11:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-3-decimal-places/m-p/4909664#M1146230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-08T11:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying 3 decimal places?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-3-decimal-places/m-p/4909665#M1146231</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;You can have your curr fields in the internal table with 3 char.&lt;/P&gt;&lt;P&gt;Use FM ROUND to round off for the countries which have 2 -decimal digits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2008 11:12:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-3-decimal-places/m-p/4909665#M1146231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-08T11:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying 3 decimal places?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-3-decimal-places/m-p/4909666#M1146232</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;just try to pass your value to var,it will take care of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: var type p decimals 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aakash Banga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2008 11:18:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-3-decimal-places/m-p/4909666#M1146232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-08T11:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying 3 decimal places?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-3-decimal-places/m-p/4909667#M1146233</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;Best would be to have all variables with 3 decimal places. That would serve for all scenarions.&lt;/P&gt;&lt;P&gt;Since you are not making any changes in the amounts you need not do any rounding anywhere.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2008 11:24:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-3-decimal-places/m-p/4909667#M1146233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-08T11:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying 3 decimal places?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-3-decimal-places/m-p/4909668#M1146234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I think I have 2 issues:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Displaying 2 and 3 decimal places using the same fields.&lt;/P&gt;&lt;P&gt;2. Processing 2 and 3 decimal places using those fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to define 2 sets of fields, one with 2 decimal places and one with 3?  Or can I change the display and the processing at runtime?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My program needs to work with 2 and 3 decimal places, although not at the same time on the same screen (hopefully!).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2008 11:27:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-3-decimal-places/m-p/4909668#M1146234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-08T11:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying 3 decimal places?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-3-decimal-places/m-p/4909669#M1146235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you would have to declare 2 variables with 2 &amp;amp; 3 decimal places respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2008 11:29:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-3-decimal-places/m-p/4909669#M1146235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-08T11:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying 3 decimal places?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-3-decimal-places/m-p/4909670#M1146236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would prefer to just have one set of variables, but my users don't want to see 3 decimal places if the currency they are dealing with only has 2.  How can I use the same variables but display 2 and 3 decimal places at runtime?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2008 11:30:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-3-decimal-places/m-p/4909670#M1146236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-08T11:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying 3 decimal places?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-3-decimal-places/m-p/4909671#M1146237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At the time of display you can very well limit the noumber of decimal places.&lt;/P&gt;&lt;P&gt;Have 3 decimal places variables that should work internally and at the time of display depending on country you could display 2 or 3 decimals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;decimals_out(6)   type c,     " decimals in write statement For ALV output.&lt;/P&gt;&lt;P&gt;There is option in case of WRITE statement too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2008 11:38:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-3-decimal-places/m-p/4909671#M1146237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-08T11:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying 3 decimal places?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-3-decimal-places/m-p/4909672#M1146238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I've figured this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you define your screen fields (on the screen not in your data declarations) as CURR not DEC as mine were then you can put in a field as a reference.  I defined a new field (not a screen one) which held the currency for the screen.  If I define all my currency amount fields with 3 decimal places but refer them all to the currency field then they appear as 2 or 3 decimals places depending on the currency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your suggestions, they got me thinking on the right track.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2008 11:42:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-3-decimal-places/m-p/4909672#M1146238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-08T11:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying 3 decimal places?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-3-decimal-places/m-p/4909673#M1146239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good at least the solution is there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2008 11:51:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-3-decimal-places/m-p/4909673#M1146239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-08T11:51:23Z</dc:date>
    </item>
  </channel>
</rss>

