<?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: Multiplication result incorrect in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiplication-result-incorrect/m-p/2200161#M470000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Seshagiri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Apr 2007 10:11:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-24T10:11:57Z</dc:date>
    <item>
      <title>Multiplication result incorrect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiplication-result-incorrect/m-p/2200158#M469997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Following code is not giving correct result in user exit:&lt;/P&gt;&lt;P&gt;CONSTANTS:&lt;/P&gt;&lt;P&gt;         LC_DCM      TYPE RV45A-BTGEW VALUE '5000.000',&lt;/P&gt;&lt;P&gt;         LC_FACTOR TYPE RV45A-BTGEW VALUE '0.970'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: LV_DCM_CAPCTY TYPE RV45A-BTGEW.&lt;/P&gt;&lt;P&gt;CLEAR LV_DCM_CAPCTY.&lt;/P&gt;&lt;P&gt;         LV_DCM_CAPCTY = LC_DCM * LC_FACTOR.&lt;/P&gt;&lt;P&gt;Result is coming as '4850000.000' in place of 4850.000.&lt;/P&gt;&lt;P&gt;(Whereas the same code when placed in another custom test program ,is giving correct result as 4850.000).&lt;/P&gt;&lt;P&gt;Can any one help me,where might be the mistake in my user exit?&lt;/P&gt;&lt;P&gt;Code in my user exit is as follows:&lt;/P&gt;&lt;P&gt;*********************************************************************************&lt;/P&gt;&lt;P&gt;********************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Constants for difrent load carriers&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CONSTANTS:&lt;/P&gt;&lt;P&gt;        LC_DCM TYPE RV45A-BTGEW VALUE '5000.000',&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;        LC_DCM TYPE RV45A-BTGEW VALUE '10.000',&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        LC_TRUCK TYPE RV45A-BTGEW VALUE '8000.000',&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        LC_TRAILER TYPE RV45A-BTGEW VALUE '10000.000',&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         LC_FACTOR TYPE RV45A-BTGEW VALUE '0.970'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****DATA: LV_DCM_CAPCTY TYPE RV45A-BTGEW,&lt;/P&gt;&lt;P&gt;DATA: LV_DCM_CAPCTY TYPE P DECIMALS 3.&lt;/P&gt;&lt;P&gt;CLEAR:LV_DCM_CAPCTY.&lt;/P&gt;&lt;P&gt;         LV_DCM_CAPCTY = LC_DCM * LC_FACTOR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Field symbols&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   FIELD-SYMBOLS: &amp;lt;FS1&amp;gt;,              "Sales org.&lt;/P&gt;&lt;P&gt;                  &amp;lt;FS2&amp;gt;,              "Total weight&lt;/P&gt;&lt;P&gt;                  &amp;lt;FS3&amp;gt;,              "Weight unit&lt;/P&gt;&lt;P&gt;                  &amp;lt;FS4&amp;gt;.              "Volume unit&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;variables to hold values from Sales order screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   DATA: LV_VKORG TYPE VBAK-VKORG,&lt;/P&gt;&lt;P&gt;         LV_TOT_WEIGHT TYPE RV45A-BTGEW,&lt;/P&gt;&lt;P&gt;         LV_WT_UNIT TYPE RV45A-GEWEI,&lt;/P&gt;&lt;P&gt;         LV_VOL_UNIT TYPE RV45A-VOLEH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Variables to hold field labels of Sales Ord. screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;         LABEL_VKORG(20)            VALUE '(SAPMV45A)VBAK-VKORG',&lt;/P&gt;&lt;P&gt;         LABEL_TOT_WEIGHT(21)       VALUE '(SAPMV45A)RV45A-BTGEW',&lt;/P&gt;&lt;P&gt;         LABEL_WT_UNIT(21)          VALUE '(SAPMV45A)RV45A-GEWEI',&lt;/P&gt;&lt;P&gt;         LABEL_VOL_UNIT(21)         VALUE '(SAPMV45A)RV45A-VOLEH'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         CLEAR :  "&amp;lt;FS1&amp;gt;,              "Sales org.&lt;/P&gt;&lt;P&gt;                  "&amp;lt;FS2&amp;gt;,              "Total weight&lt;/P&gt;&lt;P&gt;                  "&amp;lt;FS3&amp;gt;,              "Weight unit&lt;/P&gt;&lt;P&gt;                  "&amp;lt;FS4&amp;gt;,              "Volume unit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                LV_VKORG,&lt;/P&gt;&lt;P&gt;                LV_TOT_WEIGHT,&lt;/P&gt;&lt;P&gt;                LV_WT_UNIT,&lt;/P&gt;&lt;P&gt;                LV_VOL_UNIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          ASSIGN:    (LABEL_VKORG) TO        &amp;lt;FS1&amp;gt;,&lt;/P&gt;&lt;P&gt;                    (LABEL_TOT_WEIGHT) TO      &amp;lt;FS2&amp;gt;,&lt;/P&gt;&lt;P&gt;                    (LABEL_WT_UNIT) TO          &amp;lt;FS3&amp;gt;,&lt;/P&gt;&lt;P&gt;                    (LABEL_VOL_UNIT) TO         &amp;lt;FS4&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              LV_VKORG = &amp;lt;FS1&amp;gt;.&lt;/P&gt;&lt;P&gt;              LV_TOT_WEIGHT = &amp;lt;FS2&amp;gt;.&lt;/P&gt;&lt;P&gt;              LV_WT_UNIT = &amp;lt;FS3&amp;gt;.&lt;/P&gt;&lt;P&gt;              LV_VOL_UNIT = &amp;lt;FS4&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;        LV_DCM_CAPCTY = LC_DCM * LC_FACTOR.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Checks for total weight against carrier capacity&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         CASE  LV_VKORG.&lt;/P&gt;&lt;P&gt;*---&amp;gt;When DCM&lt;/P&gt;&lt;P&gt;           WHEN  '1101'.&lt;/P&gt;&lt;P&gt;              IF  LV_TOT_WEIGHT   LT   LV_DCM_CAPCTY  .&lt;/P&gt;&lt;P&gt;                MESSAGE E899 WITH 'Document not saved,since'&lt;/P&gt;&lt;P&gt;                               ' full load is not reached'.&lt;/P&gt;&lt;P&gt;              ENDIF.&lt;/P&gt;&lt;P&gt;           WHEN OTHERS.&lt;/P&gt;&lt;P&gt;         ENDCASE.&lt;/P&gt;&lt;P&gt;********************************************************************&lt;/P&gt;&lt;P&gt;********************************************************************&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Seshagiri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 09:46:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiplication-result-incorrect/m-p/2200158#M469997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T09:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplication result incorrect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiplication-result-incorrect/m-p/2200159#M469998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The reason for this might be that in one program the Fixed Point arithmetic Checkbox in the attributes section is checked and in the other it is unchecked.&lt;/P&gt;&lt;P&gt;Hence the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 09:50:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiplication-result-incorrect/m-p/2200159#M469998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T09:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplication result incorrect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiplication-result-incorrect/m-p/2200160#M469999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it depends upon no.of decimal points of that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this case u have to do like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a = ( b * c ) / 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;but make use this logic works in all situations&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Prabhu Peram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 09:55:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiplication-result-incorrect/m-p/2200160#M469999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T09:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplication result incorrect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiplication-result-incorrect/m-p/2200161#M470000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Seshagiri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 10:11:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiplication-result-incorrect/m-p/2200161#M470000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T10:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplication result incorrect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiplication-result-incorrect/m-p/2200162#M470001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;Got the correct result,with your solution.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Seshagiri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2007 10:12:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiplication-result-incorrect/m-p/2200162#M470001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-24T10:12:38Z</dc:date>
    </item>
  </channel>
</rss>

