‎2007 Jul 10 11:14 AM
hai all,
pls help me with this
i have two info object with masterdata. i want to convert the quantity feild of one info object to the same unit as other in the start routine for updating to ODS.
how to do this problem? pls help me for a solution.
thanks in advance
‎2007 Jul 10 12:37 PM
Hi
You can also use the fun modules
UNIT_CONVERSION_SIMPLE or
MD_CONVERT_MATERIAL_UNIT
just enter these fun modules name in SE37 and search for where used list
you will find lot of programs
see the one as sample and use it.
<b>Reward points for useful Answers</b>
Regards
Anji
‎2007 Jul 10 11:24 AM
Hi..,
You can use this function module..
CALL FUNCTION 'VHUMISC_CONVERT_TO_BASEUNIT'
EXPORTING
MATNR = fs_vbap-matnr
QUANTITY = fs_vbap-kwmeng
UNITQTY = fs_vbap-vrkme
IMPORTING
BASEQUANTITY = fs_final-qty_order
CHANGING
BASEUNIT = fs_vbap-meins
EXCEPTIONS
CONVERSION_FAILED = 1
ROUNDING_ERROR = 2
OTHERS = 3.
regards,
sai ramesh
‎2007 Jul 10 12:16 PM
thanks for this...
pls show this with one example.
thanks in advance
‎2007 Jul 10 12:37 PM
Hi
You can also use the fun modules
UNIT_CONVERSION_SIMPLE or
MD_CONVERT_MATERIAL_UNIT
just enter these fun modules name in SE37 and search for where used list
you will find lot of programs
see the one as sample and use it.
<b>Reward points for useful Answers</b>
Regards
Anji
‎2007 Jul 10 12:41 PM
‎2007 Jul 10 12:42 PM
‎2007 Jul 10 3:44 PM
Hi,
use FM MD_CONVERT_MATERIAL_UNIT, it takes your MATNR, an input unit of measurement, an input quantity, and your desired output unit of measurement, and then it gives the result of quantity conversion from input unit to output unit.
reward points if helpful
Regards
‎2007 Jul 11 8:23 AM
my input is the unit<weight> of an infobject capa_wt.
my output should be capa_wt with converted unit as that of basic unit, there in master data, bas_unit.
pls help me with this.
i think the above function modules will not work for this problem
‎2007 Sep 24 11:05 AM