Monday 19 September 2011

to display the amount in words(country specific)

SPEEL_AMOUNT

CALL FUNCTION 'SPELL_AMOUNT'
 EXPORTING
   amount          = gdf_total_brtwr
   currency        = is_ekko-waers
*   FILLER          = ' '
   language        = lcf_lang
 IMPORTING
   in_words        = gds_in_words
 EXCEPTIONS
   not_found       = 1
   too_large       = 2
   OTHERS          = 3.
IF sy-subrc <> 0.
  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

No comments:

Post a Comment