<?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: Problem in VOFM routine in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-vofm-routine/m-p/9556329#M1753594</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please make sure that wa_tcurr&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;ukurs contains value. VOFM&amp;nbsp; routines dont take fixed point arithmetic into account( it might be possible that because of this the result is so small that its value is zero), so instead of carrying out multiplication or division in routine, create a function module and pass the values of variables to FM and do the division in FM and retrieve final result by calling this function module in routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jul 2013 09:50:15 GMT</pubDate>
    <dc:creator>former_member188827</dc:creator>
    <dc:date>2013-07-04T09:50:15Z</dc:date>
    <item>
      <title>Problem in VOFM routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-vofm-routine/m-p/9556328#M1753593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a Routine in VOFM. While I am fetching currency values from TCURR, if it is negative Ex : UKURS = 6.25354- I need to divide by 1. &lt;/P&gt;&lt;P&gt;(1 / 6.25354).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem is division is not taking place. lv_ukurs1 contains no value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data ; lv_ukurs type tcurr-ukurs,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_ukurs1 type tcurr-ukurs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;if wa_tcurr&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;ukurs &amp;lt; &lt;SPAN class="L0S32"&gt;0&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;lv_ukurs &lt;SPAN class="L0S55"&gt;= wa_tcurr&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;ukurs *&amp;nbsp; -1. " to change the -ve value to +ve value multipied by -1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;lv_ukurs1&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;SPAN class="L0S32"&gt;1 &lt;/SPAN&gt;/ lv_ukurs&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN class="L0S55"&gt;endif.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN class="L0S55"&gt;Thanks in Advance.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN class="L0S55"&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN class="L0S55"&gt;Karthik&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 09:27:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-vofm-routine/m-p/9556328#M1753593</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-04T09:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in VOFM routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-vofm-routine/m-p/9556329#M1753594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please make sure that wa_tcurr&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;ukurs contains value. VOFM&amp;nbsp; routines dont take fixed point arithmetic into account( it might be possible that because of this the result is so small that its value is zero), so instead of carrying out multiplication or division in routine, create a function module and pass the values of variables to FM and do the division in FM and retrieve final result by calling this function module in routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 09:50:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-vofm-routine/m-p/9556329#M1753594</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2013-07-04T09:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in VOFM routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-vofm-routine/m-p/9556330#M1753595</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;Thanks for your comments. its working fine as per your suggestion.&lt;/P&gt;&lt;P&gt;But I dont know why this division logic is not working in VOFM T code. But the same logic is working in SE 38 program. Its really surprised me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 07:12:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-vofm-routine/m-p/9556330#M1753595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-08T07:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in VOFM routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-vofm-routine/m-p/9556331#M1753596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is because VOFM routines dont take fixed point arithmetic into account whereas in SE38, if you check attributes, fixed point arithmetic check box is marked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 07:47:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-vofm-routine/m-p/9556331#M1753596</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2013-07-08T07:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in VOFM routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-vofm-routine/m-p/9556332#M1753597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dude.. I got it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 08:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-vofm-routine/m-p/9556332#M1753597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-08T08:33:30Z</dc:date>
    </item>
  </channel>
</rss>

