Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

field

Former Member
0 Likes
549

hi exerts,

how to dislay the curency for curency field .how to change the curency at run time while coading the program,?

radhakrishna.

9343479997.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
532

Hi

currency is displayed using the <b>WAERS</b> field.

check table EKKO

Regards

Preeti

Reward if useful

4 REPLIES 4
Read only

Former Member
0 Likes
533

Hi

currency is displayed using the <b>WAERS</b> field.

check table EKKO

Regards

Preeti

Reward if useful

Read only

Former Member
0 Likes
532

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

Read only

Former Member
0 Likes
532

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.

Read only

Former Member
0 Likes
532

Hi ,

Use

Write l_curr to final_curr currency 'waers' (this should be the ref field in ur work area .

Hope this helps.

Praveen.