码迷,mamicode.com
首页 > 其他好文 > 详细

SPELL_AMOUNT

时间:2019-09-03 09:35:01      阅读:90      评论:0      收藏:0      [点我收藏+]

标签:import   sep   call   fill   except   ber   spell   ted   ima   

*CONVERT NUMBER TO ENGLISH
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
AMOUNT          = G_TOTAL
CURRENCY        = WG_HEADER-WAERK
FILLER          = ' '
LANGUAGE        = SY-LANGU
IMPORTING
IN_WORDS        = G_TITL
EXCEPTIONS
NOT_FOUND       = 1
TOO_LARGE       = 2
OTHERS          = 3.

G_TOT1 = G_TITL-WORD.          " for int
G_TOT2 = G_TITL-DECWORD.       "for decimal









IF G_TOT2 NE 'ZERO'.
  CONCATENATE WG_HEADER-WAERK G_TOT1 'AND' G_TOT2 'CENTS'INTO G_TOTAL_TEXT SEPARATED BY SPACE.
ELSE.
  G_TOTAL_TEXT = G_TOT1.
  CONCATENATE WG_HEADER-WAERK G_TOT1 INTO G_TOTAL_TEXT SEPARATED BY SPACE.
ENDIF.

SPELL_AMOUNT

标签:import   sep   call   fill   except   ber   spell   ted   ima   

原文地址:https://www.cnblogs.com/aurora-cj/p/11450985.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!