Application Development and Automation 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: 
Read only

Fn Mod needed for Material Unit Conversion

Former Member
0 Likes
730

Hi All.

I was trying to get the value of a material from EA to KG using a function module MATERIAL_CONVERSION_UNIT with which the data is not correcting properly.

After this I tried with the other Fn Mod MD_CONVERT_MATERIAL_UNIT. But this is calculating the Net Wt of the material where as I need to have the value for the Gross Wt of a Material.

Please hel on this.

Thanks.

Ashok

2 REPLIES 2
Read only

Former Member
0 Likes
646

Hi,

Double click on field type MEINS to navigate to data element, then again on domain and see that convers. routine is CUNIT. Double click on that and pop up window comes up and shows function modules used in conversion

Regards,

Nishant

Read only

Former Member
0 Likes
646

Try this FM .It works for me so far

CALL FUNCTION 'EHSWA_490_MAT_UNIT_CONVERSION'

EXPORTING

i_matnr = <l_outtab>-matnr

i_source_value = wl_weight

i_source_unit = wl_ergei

i_target_unit = c_lb

IMPORTING

e_target_value = wl_weight.

ENDIF.

Thanks & Regards,

Vivek Gaur