您的位置:首页 > 数据库

没有小数位的货币在数据库中的保存(不理解,测试)

2013-03-10 19:34 183 查看
REPORT  z_barry_test NO STANDARD PAGE HEADING .
TABLES resb.
DATA: amount_in LIKE bapicurr-bapicurr ,

      amount_ex LIKE bapicurr-bapicurr .

SELECT * FROM resb UP TO 100 ROWS WHERE waers = 'TWD'.

  amount_in = resb-gpreis.

  CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_EXTERNAL'

    EXPORTING

      currency        = resb-waers

      amount_internal = amount_in

    IMPORTING

      amount_external = amount_ex.

  WRITE: / resb-gpreis,amount_ex,resb-waers.
ENDSELECT.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐