zoukankan      html  css  js  c++  java
  • SPELL_AMOUNT

    *&---------------------------------------------------------------------*
    *&      Form  change_to_en
    *&---------------------------------------------------------------------*
    *       text
    *----------------------------------------------------------------------*
    *      -->DATA       text
    *      -->STR        text
    *----------------------------------------------------------------------*
    form change_to_en using data type konv-kawrt  changing str .

      data:
       lw_spell like spell,
       lv_text type ltext,
       p_waers type eban-waers.
      p_waers = 'USD'.


      call function 'SPELL_AMOUNT'
        exporting
          amount   = data
          currency = p_waers
          filler   = ''
          language = 'E'
        importing
          in_words = lw_spell.

      data: lv_cent type spell.
      lw_spell-decimal = lw_spell-decimal / 10.
      if lw_spell-decimal is not initial.
        call function  'SPELL_AMOUNT'
        exporting
        amount   = lw_spell-decimal
    *   currency = lw_vbak-waerk
        filler   = ''
        language = 'E'
        importing
        in_words = lv_cent.
      endif.

      if not lv_cent-word is initial.
        concatenate lw_spell-word 'AND' lv_cent-word 'CENTS'
         into str
        separated by space.
      else.
        str = lw_spell-word.

      endif.

    endform.                    "change_to_en

  • 相关阅读:
    防火墙透明模式
    HP管理工具System Management Homepage安装配置
    kbmmw 中JSON 中使用SQL 查询
    kbmmw 中JSON 操作入门
    第一个kbmmw for Linux 服务器
    kbmmw 5.02发布
    kbmmw 5.01 发布
    使用delphi 10.2 开发linux 上的Daemon
    使用unidac 在linux 上无驱动直接访问MS SQL SERVER
    使用delphi 10.2 开发linux 上的webservice
  • 原文地址:https://www.cnblogs.com/cnlmjer/p/4099836.html
Copyright © 2011-2022 走看看