<?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: Form Routines Calculation problems. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/form-routines-calculation-problems/m-p/5742509#M1301851</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We did in a wrong way, the requirement changed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Oct 2009 04:02:29 GMT</pubDate>
    <dc:creator>Adi_Bathineni</dc:creator>
    <dc:date>2009-10-07T04:02:29Z</dc:date>
    <item>
      <title>Form Routines Calculation problems.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/form-routines-calculation-problems/m-p/5742506#M1301848</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;we have written one VOFM routine for the Calculation of Profit Margin and Gross Margin in the Sales Order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Problem is we need to show the value in the Sales Order as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example if the Profit Margin % is 0.27, then i need to display it as something 27.xx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above scenario is working fine. we are multiplying the value with 100 and assigning to a character filed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the character field we are passing to XKWERT and the value is coming perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the Problem is when the Profit Margin is 0.09%, when we multiply with 100, we are getting the value as 9.xx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when we assign it to XKWERT field from the character field , it is converting 9.xx as 9x.xx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please tell me how to resolve the above problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the routines we are unable to perform arithmetic operations between Currency values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2009 17:47:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/form-routines-calculation-problems/m-p/5742506#M1301848</guid>
      <dc:creator>Adi_Bathineni</dc:creator>
      <dc:date>2009-06-04T17:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Form Routines Calculation problems.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/form-routines-calculation-problems/m-p/5742507#M1301849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adi , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first thin u need to remember while working with VOFM routines is calculations or % should take place with 1000 not with 100,bcos SAP condition values are at % of 1000 not 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 01:48:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/form-routines-calculation-problems/m-p/5742507#M1301849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-08T01:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Form Routines Calculation problems.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/form-routines-calculation-problems/m-p/5742508#M1301850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the above post is exactly correct.... In a similar scenario I remember using floating variable and FM to convert floating variable to Char..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lv_f type F.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;se37 &amp;gt; &lt;STRONG&gt;float&lt;/STRONG&gt;char*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 02:20:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/form-routines-calculation-problems/m-p/5742508#M1301850</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-06-08T02:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Form Routines Calculation problems.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/form-routines-calculation-problems/m-p/5742509#M1301851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We did in a wrong way, the requirement changed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 04:02:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/form-routines-calculation-problems/m-p/5742509#M1301851</guid>
      <dc:creator>Adi_Bathineni</dc:creator>
      <dc:date>2009-10-07T04:02:29Z</dc:date>
    </item>
  </channel>
</rss>

