<?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: System is giving different result for same calculation in different program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-is-giving-different-result-for-same-calculation-in-different-program/m-p/4670185#M1098496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the reason is, in the main program SAPMV60A for the tcode VF02 the fixed point arithmetic check box is not checked in the attributes. One solution for your problem would be to call a Z* function module in the include program which does the calculations and returns the result. OR you have to divide the result with 10(which is not suggested though)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Oct 2008 05:58:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-23T05:58:25Z</dc:date>
    <item>
      <title>System is giving different result for same calculation in different program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-is-giving-different-result-for-same-calculation-in-different-program/m-p/4670183#M1098494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear,&lt;/P&gt;&lt;P&gt;   i m facing a problem while calculation in routine for billing &lt;/P&gt;&lt;P&gt;(VF02). i am just multiplying two varibles and the system is giving one result  which is a include program  while i m calculating the same with same  data value the system is giving different result in another program.&lt;/P&gt;&lt;P&gt;both have same data type and data value&lt;/P&gt;&lt;P&gt;  the first one is giving 118110 (correct one)&lt;/P&gt;&lt;P&gt;  other program is giving 1181100.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;the calculation is as follows (as example).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: CONST(5) TYPE C VALUE '39.37' .&lt;/P&gt;&lt;P&gt;DATA: W_LENINCH(10) TYPE N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:BEGIN OF TY_ZROLL,&lt;/P&gt;&lt;P&gt;     AREA TYPE ZROLL-AREA,&lt;/P&gt;&lt;P&gt;     ACTUAL_LEN TYPE zpack_list-ACTUAL_LEN,&lt;/P&gt;&lt;P&gt;     VBELN      TYPE ZROLL-VBELN,&lt;/P&gt;&lt;P&gt;END OF TY_ZROLL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IT_ZROLL TYPE TABLE OF TY_ZROLL,&lt;/P&gt;&lt;P&gt;      WA_ZROLL LIKE LINE OF IT_ZROLL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WA_ZROLL-ACTUAL_LEN = '3000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;W_LENINCH =  WA_ZROLL-ACTUAL_LEN * CONST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:W_LENINCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 05:44:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-is-giving-different-result-for-same-calculation-in-different-program/m-p/4670183#M1098494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-23T05:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: System is giving different result for same calculation in different program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-is-giving-different-result-for-same-calculation-in-different-program/m-p/4670184#M1098495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i think u need data type as P...."W_LENINCH(10) TYPE P".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im not sure ,&lt;/P&gt;&lt;P&gt;please check it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank u &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 05:49:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-is-giving-different-result-for-same-calculation-in-different-program/m-p/4670184#M1098495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-23T05:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: System is giving different result for same calculation in different program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-is-giving-different-result-for-same-calculation-in-different-program/m-p/4670185#M1098496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the reason is, in the main program SAPMV60A for the tcode VF02 the fixed point arithmetic check box is not checked in the attributes. One solution for your problem would be to call a Z* function module in the include program which does the calculations and returns the result. OR you have to divide the result with 10(which is not suggested though)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 05:58:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-is-giving-different-result-for-same-calculation-in-different-program/m-p/4670185#M1098496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-23T05:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: System is giving different result for same calculation in different program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-is-giving-different-result-for-same-calculation-in-different-program/m-p/4670186#M1098497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;partially solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2008 12:36:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-is-giving-different-result-for-same-calculation-in-different-program/m-p/4670186#M1098497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-23T12:36:02Z</dc:date>
    </item>
  </channel>
</rss>

