<?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: CONVERTING UOM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-uom/m-p/2717867#M630449</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;Use fm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MATERIAL_UNIT_CONVERSION&lt;/P&gt;&lt;P&gt;MD_CONVERT_MATERIAL_UNIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Aug 2007 12:40:03 GMT</pubDate>
    <dc:creator>former_member194669</dc:creator>
    <dc:date>2007-08-27T12:40:03Z</dc:date>
    <item>
      <title>CONVERTING UOM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-uom/m-p/2717865#M630447</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;Is there any function module for converting the uom .. Lets say i want to convert a value in cm to  mt .   But unit of measures can change . It could also be gm to kg .&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>Mon, 27 Aug 2007 12:36:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-uom/m-p/2717865#M630447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-27T12:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERTING UOM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-uom/m-p/2717866#M630448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;make use of table MARM.&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;Peram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2007 12:38:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-uom/m-p/2717866#M630448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-27T12:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERTING UOM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-uom/m-p/2717867#M630449</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;Use fm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MATERIAL_UNIT_CONVERSION&lt;/P&gt;&lt;P&gt;MD_CONVERT_MATERIAL_UNIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2007 12:40:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-uom/m-p/2717867#M630449</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-08-27T12:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERTING UOM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-uom/m-p/2717868#M630450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;chk this


DATA: VALUE_IN  TYPE F,
      VALUE_OUT TYPE F,
      UNIT_IN   LIKE T006-MSEHI,
      UNIT_OUT  LIKE T006-MSEHI.

...

CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'
     EXPORTING
            INPUT                = VALUE_IN
           ROUND_SIGN           = 'X'
           UNIT_IN              = UNIT_IN
           UNIT_OUT             = UNIT_OUT
     IMPORTING
           OUTPUT               = VALUE_OUT
     EXCEPTIONS
          CONVERSION_NOT_FOUND = 01
          DIVISION_BY_ZERO     = 02
          INPUT_INVALID        = 03
           OVERFLOW             = 04
          OUTPUT_INVALID       = 05
          UNITS_MISSING        = 06
          UNIT_IN_NOT_FOUND    = 07
          UNIT_OUT_NOT_FOUND   = 08.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Measurement unit conversion by table T006, with rounding&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;Functionality&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This FM converts values from one measurement unit to another and rounds the result to the number of decimal places maintained in the measurement unit table, if necessary. The rounding is up ('+'), down ('-'), commercial ('X') or no rounding (SPACE), depending on the parameter ROUND_SIGN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can also be used for rounding according to the measurement unit table only. In this case UNIT_IN = UNIT_OUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Conversion requires that both units are maintained in the measurement unit table and have the same dimension and are not both without dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rounding is also possible for dimensionless units.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2007 12:42:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-uom/m-p/2717868#M630450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-27T12:42:44Z</dc:date>
    </item>
  </channel>
</rss>

