<?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 Conversion for units in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-for-units/m-p/1179166#M125233</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;Is there any generalised function module which would convert one unit values to others....i have tried UNIT_CONVERSION_SIMPLE...but wen testing it is showing invalid_input exception...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly help!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 05 Feb 2006 09:35:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-05T09:35:45Z</dc:date>
    <item>
      <title>Conversion for units</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-for-units/m-p/1179166#M125233</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;Is there any generalised function module which would convert one unit values to others....i have tried UNIT_CONVERSION_SIMPLE...but wen testing it is showing invalid_input exception...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly help!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Feb 2006 09:35:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-for-units/m-p/1179166#M125233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-05T09:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion for units</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-for-units/m-p/1179167#M125234</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;Write a little program to test that function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you test it by SE37, fm can't understand the input is numeric field, but it's a char field for it.&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, 05 Feb 2006 09:43:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-for-units/m-p/1179167#M125234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-05T09:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion for units</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-for-units/m-p/1179168#M125235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Srinivas&lt;/P&gt;&lt;P&gt;   There are Several Function Module...&lt;/P&gt;&lt;P&gt;Check out there functionality as per your requirement...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·       &lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;CONVERSION_FACTOR_GET&lt;/P&gt;&lt;BR /&gt;With this function module, you determine the conversion factors for the conversion of a measurement unit into another using the measurement units table. This does not apply to measurement units within a dimension.&lt;BR /&gt;The module also returns the number of decimal places to which the values in the unit UNIT_OUT are to be rounded. This also applies to units with no dimension.&lt;BR /&gt;The following formula applies for the conversion:&lt;BR /&gt;&lt;BR /&gt;(value in the unit UNIT_OUT) = (value in the unit UNIT_IN) * numerator/denominator + additive constant.&lt;BR /&gt;&lt;BR /&gt;· &lt;B&gt;&lt;P&gt;ROUND&lt;/P&gt;&lt;/B&gt;&lt;BR /&gt;With this function module, you round a value to the specified number of decimal places. You can choose between three rounding types:&lt;BR /&gt;&lt;BR /&gt;- Rounding up&lt;BR /&gt;&lt;BR /&gt;- Rounding down&lt;BR /&gt;&lt;BR /&gt;- Commercial rounding&lt;BR /&gt;&lt;BR /&gt;The rounding is performed internally with the same field type as that of the field passed.&lt;BR /&gt;Rounding errors can thus occur when rounding a FLOAT value. If you want a high degree of accuracy, the passed field should have the type P.&lt;BR /&gt;&lt;BR /&gt;· &lt;B&gt;&lt;P&gt;SI_UNIT_GET&lt;/P&gt;&lt;/B&gt;&lt;BR /&gt;You pass either a unit or a dimension to this function module to get the SI unit. If you pass both a unit and a dimension, the SI unit for the dimension is returned.&lt;BR /&gt;&lt;BR /&gt;· &lt;B&gt;&lt;P&gt;UNIT_CONVERSION_WITH_FACTOR&lt;/P&gt;&lt;/B&gt;&lt;BR /&gt;With this function module, you convert a value according to the factor passed. &lt;BR /&gt;&lt;BR /&gt;· &lt;B&gt;&lt;P&gt;UNIT_CORRESPONDENCE_CHECK&lt;/P&gt;&lt;/B&gt;&lt;BR /&gt;With this function module, you can check whether the two units passed belong to the same dimension.&lt;BR /&gt;&lt;BR /&gt;· &lt;B&gt;&lt;P&gt;UNIT_GET&lt;/P&gt;&lt;/B&gt;&lt;BR /&gt;With this function module, you get the appropriate measurement unit for the specified dimension and conversion factor.&lt;BR /&gt;&lt;BR /&gt;· &lt;B&gt;&lt;P&gt;UNIT_CONVERSION_SIMPLE&lt;/P&gt;&lt;/B&gt;&lt;BR /&gt;With this function module, you convert a value using the measurement unit table, and round it, if appropriate.&lt;BR /&gt;You can also perform the rounding without conversion.&lt;BR /&gt;Conversion with this function module requires that the measurement unit table is maintained for both units, and that both units belong to the same dimension, i.e. also that they have dimensions.&lt;BR /&gt;The rounding can, however, also be performed for units which have no dimension.&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;P&gt;CONVERT_TO_LOCAL_CURRENCY&lt;/P&gt;&lt;/B&gt; - Conversion of currency&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;P&gt;HRCM_AMOUNT_TO_STRING_CONVERT&lt;/P&gt;&lt;/B&gt; - Convert amount to string&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;P&gt;HRCM_STRING_TO_AMOUNT_CONVERT&lt;/P&gt;&lt;/B&gt; - Convert amount from string&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;P&gt;CLOI_PUT_SIGN_IN_FRONT&lt;/P&gt;&lt;/B&gt; Move the negative sign from the left hand side of a number, to the right hand side of the number. Note that The result will be left justified (like all &lt;BR /&gt;character fields), not right justifed as numbers normally are. &lt;BR /&gt; &lt;B&gt;&lt;P&gt;&lt;BR /&gt;CONVERT_TO_FOREIGN_CURRENCY&lt;/P&gt;&lt;/B&gt; Convert local currency to foreign currency. &lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;P&gt;CONVERT_TO_LOCAL_CURRENCY&lt;/P&gt;&lt;/B&gt; Convert from foreign currency to local currency &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do Reward Points to replies if found useful...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers:)&lt;/P&gt;&lt;P&gt;Mithlesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Feb 2006 10:58:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/conversion-for-units/m-p/1179168#M125235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-05T10:58:37Z</dc:date>
    </item>
  </channel>
</rss>

