<?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: Pricing Routine-Calculation gives Wrong value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pricing-routine-calculation-gives-wrong-value/m-p/8078332#M1614261</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;330.5203..this should be the result of your calculation. &lt;/P&gt;&lt;P&gt;What is the value that you are getting in the pricing routine? Have you checked in debug mode?&lt;/P&gt;&lt;P&gt;Division is not working properly? or this "     xkomv-kbetr =   l_mrp1_temp1 " statemen?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Aug 2011 09:41:35 GMT</pubDate>
    <dc:creator>Shahid</dc:creator>
    <dc:date>2011-08-07T09:41:35Z</dc:date>
    <item>
      <title>Pricing Routine-Calculation gives Wrong value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pricing-routine-calculation-gives-wrong-value/m-p/8078331#M1614260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a simal requirements, just i want to calculate my basic value divided by tax amount. So i have incorporated the the logic in to a pricing routine, When i check the output its gave a wrong value. So i debuged the program i came to know while doing division its not working properly. I made the same code ( for testing ) in a normal z program its giving the correct value. How to manage this issue?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    data : l_mrp1_temp1 type  p decimals 4.
    data : i_value4 TYPE  p decimals 4 value '3.7600'.
    data : l_tax1 type p DECIMALS 4 VALUE '1.1376'.
    l_mrp1_temp1 = i_value4 / c_tax1 * 100.
    
     xkomv-kbetr =   l_mrp1_temp1 . &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reg,&lt;/P&gt;&lt;P&gt;Mohana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Aug 2011 05:57:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pricing-routine-calculation-gives-wrong-value/m-p/8078331#M1614260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-07T05:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Pricing Routine-Calculation gives Wrong value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pricing-routine-calculation-gives-wrong-value/m-p/8078332#M1614261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;330.5203..this should be the result of your calculation. &lt;/P&gt;&lt;P&gt;What is the value that you are getting in the pricing routine? Have you checked in debug mode?&lt;/P&gt;&lt;P&gt;Division is not working properly? or this "     xkomv-kbetr =   l_mrp1_temp1 " statemen?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Aug 2011 09:41:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pricing-routine-calculation-gives-wrong-value/m-p/8078332#M1614261</guid>
      <dc:creator>Shahid</dc:creator>
      <dc:date>2011-08-07T09:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Pricing Routine-Calculation gives Wrong value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pricing-routine-calculation-gives-wrong-value/m-p/8078333#M1614262</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;Perhaps the problem is the flag "Fixed point aritmhetic" is set in the attribute of your z-program but not in the main of the pricing routine (probably SAPLV61A)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's so, try to run your modification in a your function module where main program has that flag &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Aug 2011 09:59:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pricing-routine-calculation-gives-wrong-value/m-p/8078333#M1614262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-07T09:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Pricing Routine-Calculation gives Wrong value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pricing-routine-calculation-gives-wrong-value/m-p/8078334#M1614263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thaz true, i experienced those sort of calculation issues when "Fixed point aritmhetic" is not checked in the attributes of classes. I wasnt aware that it might happen in the reports too. thz was the reason i was asking for the result of the calculation you have got&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Aug 2011 14:49:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pricing-routine-calculation-gives-wrong-value/m-p/8078334#M1614263</guid>
      <dc:creator>Shahid</dc:creator>
      <dc:date>2011-08-07T14:49:41Z</dc:date>
    </item>
  </channel>
</rss>

