<?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 decimals - smartforms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimals-smartforms/m-p/1475546#M223023</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 statement: &lt;/P&gt;&lt;P&gt;gs_unitprice = grkwert / &amp;lt;fs&amp;gt;-kwmeng.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result: gs_unitprice = 2,40708&lt;/P&gt;&lt;P&gt;gs_unitprice is defined as CURR field, 13 long, 5 decimals&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, we want to only print the number with 4 decimals WITHOUT rouding the number.&lt;/P&gt;&lt;P&gt;So now my smartform prints: 2,4071  but they don't want this.&lt;/P&gt;&lt;P&gt;They want that my smartform prints 2,4070.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried a lot of things, like making a type of field with 13 long, 4 decimals and move my field to that, but with the move it also rounds it up to 71 ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Aug 2006 09:58:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-17T09:58:37Z</dc:date>
    <item>
      <title>decimals - smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimals-smartforms/m-p/1475546#M223023</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 statement: &lt;/P&gt;&lt;P&gt;gs_unitprice = grkwert / &amp;lt;fs&amp;gt;-kwmeng.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result: gs_unitprice = 2,40708&lt;/P&gt;&lt;P&gt;gs_unitprice is defined as CURR field, 13 long, 5 decimals&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, we want to only print the number with 4 decimals WITHOUT rouding the number.&lt;/P&gt;&lt;P&gt;So now my smartform prints: 2,4071  but they don't want this.&lt;/P&gt;&lt;P&gt;They want that my smartform prints 2,4070.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried a lot of things, like making a type of field with 13 long, 4 decimals and move my field to that, but with the move it also rounds it up to 71 ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2006 09:58:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/decimals-smartforms/m-p/1475546#M223023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-17T09:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: decimals - smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimals-smartforms/m-p/1475547#M223024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;define a variable for 13 with decimals 4 and use the ciel function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lnew = ciel( lold ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2006 10:02:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/decimals-smartforms/m-p/1475547#M223024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-17T10:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: decimals - smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimals-smartforms/m-p/1475548#M223025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the function ROUND with input = gs_unitprice&lt;/P&gt;&lt;P&gt;an decimals as 4.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'ROUND'&lt;/P&gt;&lt;P&gt;           EXPORTING&lt;/P&gt;&lt;P&gt;                DECIMALS      = '4'&lt;/P&gt;&lt;P&gt;                INPUT         = gs_unitprice&lt;/P&gt;&lt;P&gt;           IMPORTING&lt;/P&gt;&lt;P&gt;                OUTPUT        = gs_unitprice&lt;/P&gt;&lt;P&gt;           EXCEPTIONS&lt;/P&gt;&lt;P&gt;                INPUT_INVALID = 1&lt;/P&gt;&lt;P&gt;                OVERFLOW      = 2&lt;/P&gt;&lt;P&gt;                TYPE_INVALID  = 3&lt;/P&gt;&lt;P&gt;                OTHERS        = 4.&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;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2006 10:04:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/decimals-smartforms/m-p/1475548#M223025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-17T10:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: decimals - smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimals-smartforms/m-p/1475549#M223026</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;how about if you do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split gs_unitprice at ',' into myinteger mydecimals.&lt;/P&gt;&lt;P&gt;mydecimals = mydecimals+0(4)&lt;/P&gt;&lt;P&gt;concatenate myinteger ',' mydecimals into gs_unitprice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With concatenate perhaps you need a field of type C or String.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2006 10:05:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/decimals-smartforms/m-p/1475549#M223026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-17T10:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: decimals - smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimals-smartforms/m-p/1475550#M223027</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 thim\nk the simplest would be to take the value in the character format. Split the character at the '.'. Take the 4 characters of the split portion and concatenate it with the first half.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the syntax for splitting is given in above reply. U can refer that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ankit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2006 10:15:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/decimals-smartforms/m-p/1475550#M223027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-17T10:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: decimals - smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/decimals-smartforms/m-p/1475551#M223028</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;Thanks a lot for your reply!&lt;/P&gt;&lt;P&gt;It works by splitting the stuff!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2006 12:49:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/decimals-smartforms/m-p/1475551#M223028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-17T12:49:13Z</dc:date>
    </item>
  </channel>
</rss>

