<?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 calculation problem in Pricing Routine in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-problem-in-pricing-routine/m-p/4535369#M1071723</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello every one,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on pricing routine.&lt;/P&gt;&lt;P&gt;I am doing some arthematic calculations.&lt;/P&gt;&lt;P&gt;It is giving some odd reasults and i am unable to resolve it.&lt;/P&gt;&lt;P&gt;I guess it is problem with conversion and type miss match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : p1(16) decimals 5,&lt;/P&gt;&lt;P&gt;         p2(16) decimals 5,&lt;/P&gt;&lt;P&gt;         result type komv-kwert,&lt;/P&gt;&lt;P&gt;         rate type komv-kbetr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; p1 = 70.00000.&lt;/P&gt;&lt;P&gt;p2 = 70.00000.&lt;/P&gt;&lt;P&gt;rate = 100.00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result =  rate * ( p1 / p2 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am expecting result to be 100.00.&lt;/P&gt;&lt;P&gt;But result is not 100.00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is giving some odd figure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one suggest me to  resolve this issue.. and how to convert data types to overcome this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ragards&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 Sep 2008 06:50:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-21T06:50:13Z</dc:date>
    <item>
      <title>calculation problem in Pricing Routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-problem-in-pricing-routine/m-p/4535369#M1071723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello every one,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on pricing routine.&lt;/P&gt;&lt;P&gt;I am doing some arthematic calculations.&lt;/P&gt;&lt;P&gt;It is giving some odd reasults and i am unable to resolve it.&lt;/P&gt;&lt;P&gt;I guess it is problem with conversion and type miss match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : p1(16) decimals 5,&lt;/P&gt;&lt;P&gt;         p2(16) decimals 5,&lt;/P&gt;&lt;P&gt;         result type komv-kwert,&lt;/P&gt;&lt;P&gt;         rate type komv-kbetr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; p1 = 70.00000.&lt;/P&gt;&lt;P&gt;p2 = 70.00000.&lt;/P&gt;&lt;P&gt;rate = 100.00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result =  rate * ( p1 / p2 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am expecting result to be 100.00.&lt;/P&gt;&lt;P&gt;But result is not 100.00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is giving some odd figure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one suggest me to  resolve this issue.. and how to convert data types to overcome this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ragards&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Sep 2008 06:50:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-problem-in-pricing-routine/m-p/4535369#M1071723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-21T06:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: calculation problem in Pricing Routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-problem-in-pricing-routine/m-p/4535370#M1071724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : p1(16) type p decimals 5,&lt;/P&gt;&lt;P&gt;p2(16) type p decimals 5,&lt;/P&gt;&lt;P&gt;result type komv-kwert,&lt;/P&gt;&lt;P&gt;rate type komv-kbetr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p1 = '70.00000'.&lt;/P&gt;&lt;P&gt;p2 = '70.00000'.&lt;/P&gt;&lt;P&gt;rate = '100.00'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result = rate * ( p1 / p2 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i m getting 100.00 as output for the above code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check whether Fixed Point arithmetic checkbox is checked in the attributes of the program in se38 , if it is not checked you will get a diff value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Sep 2008 07:30:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calculation-problem-in-pricing-routine/m-p/4535370#M1071724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-21T07:30:40Z</dc:date>
    </item>
  </channel>
</rss>

