Skip to Content
author's profile photo Former Member
Former Member

Reg : Unit Conversion FM

hi,

what is the FM to Convert from one UOM to Another UOM.

ex :

input uom : LV

output uom: KG

if i give LV as input then in KG it will give 2.2046

Regards

Ashok Parupalli.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 31, 2006 at 03:49 PM

    Hi,

    Use these FMs..

    MATERIAL_UNIT_CONVERSION

    MD_CONVERT_MATERIAL_UNIT

    Thanks,

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 31, 2006 at 03:50 PM

    Hi,

    Try using fm <b>UNIT_CONVERSION_SIMPLE

    MATERIAL_UNIT_CONVERSION</b>

    Regards,

    Sailaja.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 31, 2006 at 03:51 PM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 31, 2006 at 03:59 PM

    Hi Ashok,

    1) Use Function module <b>UNIT_CONVERSION</b> to get unit conversion from one unit to other.

    CALL FUNCTION <b>'UNIT_CONVERSION'</b>

    EXPORTING

    meinh = 'LV' "UNIT FROM

    meins = 'KG' "UNIT TO

    mgame = FROM_VALUE "VALUE OF UNIT_FROM

    IMPORTING

    o_mglme = TO_VALUE. "VALUE OF UNIT_TO

    2) Use Function module <b>UNIT_CONVERSION_SIMPLE</b> to get unit conversions.

    CALL FUNCTION <b>'UNIT_CONVERSION_SIMPLE'</b>

    EXPORTING

    input = UNIT_FROM_VALUE

    unit_in = 'LV' "UNIT_FROM

    unit_out = 'KG' "UNIT_TO

    IMPORTING

    output = UNIT_IN_VALUE

    EXCEPTIONS

    conversion_not_found = 1

    division_by_zero = 2

    input_invalid = 3

    output_invalid = 4

    overflow = 5

    type_invalid = 6

    units_missing = 7

    unit_in_not_found = 8

    unit_out_not_found = 9

    OTHERS = 10.

    Thanks,

    Vinay

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.