<?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 Weight Conversion in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/weight-conversion/m-p/2210603#M473420</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 am developing a report to display the weight of delivery items in KG.&lt;/P&gt;&lt;P&gt;I have Gross Weight and Net Weight, which may or may not be in KG in the table.&lt;/P&gt;&lt;P&gt;But I need to display the output in terms of KG.&lt;/P&gt;&lt;P&gt;Please help me on how to go with it.&lt;/P&gt;&lt;P&gt;There is a function module MATERIAL_UNIT_CONVERSION but I dont know what exact parameters to pass.&lt;/P&gt;&lt;P&gt;Please help me with an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Apr 2007 05:11:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-23T05:11:35Z</dc:date>
    <item>
      <title>Weight Conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/weight-conversion/m-p/2210603#M473420</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 am developing a report to display the weight of delivery items in KG.&lt;/P&gt;&lt;P&gt;I have Gross Weight and Net Weight, which may or may not be in KG in the table.&lt;/P&gt;&lt;P&gt;But I need to display the output in terms of KG.&lt;/P&gt;&lt;P&gt;Please help me on how to go with it.&lt;/P&gt;&lt;P&gt;There is a function module MATERIAL_UNIT_CONVERSION but I dont know what exact parameters to pass.&lt;/P&gt;&lt;P&gt;Please help me with an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2007 05:11:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/weight-conversion/m-p/2210603#M473420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-23T05:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Weight Conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/weight-conversion/m-p/2210604#M473421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use the fun module&lt;/P&gt;&lt;P&gt;UNIT_CONVERSION_SIMPLE or&lt;/P&gt;&lt;P&gt;MD_CONVERT_MATERIAL_UNIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the sample code:&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;INPUT = p_act_in&lt;/P&gt;&lt;P&gt;UNIT_IN = p_uom_in&lt;/P&gt;&lt;P&gt;UNIT_OUT = w_unit_out&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;OUTPUT = w_act_out&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;CONVERSION_NOT_FOUND = 1&lt;/P&gt;&lt;P&gt;DIVISION_BY_ZERO = 2&lt;/P&gt;&lt;P&gt;INPUT_INVALID = 3&lt;/P&gt;&lt;P&gt;OUTPUT_INVALID = 4&lt;/P&gt;&lt;P&gt;OVERFLOW = 5&lt;/P&gt;&lt;P&gt;TYPE_INVALID = 6&lt;/P&gt;&lt;P&gt;UNITS_MISSING = 7&lt;/P&gt;&lt;P&gt;UNIT_IN_NOT_FOUND = 8&lt;/P&gt;&lt;P&gt;UNIT_OUT_NOT_FOUND = 9&lt;/P&gt;&lt;P&gt;OTHERS = 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points  if useful&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2007 05:14:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/weight-conversion/m-p/2210604#M473421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-23T05:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Weight Conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/weight-conversion/m-p/2210605#M473422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MD_CONVERT_MATERIAL_UNIT&lt;/P&gt;&lt;P&gt;MATERIAL_UNIT_CONVERSION&lt;/P&gt;&lt;P&gt;MC_UNIT_CONVERSION&lt;/P&gt;&lt;P&gt;UNIT_CONVERSION_SIMPLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using MATERIAL_UNIT_CONVERSION is as shown&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report zrich_0002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: input type p decimals 3 value '10.000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of xtmp,&lt;/P&gt;&lt;P&gt;menge type mseg-menge,&lt;/P&gt;&lt;P&gt;meins type mseg-meins,&lt;/P&gt;&lt;P&gt;end of xtmp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: imara like mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get base UOM&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;select single * from mara into imara&lt;/P&gt;&lt;P&gt;where matnr = '000000000040006541'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The uoms must be of the internal format, check against T006a&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;do conversion&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;call function 'MATERIAL_UNIT_CONVERSION'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;input = input&lt;/P&gt;&lt;P&gt;matnr = imara-matnr&lt;/P&gt;&lt;P&gt;meins = 'GLL' " Must be internal&lt;/P&gt;&lt;P&gt;meinh = 'OZA' " Must be internal&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;meins = xtmp-meins&lt;/P&gt;&lt;P&gt;output = xtmp-menge&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;conversion_not_found = 01&lt;/P&gt;&lt;P&gt;input_invalid = 02&lt;/P&gt;&lt;P&gt;material_not_found = 03&lt;/P&gt;&lt;P&gt;meinh_not_found = 04&lt;/P&gt;&lt;P&gt;meins_missing = 05&lt;/P&gt;&lt;P&gt;no_meinh = 06&lt;/P&gt;&lt;P&gt;output_invalid = 07&lt;/P&gt;&lt;P&gt;overflow = 08.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check sy-subrc = 0.&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;P&gt;&lt;/P&gt;&lt;P&gt;navjot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2007 05:15:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/weight-conversion/m-p/2210605#M473422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-23T05:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Weight Conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/weight-conversion/m-p/2210606#M473423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anitha,&lt;/P&gt;&lt;P&gt;First of all, check whether that weight is stored in Grs or in KGs, if it is in KG, u can proceed, if it is in Grs, convert it into Kg and procced with further calculations.&lt;/P&gt;&lt;P&gt;I think this hint vl help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sujatha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2007 05:15:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/weight-conversion/m-p/2210606#M473423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-23T05:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Weight Conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/weight-conversion/m-p/2210607#M473424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;   Yes .MATERIAL_UNIT_CONVERSION can convert the Matrial Unit into desired conversions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To know how to use this properly or what's the parameters have to pass &lt;/P&gt;&lt;P&gt;try to see the Where Used List of the Function Module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can know in better way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sreeram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2007 05:17:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/weight-conversion/m-p/2210607#M473424</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2007-04-23T05:17:46Z</dc:date>
    </item>
  </channel>
</rss>

