03-14-2007 3:08 PM
Hello,
I have to write (in a form) an amount in the format : 1,000,000.00
The currency and the initial format of the amount is variable.
Do you know a function module to convert an amount to this format?
Thanks in advance,
Bertrand
03-14-2007 3:13 PM
Hello,
Do like this:
Data: LV_amount(16).
write: amount to lv_amount
Regards,
Vasanth
03-14-2007 3:12 PM
HI,
Use Function module :
BAPI_CURRENCY_CONV_TO_INTERNAL
call function 'BAPI_CURRENCY_CONV_TO_INTERNAL'
exporting
currency = 'USD'
amount_external = input
max_number_of_digits = 20
importing
amount_internal = output
RETURN =
.
Regards
Sudheer
Message was edited by:
Sudheer Junnuthula
03-14-2007 3:38 PM
Hello,
This method doesn't fil the ',' for thousand separators.
Any other solution ?
Thanks in advance,
Bertrand
03-14-2007 3:42 PM
03-14-2007 3:13 PM
Hello,
Do like this:
Data: LV_amount(16).
write: amount to lv_amount
Regards,
Vasanth
03-14-2007 3:21 PM
Hello,
This method doesn't work if I have not the right parameters in SU3.
Maybe, you know how to always obtain the good format.
Best regards,
Bertrand.
03-14-2007 3:29 PM
hi,
Check out this way ..
data : v_temp like coep-wkgbtr value '10000.00'.
data: v_result(18).
write : v_temp to v_result.
Regards,
Santosh
03-14-2007 3:31 PM
03-14-2007 3:33 PM
ur trying to format the amount ...
try this...
write: amt USING EDIT MASK 'RR___,___,___.__'.
LL for left justified.
Hope this helps..
Rgds.
03-14-2007 3:35 PM
Hello,
Try with the FM
<b>SD_CONVERT_CURRENCY_FORMAT</b>
REgards,
Vasanth