<?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: Changing figure display. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-figure-display/m-p/1043909#M87327</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;According to your last post u have to Define ur variable in folloing way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters rs type p decimals 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write rs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Digesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Nov 2005 05:52:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-16T05:52:30Z</dc:date>
    <item>
      <title>Changing figure display.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-figure-display/m-p/1043896#M87314</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 would like to change 1500.000  -&amp;gt; 1500, is there any function for that in the system?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2005 01:14:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-figure-display/m-p/1043896#M87314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-16T01:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Changing figure display.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-figure-display/m-p/1043897#M87315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;write &amp;lt;variable&amp;gt; no decimals.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2005 01:23:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-figure-display/m-p/1043897#M87315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-16T01:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Changing figure display.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-figure-display/m-p/1043898#M87316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ong,&lt;/P&gt;&lt;P&gt;You can aslo do this&lt;/P&gt;&lt;P&gt;WRITE: &amp;lt;Variable&amp;gt; DECIMALS 0 &lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Raghava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2005 01:28:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-figure-display/m-p/1043898#M87316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-16T01:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Changing figure display.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-figure-display/m-p/1043899#M87317</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;If I use no decimals for it, will my result come out like this 150020 if my value is 1500.20?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2005 01:52:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-figure-display/m-p/1043899#M87317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-16T01:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Changing figure display.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-figure-display/m-p/1043900#M87318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No , It would be 1500 &lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Raghava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2005 01:54:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-figure-display/m-p/1043900#M87318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-16T01:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Changing figure display.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-figure-display/m-p/1043901#M87319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ong,&lt;/P&gt;&lt;P&gt;In case if you want more info on Decimals option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option        ... DECIMALS d                                                                                &lt;/P&gt;&lt;P&gt;Effect        d specifies the number of decimal places for a number field       &lt;/P&gt;&lt;P&gt;              (type I, P or F) in d. If this value is smaller than the          &lt;/P&gt;&lt;P&gt;              number of decimal places in the number, the number is rounded.    &lt;/P&gt;&lt;P&gt;              If the value is greater, the number is padded with zeros.         &lt;/P&gt;&lt;P&gt;              Since accuracy with floating point arithmetic is up to about      &lt;/P&gt;&lt;P&gt;              15 decimal places (see ABAP number types), up to 17 digits are    &lt;/P&gt;&lt;P&gt;              output with floating point numbers (type F). (In some             &lt;/P&gt;&lt;P&gt;              circumstances, 17 digits are needed to differentiate between      &lt;/P&gt;&lt;P&gt;              two neighboring floating point numbers.) If the output length     &lt;/P&gt;&lt;P&gt;              is not sufficient, as many decimal places as possible are         &lt;/P&gt;&lt;P&gt;              output. Negative DECIMALS specifications are treated as           &lt;/P&gt;&lt;P&gt;              DECIMALS 0.                                                                                &lt;/P&gt;&lt;P&gt;Example       Effect of different DECIMALS specifications:                                                                                &lt;/P&gt;&lt;P&gt;DATA: X TYPE P DECIMALS 3 VALUE '1.267',                          &lt;/P&gt;&lt;P&gt;                    Y TYPE F            VALUE '125.456E2'.                                                                                &lt;/P&gt;&lt;P&gt;WRITE: /X DECIMALS 0,  "output: 1                                 &lt;/P&gt;&lt;P&gt;                     /X DECIMALS 2,  "output: 1.27                              &lt;/P&gt;&lt;P&gt;                     /X DECIMALS 5,  "output: 1.26700                           &lt;/P&gt;&lt;P&gt;                     /Y DECIMALS 1,  "output: 1.3E+04                           &lt;/P&gt;&lt;P&gt;                     /Y DECIMALS 5,  "output: 1.25456E+04                       &lt;/P&gt;&lt;P&gt;                     /Y DECIMALS 20. "output: 1.25456000000000E+04&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2005 01:58:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-figure-display/m-p/1043901#M87319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-16T01:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Changing figure display.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-figure-display/m-p/1043902#M87320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about if when the figures is 1500.00, I want to keep it as 1500 and figure is 1500.20, I want to keep it as 1500.2?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2005 02:24:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-figure-display/m-p/1043902#M87320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-16T02:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Changing figure display.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-figure-display/m-p/1043903#M87321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ong ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable1 = 1500.00&lt;/P&gt;&lt;P&gt;WRITE: &amp;lt;Variable1&amp;gt; DECIMALS 0.&lt;/P&gt;&lt;P&gt;That would give you 1500.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable2 = 1500.20&lt;/P&gt;&lt;P&gt;WRITE: &amp;lt;Variable2&amp;gt; DECIMALS 1.&lt;/P&gt;&lt;P&gt;That would give you 1500.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Raghava M&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Raghava M&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2005 02:28:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-figure-display/m-p/1043903#M87321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-16T02:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Changing figure display.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-figure-display/m-p/1043904#M87322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you tell how many maximum decimal places you can have? Is it one or two or any number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2005 03:13:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-figure-display/m-p/1043904#M87322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-16T03:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Changing figure display.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-figure-display/m-p/1043905#M87323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I got your issue now. I checked for standard SAP function module, but I could not find much help .However, I have one possible solution to your issue, if you are considering only two decimal places. Complexity might increase as you increase the number of decimals. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us say &lt;/P&gt;&lt;P&gt;A  = 1500. XY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   If  Y is a non zero .&lt;/P&gt;&lt;P&gt;     WRITE: A  DECIMALS 2.&lt;/P&gt;&lt;P&gt;   Else.&lt;/P&gt;&lt;P&gt;      If X is  a non zero.&lt;/P&gt;&lt;P&gt;      WRITE: A  DECIMALS 1.&lt;/P&gt;&lt;P&gt;      Else.&lt;/P&gt;&lt;P&gt;       WRITE: A  DECIMALS 0.&lt;/P&gt;&lt;P&gt;      Endif.&lt;/P&gt;&lt;P&gt;   Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Raghava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2005 03:55:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-figure-display/m-p/1043905#M87323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-16T03:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Changing figure display.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-figure-display/m-p/1043906#M87324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghava,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I able to solve my problem now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using code as below:&lt;/P&gt;&lt;P&gt;WRITE &amp;lt;variable1&amp;gt; NO-GROUPING UNIT 'ST' TO &amp;lt;variable2&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So whatever figure come with 1500.00 will bcome 1500.00 and figure come with 1500.20 will maintain as 1500.20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2005 04:12:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-figure-display/m-p/1043906#M87324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-16T04:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Changing figure display.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-figure-display/m-p/1043907#M87325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghava,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for making mistake for previous post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result will be 1500.00 will bcome 1500 and 1500.20 will maintain as 1500.20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2005 04:14:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-figure-display/m-p/1043907#M87325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-16T04:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Changing figure display.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-figure-display/m-p/1043908#M87326</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;Refer following code. It will surely solve ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data rs type p decimals 2 value '1500.50'.&lt;/P&gt;&lt;P&gt;data in type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;if u want rounded figure, uncomment the below code (exa. 1500.50 as 1501)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*in = rs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;if u do not want rounded figure (exa. 1500.50 as 1500)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;in = trunc( rs ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Digesh Panchal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2005 05:43:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-figure-display/m-p/1043908#M87326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-16T05:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Changing figure display.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-figure-display/m-p/1043909#M87327</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;According to your last post u have to Define ur variable in folloing way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters rs type p decimals 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write rs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Digesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2005 05:52:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-figure-display/m-p/1043909#M87327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-16T05:52:30Z</dc:date>
    </item>
  </channel>
</rss>

