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

Conversion function module

Former Member
0 Likes
1,047

Hi,

I am facing one problem in purchase order. actually my requirement is I want to convert the KG to Grams. Ex: Present data : 5 KG

Target data : 5000 Grams

and I need the 5000 grams as below format

5,000.00 Grams

Is there ant function module for conversion.

Could you please help me to solve this issue.

Thanks in advance.

5 REPLIES 5
Read only

Former Member
0 Likes
887

Hi,

Check this Fm

UNIT_CONVERSION_SIMPLE

CF_UT_UNIT_CONVERSION

Edited by: Avinash Kodarapu on Jan 28, 2009 11:54 PM

Read only

0 Likes
887

Hi,

Thank you very much for your quick response.

I am getting the data at runtime into my quantity field like below.

case 1. w_menge = 200.000 it is working perfectly for this type of format.

case 2: In this case at runtime I am getting into w_menge = 200.000,000 and when I am passing the same data to function module I am getting dump.

VALUE_OLD_IMP

Read only

0 Likes
887

Hi,

Check the data types of your field and function module's receiving parameter.

Normally while using function modules we get dumps because of type mis-match.

If this is not the case, post the runtime error message.

Mubeen

Read only

0 Likes
887

Hi,

Check the format of the value 200.000,000 ...while passing data to the VALUE_OLD_IMP there should not be comma in the value and the point is the decimal seperator. Do pass the value like this...

200000.000 instead of 200.000,000

Read only

Former Member
0 Likes
887

the issue has been resolved