Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

I want to know the function moulde used to convert the unit of measure

Former Member
0 Kudos

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

3 REPLIES 3

former_member588853
Active Contributor
0 Kudos

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

Former Member
0 Kudos

MATERIAL_CONVERT_QUANTITY or MATERIAL_UNIT_CONVERSION,

Award points if useful

Former Member
0 Kudos

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