每日一函式(2007/10/24)

TolyHuang發表於2007-10-24
貨幣之間轉換函式: READ_EXCHANGE_RATE[@more@] call function 'READ_EXCHANGE_RATE'
exporting
* CLIENT = SY-MANDT
date =
foreign_currency =
local_currency =
* TYPE_OF_RATE = 'M'
* EXACT_DATE = ' '
* IMPORTING
* EXCHANGE_RATE =
* FOREIGN_FACTOR =
* LOCAL_FACTOR =
* VALID_FROM_DATE =
* DERIVED_RATE_TYPE =
* FIXED_RATE =
* OLDEST_RATE_FROM =
* EXCEPTIONS
* NO_RATE_FOUND = 1
* NO_FACTORS_FOUND = 2
* NO_SPREAD_FOUND = 3
* DERIVED_2_TIMES = 4
* OVERFLOW = 5
* ZERO_RATE = 6
* OTHERS = 7
.
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9437124/viewspace-978408/,如需轉載,請註明出處,否則將追究法律責任。

相關文章