2009 Jan 28 6:16 PM
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.
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
2009 Jan 28 6:22 PM
Hi,
Check this Fm
UNIT_CONVERSION_SIMPLE
CF_UT_UNIT_CONVERSION
Edited by: Avinash Kodarapu on Jan 28, 2009 11:54 PM
2009 Jan 28 6:35 PM
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
2009 Jan 28 6:40 PM
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
2009 Jan 28 6:43 PM
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
2009 Jun 09 3:03 PM
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |