货币转换
IF gs_mseg-waers NE 'CNY'.
CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
EXPORTING
date = gs_mseg-budat_mkpf "过账日期 取汇率
foreign_amount = gs_mseg-dmbtr
foreign_currency = gs_mseg-waers
local_currency = 'CNY'
type_of_rate = 'M'
IMPORTING
local_amount = gs_mseg-dmbtr
EXCEPTIONS
no_rate_found = 1
OTHERS = 2.
ENDIF.
阅读(1083) | 评论(0) | 转发(0) |