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

Unit Conversion FM

Former Member
0 Likes
353

Hi all,

I want an Function module which will convert the alternative unit to base unit of measure.

regards,

Gaurav.

1 REPLY 1
Read only

Former Member
0 Likes
314

Hi,

Use fm call function 'MATERIAL_UNIT_CONVERSION'

exporting

input = pf_menge_in

kzmeinh = 'X'

matnr = pf_matnr

meinh = pf_meins_in

meins = pf_meins_out

type_umr = '3'

importing

output = pf_menge_out

exceptions

conversion_not_found = 1

input_invalid = 2

material_not_found = 3

meinh_not_found = 4

meins_missing = 5

no_meinh = 6

output_invalid = 7

overflow = 8

others = 9.