2007 Aug 14 6:31 AM
hi exerts,
how to dislay the curency for curency field .how to change the curency at run time while coading the program,?
radhakrishna.
9343479997.
2007 Aug 14 6:33 AM
Hi
currency is displayed using the <b>WAERS</b> field.
check table EKKO
Regards
Preeti
Reward if useful
hi exerts,
how to dislay the curency for curency field .how to change the curency at run time while coading the program,?
radhakrishna.
9343479997.
2007 Aug 14 6:33 AM
Hi
currency is displayed using the <b>WAERS</b> field.
check table EKKO
Regards
Preeti
Reward if useful
2007 Aug 14 6:33 AM
whenever u r displaying the currency field u should take the referce from currency field -TCURR-WAERS.
reward points to all helpful answers
kiran.M
2007 Aug 14 6:34 AM
Try the below code.
REPORT zc1_currency_conversion .
DATA: loc_umsa1 LIKE kna1-umsa1.
CALL FUNCTION 'CONVERT_AMOUNT_TO_CURRENCY'
EXPORTING
foreign_currency = 'CAD'
foreign_amount = 450
local_currency = 'USD'
IMPORTING
local_amount = loc_umsa1
EXCEPTIONS
error = 1
OTHERS = 2.
IF sy-subrc = 0.
WRITE:/ 'Converted amount is:' , loc_umsa1.
ELSE.
WRITE:/ 'Error in conversion'.
ENDIF.
Incase the funtion module is workign properly,
Try these modules,
CONVERT_TO_FOREIGN_CURRENCY or CONVERT_TO_LOCAL_CURRENCY.
CALL FUNCTION 'CONVERT_AMOUNT_TO_CURRENCY' EXPORTING
date = sy-datum
foreign_currency = 'USD'
foreign_amount = '2000.00'
local_currency = 'EUR'
IMPORTING
local_amount = amount.
Hope this will be helpful.
2007 Aug 14 7:24 AM
Hi ,
Use
Write l_curr to final_curr currency 'waers' (this should be the ref field in ur work area .
Hope this helps.
Praveen.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |