10-15-2007 12:47 PM
I have a field cointaining value of type C. Now i want that value in currency type. Example: C = 31507.
output = 31,570.
Is there any function module???
plz help
10-15-2007 12:49 PM
Hi,
DATA: AMOUNT TYPE WRBTR VALUE '33329.00',
AMOUNT_C(20) TYPE C.
WRITE AMOUNT CURRENCY 'EUR' TO AMOUNT_C.
Thanks.
10-15-2007 12:49 PM
Hi Kaushik
Move that field value to a currency data element field and display, you should the output in the req. format.
~Ranganath
Reward points for all useful answer !!
10-15-2007 12:54 PM
10-15-2007 12:56 PM
Hi Kaushik,
Try using the Fm's "HRCM_STRING_TO_AMOUNT_CONVERT" or "HRCM_AMOUNT_TO_STRING_CONVERT"
CALL FUNCTION 'HRCM_STRING_TO_AMOUNT_CONVERT'
EXPORTING
string = " value to be seperated"
DECIMAL_SEPARATOR = "."
THOUSANDS_SEPARATOR =","
WAERS = ' ' ( Currency type)
IMPORTING
BETRG = (result value)
EXCEPTIONS
CONVERT_ERROR = 1
OTHERS = 2
Reward if Useful.
Regards,
Chitra