SPELL_AMOUNT

Posted aurora-cj

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SPELL_AMOUNT相关的知识,希望对你有一定的参考价值。

*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的主要内容,如果未能解决你的问题,请参考以下文章