CALL FUNCTION 'CURRENCY_AMOUNT_SAP_TO_DISPLAY'
EXPORTING
currency = 幣別
amount_internal = SAP DB 儲存金額
IMPORTING
AMOUNT_DISPLAY = 顯示金額
* EXCEPTIONS
* INTERNAL_ERROR = 1
* OTHERS = 2
.
CALL FUNCTION 'CURRENCY_CONVERTING_FACTOR'
EXPORTING
currency = lt_current-waers
IMPORTING
factor = lv_factor
EXCEPTIONS
too_many_decimals = 1
OTHERS = 2.
lt_current-dmbtr = lt_current-dmbtr * lv_factor . "依幣別轉換顯示金額
CALL FUNCTION 'CURRENCY_AMOUNT_DISPLAY_TO_SAP'
EXPORTING
currency = 幣別
amount_display = 顯示金額
IMPORTING
AMOUNT_INTERNAL = SAP DB 儲存金額
EXCEPTIONS
INTERNAL_ERROR = 1
OTHERS = 2
.
沒有留言:
張貼留言