Spell Amount


Function module spell amount using function module

For display in USD and cent

CALL FUNCTION 'SPELL_AMOUNT'
           EXPORTING
                Amount    = l_totalnet_c “Amount
                Currency = waers “Currency
                Filler    = space
                Language = sy-langu
           IMPORTING
                in_words = l_s_words
           EXCEPTIONS
                not_found = 1
                too_large = 2
                OTHERS    = 3.
      IF sy-subrc <> 0.
      ENDIF.
      CONCATENATE l_s_words-word 'AND'
                       l_s_words-decword 'CENTS'
                  'ONLY'
      INTO l_s_item1-nettxt SEPARATED BY space.” Amount in words

No comments:

Post a Comment

/*Newer Post*/ Older Post Home