2009 Aug 12 5:11 PM
I want to some function to know decimals currency, or format an input with a specific currency format.
e.g.
input 1234,5678 and USD
output 1234,56 or 1234,57
Thanks and Regards,
Sebastian
I want to some function to know decimals currency, or format an input with a specific currency format.
e.g.
input 1234,5678 and USD
output 1234,56 or 1234,57
Thanks and Regards,
Sebastian
2009 Aug 12 5:39 PM
Try this...
DATA : l_descr_ref TYPE REF TO cl_abap_structdescr.
l_descr_ref ?= cl_abap_typedescr=>describe_by_data( itab ).
Now l_descr_ref->components holds the entire list of fields in itab.
Thanks & Regards,
Shreemohan
2009 Aug 12 6:25 PM
Doesn't work.
I want to convert 123.123 and USD in 123.12
or 123.123 and JAP in 123 (yens hasn't decimals)
....
2009 Aug 12 6:28 PM
Hi,
Following are FM with respect to Currency,
CONVERT_TO_FOREIGN_CURRENCY Convert local currency to foreign currency.
CONVERT_TO_LOCAL_CURRENCY Convert from foreign currency to local currency
CONVERT_AMOUNT_TO_CURRENCY Convert an amount from a currency to another (exchange rate taken from database tables)
CONVERT_CURRENCY_BY_RATE Convert an amount from a currency to another, according to the passed exchange rate
BAPI_CURRENCY_CONV_TO_EXTERNAL Conversion of Currency Amounts into External Data Format
BAPI_CURRENCY_CONV_TO_INTERNAL Conversion of Currency Amounts into Internal Data Format
Thanks & regards,
Shreemohan
2009 Aug 12 7:03 PM
Finally I consulted TCURX, that table contains information about decimals places for every currency. I need truncate a numeric value with decimals specified in that table.
Thanks
2009 Aug 12 7:11 PM
you can use Write with currency option to let SAp do that automatically.
write xx currency 'USD' to yy.
or write xx currency 'JPY' to yy.
2009 Aug 12 7:16 PM
Yes, thanks! but I need those values inside a Web Dynpro for Java.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |