REPORT z_barry_convert_currency .
DATA: jine LIKE bseg-wrbtr .
DATA: date LIKE sy-datum .
DATA: curr_ex LIKE bapicurr-bapicurr .
date = '20060831' .
DATA: fa LIKE bseg-wrbtr ,
fc LIKE t001-waers ,
lc LIKE t001-waers ,
ty LIKE tcurr-kurst .
fa = 100.
fc = 'JPY' .
lc = 'RMB' .
ty = 'M'.
curr_ex = fa .
CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_INTERNAL'
EXPORTING
currency = fc
amount_external = curr_ex
max_number_of_digits = 13
IMPORTING
amount_internal = fa.
CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
EXPORTING
date = date
foreign_amount = fa
foreign_currency = fc
local_currency = lc
type_of_rate = ty
IMPORTING
local_amount = jine
EXCEPTIONS
no_rate_found = 1
OTHERS = 2.
WRITE:/ jine .
注意点:
1.Exporting各个参数一定不能用常量,要用变量
2.汇率存放在表:TCURR中,另外TCUR*有关于汇率的其他数据
3.碰到比较变态的货币,例如日元,它们是没有小数点的,系统内存储的和你看到的不同,有个BAPI可以使用:BAPI_CURRENCY_CONV_TO_INTERNAL
4.维护汇率的Tcode:OB07、OB08
转自:http://blogold.chinaunix.net/u1/40527/showart.php?id=341894
分享到:
相关推荐
double_click_to_convert_01.wemta
double_click_to_convert_01.wemtv
double_click_to_convert_02.wemtv
double_click_to_convert_01(4).wemtaidx
总结来说,"AR_to_SS"和"convert_to_lagged_form"是kalman滤波在处理自回归模型时的关键转换步骤,它们涉及到将复杂的统计模型转化为适合滤波算法的形式。通过理解并分析相关的源码,我们可以更好地掌握kalman滤波的...
将基于TensorFlow的谷歌发布的官方BERT模型转化为基于Pytorch的BERT模型
double_click_to_convert_02.wemta
double_click_to_convert_01.wemtc
double_click_to_convert_03.wemtvidx
double_click_to_convert_03.wemtv
double_click_to_convert_01(1).wemtvidx
标题"Convert_Hex_to_Normal_String_hex_hex文件转成平常字符串_"指的是将存储为十六进制格式的文件转换为人类可读的普通字符串。描述中的"HEX文件转变成正常显示,很好的VI,可以试试"表明这个任务可以通过一个名为...
obj转thee.js