2017 Sep 26 10:50 AM
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?
2017 Sep 26 1:56 PM
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.
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.
2017 Sep 26 11:12 AM
MATERIAL_UNIT_CONVERSION is not a BAPI, it's a classic function module.
2017 Sep 26 11:20 AM
Thanks mate! I edited the title. About the topic, can you advise what to do?
2017 Sep 26 1:56 PM
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.
2017 Sep 27 4:23 AM
Thank you so much! I added the parameter in exporting and it worked as expected. Gracias!!!!
2022 Apr 11 3:35 PM
Now, if only SAP bothered to add your answer to the official documentation of that module...
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |