Application Development 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: 

converting one base unit of measure to another

Former Member
0 Kudos

Hi Experts,

i want to know the function module name , which should convert the one base unit of mesure to another base unit of measure.

like EA TO PAL , or PAL TO sqft.

i have found one function module ( MATERIAL_UNIT_CONVERSION) ,which is not giving proper output(giving only zero's)

could u please help me out from this problem.

Thanks in Advance,

3 REPLIES 3

Former Member
0 Kudos

try <b>UNIT_CONVERSION_SIMPLE</b>

Former Member
0 Kudos

hi,

can you try

<b>ch_convert_units</b>

regards,

pankaj singh

Former Member
0 Kudos

Hello,

Try this.

data:c_kg LIKE lips-gewei VALUE 'KG', "Weight unit in kg

c_lb LIKE lips-gewei VALUE 'LB', "Weight unit in lb(pound).

CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'

EXPORTING

input = i_ln_items-brgew

unit_in = c_kg

unit_out = c_lb

IMPORTING

output = i_ln_items-brgew_lb.

If useful reward.

Vasanth