‎2008 May 30 12:37 PM
when i call the function module 'MD_CONVERT_MATERIAL_UNIT' like below:
CALL FUNCTION 'MD_CONVERT_MATERIAL_UNIT'
EXPORTING
i_matnr = it_item-matnr
i_in_me = 'bag'
i_out_me = ''car'
i_menge = 5000
IMPORTING
E_MENGE = v_case
EXCEPTIONS
ERROR_IN_APPLICATION = 1
ERROR = 2
OTHERS = 3
i got the error like:
"There is no conversion factor for material MEDIUSA9X24OZ and unit of measure BAG"
pls tell me the solution...............
‎2008 May 30 12:54 PM
Hi Babu,
This error is because for ur material there is no conversion factors maintained for the units u r passing to the FM.
Go to MM02->Select basic data view for this material->Press Unit of measures push button in tool bar. Now check here whether the units u r passing to FM will not exist. Try to maintain appropriate conversions here n see. Ideally these things will be populated automatically when u create the material based on SPRO settings. Check with ur functional for maore details on this.
Also Declare some variables/Constants of same type as of FM for these parameters(UOMs) and pass them in Capital letters and see. This may also be the point of problem.
Thanks,
Vinod.
Edited by: Vinod Kumar Vemuru on May 30, 2008 5:24 PM
‎2008 May 30 12:49 PM
‎2008 May 30 12:54 PM
Hi Babu,
This error is because for ur material there is no conversion factors maintained for the units u r passing to the FM.
Go to MM02->Select basic data view for this material->Press Unit of measures push button in tool bar. Now check here whether the units u r passing to FM will not exist. Try to maintain appropriate conversions here n see. Ideally these things will be populated automatically when u create the material based on SPRO settings. Check with ur functional for maore details on this.
Also Declare some variables/Constants of same type as of FM for these parameters(UOMs) and pass them in Capital letters and see. This may also be the point of problem.
Thanks,
Vinod.
Edited by: Vinod Kumar Vemuru on May 30, 2008 5:24 PM
‎2008 May 30 1:14 PM
‎2008 May 30 12:56 PM
Hi,
You have to pass the UOM from which you are converting into i_in_me and the UOM into which u have to convert into i_out_me .
rwrd points if useful
Bhupal
‎2008 May 30 1:26 PM
Hi,
Do one thing just open tcode MM03, then enter your material number for which this fm is not working then press enter and select basic views, in the coming screen press CONTROL+F6 (function key F6) or Additional data. in the coming screen press on Units of measure tab. Check is there any entry with the same 'bag' and 'car'. If yes then this fm should work otherwise it wont work. And also i observed there is a double quotation in the below of your code, please remove that.
i_out_me = ''car'
Rgds,
Bujji