05-08-2007 6:25 AM
The whole process should be done in the Portugues login language.
For the login language PT( Portuguese). In table MARA, if i choose the menu settings-> use parameters-> and chek this field (conversion field exit) . Then for any material if i check the unit of measure (MEINS), is display of all the material its shows differently, but if i select one material and see all the fields of that material, the MEINS field is changed. For example when all the materials are show the MEINS is ST. but when i select one material and display it . it shows PEC in portugues language.
I want to know the function moulde used to convert the unit of measure
05-08-2007 6:35 AM
HI,
There exits the conversion routine for that particular field in its domain level..
copy that conversion routine and search for that in SE37 your conversion routine
you will find the function module this gives you the internal and external formats
Fms are listed below for MEINS
CONVERSION_EXIT_CUNIT_INPUT Conversion exit for commercial (3-char) measurement unit INPUT
CONVERSION_EXIT_CUNIT_OUTPUT Conversion exit for commercial (3-char) measurement unit OUTPUT
For convertiung quantity into base unit of measure you can do this way
CALL FUNCTION 'ME_CONVERSION_MEINS' "#EC *
EXPORTING
i_matnr = "give material number"
i_mein1 = "Unit of measurement "
i_meins = "base unit of measure
i_menge = "quantity
IMPORTING
menge = "quantioty in your required measurement
EXCEPTIONS
error_in_conversion = 1
no_success = 2
OTHERS = 3.
HOpe this helps you
Reward if useful
regards,
nazeer
Message was edited by:
nazeer shaik
05-08-2007 7:09 AM
MATERIAL_CONVERT_QUANTITY or MATERIAL_UNIT_CONVERSION,
Award points if useful
05-08-2007 7:13 AM
Hi,
check this fm --> CF_UT_UNIT_CONVERSION
For materials ->
MATERIAL_CONVERT_QUANTITY or MATERIAL_UNIT_CONVERSION.
UNIT_CONVERSION_SIMPLE convert weights from one UOM to another.
Regards
Sudheer