<?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: Issue : Variable Decimal Rounding in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-variable-decimal-rounding/m-p/7388221#M1544977</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its because OIJ_ACTQTY is of decimals 3 and cannot accomodate 4 decimals, so it rounds off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data:p_data type OIJ_ACTQTY,
     p_p type p decimals 4,
     p_char type char17.
     p_data = '75468.275'.
     p_p = p_data / 10.   or   p_char = p_data / 10.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Nov 2010 13:36:24 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2010-11-09T13:36:24Z</dc:date>
    <item>
      <title>Issue : Variable Decimal Rounding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-variable-decimal-rounding/m-p/7388219#M1544975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the variable P_DATA with value 75468.275.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P_DATE is of type OIJ_ACTQTY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing an arthematic operation P_DATA = P_DATA / 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the value of P_DATA is becoming 7546.828&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want rounding to happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QUESTION : How can we restrict Rounding ? I want value to be 7546.827.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 12:53:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-variable-decimal-rounding/m-p/7388219#M1544975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-09T12:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Issue : Variable Decimal Rounding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-variable-decimal-rounding/m-p/7388220#M1544976</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;That means you want the result rounded off to default, so I think you need to store the result in a variable with 4 decimals and then move the rounded result in a variable with 3 decimals&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 13:24:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-variable-decimal-rounding/m-p/7388220#M1544976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-09T13:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Issue : Variable Decimal Rounding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-variable-decimal-rounding/m-p/7388221#M1544977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its because OIJ_ACTQTY is of decimals 3 and cannot accomodate 4 decimals, so it rounds off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data:p_data type OIJ_ACTQTY,
     p_p type p decimals 4,
     p_char type char17.
     p_data = '75468.275'.
     p_p = p_data / 10.   or   p_char = p_data / 10.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 13:36:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-variable-decimal-rounding/m-p/7388221#M1544977</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-11-09T13:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Issue : Variable Decimal Rounding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-variable-decimal-rounding/m-p/7388222#M1544978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then move the rounded result in a variable with 3 decimals&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;This will still round it. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A character variable of size 17 will be usefull &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 13:38:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-variable-decimal-rounding/m-p/7388222#M1544978</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-11-09T13:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Issue : Variable Decimal Rounding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-variable-decimal-rounding/m-p/7388223#M1544979</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;Pass your value to HR_ROUND_NUMBER.. If you use rounding type "space" you get your number without any rounding.. 10,556=&amp;gt; 10,55 for example leaving '6' alone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope to help...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 13:41:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-variable-decimal-rounding/m-p/7388223#M1544979</guid>
      <dc:creator>roberto_vacca2</dc:creator>
      <dc:date>2010-11-09T13:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Issue : Variable Decimal Rounding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-variable-decimal-rounding/m-p/7388224#M1544980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...anyway there's also this function module ROUND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;passing SIGN = space, you should gain your result..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 13:43:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-variable-decimal-rounding/m-p/7388224#M1544980</guid>
      <dc:creator>roberto_vacca2</dc:creator>
      <dc:date>2010-11-09T13:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Issue : Variable Decimal Rounding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-variable-decimal-rounding/m-p/7388225#M1544981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess there is a more elegant Version on how to do this, but following will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make yourself a local variable wit decimals 4.&lt;/P&gt;&lt;P&gt;Now do your calculation into the new local variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Slope this local variable to another new variable of type char. Then you can tranfer it back to another char variable using offset.&lt;/P&gt;&lt;P&gt;Now you can transfer it back to your probably type p field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 13:57:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-variable-decimal-rounding/m-p/7388225#M1544981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-09T13:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Issue : Variable Decimal Rounding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-variable-decimal-rounding/m-p/7388226#M1544982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a variable of type f for calculation purpose and also take a variable type p with 3 decimal places.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the variable P_DATA with value 75468.275.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_var1 type f.&lt;/P&gt;&lt;P&gt;p_var2(15) type p decimals 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_var1 = p_data / 10.&lt;/P&gt;&lt;P&gt;Move value of variable p_var1 to p_var2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 14:27:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-variable-decimal-rounding/m-p/7388226#M1544982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-09T14:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Issue : Variable Decimal Rounding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-variable-decimal-rounding/m-p/7388227#M1544983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Question was asked before in forum and i gave sort of the same solution as now:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;gv1 = '75468.275'.
write: / gv1.
gv1 = gv1 * 100.
gv1 = trunc( gv1 ).
gv1 = gv1 / 1000.
write: / gv1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 14:27:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-variable-decimal-rounding/m-p/7388227#M1544983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-09T14:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Issue : Variable Decimal Rounding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-variable-decimal-rounding/m-p/7388228#M1544984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; .... multiplying and truncating did the trick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 14:37:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-variable-decimal-rounding/m-p/7388228#M1544984</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-11-09T14:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Issue : Variable Decimal Rounding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-variable-decimal-rounding/m-p/7388229#M1544985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Thanks &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; .... multiplying and truncating did the trick.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would expect a thanks from Avi.. but hey.. you're welcome!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 15:15:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-variable-decimal-rounding/m-p/7388229#M1544985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-09T15:15:34Z</dc:date>
    </item>
  </channel>
</rss>

