‎2007 Mar 14 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
‎2007 Mar 14 3:13 PM
Hello,
Do like this:
Data: LV_amount(16).
write: amount to lv_amountRegards,
Vasanth
‎2007 Mar 14 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
‎2007 Mar 14 3:38 PM
Hello,
This method doesn't fil the ',' for thousand separators.
Any other solution ?
Thanks in advance,
Bertrand
‎2007 Mar 14 3:42 PM
‎2007 Mar 14 3:13 PM
Hello,
Do like this:
Data: LV_amount(16).
write: amount to lv_amountRegards,
Vasanth
‎2007 Mar 14 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.
‎2007 Mar 14 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
‎2007 Mar 14 3:31 PM
‎2007 Mar 14 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.
‎2007 Mar 14 3:35 PM
Hello,
Try with the FM
<b>SD_CONVERT_CURRENCY_FORMAT</b>
REgards,
Vasanth