Skip to Content
0

Alternate UOM to Base UOM conversion using FM

Sep 26, 2017 at 09:50 AM

57

avatar image
Former Member

We are using MATERIAL_UNIT_CONVERSION for conversion. We passed MENGE, MATNR, MEINS and MEINH to the FM.

I have material: MATERIAL1 with KU as Base UOM.

in Alternate UOM (MM03 -> Additional Details -> Unit of Measure) we have the following details:

1CS <=> 10KU

When I enter 1CS, the BAPI will have the following parameter:

INPUT = 1

MATNR = MATERIAL1

MEINS = KU

MEINH = CS

When we check the output, it gives 0.1 as result. We expect a '10' of result. We are wondering how it happened. Can anyone advise what to do?

10 |10000 characters needed characters left characters exceeded

MATERIAL_UNIT_CONVERSION is not a BAPI, it's a classic function module.

0
Former Member
Sandra Rossi

Thanks mate! I edited the title. About the topic, can you advise what to do?

1
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Sandra Rossi Sep 26, 2017 at 12:56 PM
1

MEINS is the base unit of measure.

MEINH is the alternative unit of measure.

By default, it converts INPUT from MEINS to MEINH (KZMEINH = space).

To do the opposite, pass KZMEINH = 'X'.

What you're currently doing is converting 1KU to ?CS, and as you defined 1CS=10KU so it returns 0.1. If you pass KZMEINH='X', then you'll be converting 1CS to ?KU, so it will return 10.

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Thank you so much! I added the parameter in exporting and it worked as expected. Gracias!!!!

0