檢查貨幣是否存在SAP系統中

qiujun發表於2007-09-14

*&Check Currency exist

DATA: ls_return LIKE bapiret2,
lt_return LIKE TABLE OF bapiret2 WITH HEADER LINE.

CALL FUNCTION 'AIA_CHECK_EXIST_CURRENCY'
EXPORTING
i_currency = p_curr
TABLES
return = lt_return
EXCEPTIONS
no_currency = 1
currency_not_exist = 2
OTHERS = 3.

IF sy-subrc <> 0.
MESSAGE s398(00) WITH 'Currency is not valid'.
STOP.
ENDIF.

[@more@]

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

相關文章