Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

issue with CONVERT_TO_LOCAL_CURRENCY

I am using FM 'CONVERT_TO_LOCAL_CURRENCY' like below.

DATA: lv_fcurr TYPE tcurr-fcurr,

lc_lcurr(3) TYPE c VALUE 'CHF',

lc_type_rate(1) TYPE c VALUE 'M',

lc_read_tcurr(1) TYPE c VALUE 'X'.

CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'

EXPORTING

client = sy-mandt

date = sy-datum

foreign_amount = wa_ce11000-vv050

foreign_currency = lv_fcurr

local_currency = lc_lcurr

rate = 0

type_of_rate = lc_type_rate

read_tcurr = lc_read_tcurr

IMPORTING

local_amount = lv_conv_vv050.

IF sy-subrc = 0.

wa_ce11000-vv050 = lv_conv_vv050.

ENDIF.

and getting following wrror msg frm the FM while run my transaction.

"Enter rate /CHF rate type M for 00.00.0000in the system settings"

Please note if I give any hardcoded currency like 'EUR' instead of lv_fcurr, then this error is nt coming.

Can any one tell me what could be the problem??

Tags:
Not what you were looking for? View more on this topic or Ask a question