sap中有個查詢匯率的function可以簡單查詢出設定的匯率
CALL FUNCTION 'READ_EXCHANGE_RATE'
EXPORTING
date = sy-datum "查詢的日期
foreign_currency = fcurr "目的幣別
local_currency = lcurr "本地幣別
type_of_rate = 'M' "Type of rate M=Average rate G=Bank buying rate B=bank selling rate
IMPORTING
exchange_rate = e_rate "查詢出的匯率
EXCEPTIONS
no_rate_found = 1
no_factors_found = 2
no_spread_found = 3
OTHERS = 4.
實在是夠簡單的,但怪的是用SE37的TEST功能輸入各項值後卻無法顯示任何資料
但在ABAP中輸入代入上述FUNCTION中的資料後可以正確顯示匯率e_rate
文章出自: https://roach0426.pixnet.net/blog/post/18519160-sap%e4%b8%ad%e6%9f%a5%e8%a9%a2%e5%8c%af%e7%8e%87%e7%
留言列表