SAP Function SPELL_AMOUNT - Spell Out Numbers

Parameter Reference Type Length Default Optional Text
AMOUNT 0 0 X Amount/Number to Be Spelled Out
CURRENCY SYST-WAERS C 5 SPACE X Currency for Amounts, Blank for Numbers
FILLER 0 SPACE X Filler for Padding the Output Field
LANGUAGE SYST-LANGU C 1 SY-LANGU X Language Indicator

Parameter Reference Type Length Text
IN_WORDS SPELL u 882 Character String with Amount/Number Spelled Out

Exception Text
NOT_FOUND Argument Not Found in T015Z
TOO_LARGE Amount Too Large to Be Spelled Out

Functionality
This function module converts an amount or number into words. It can beused as follows:

  • Convert a number into words

  • To do this, the transfer parameters LANGUAGE and AMOUNT have to beentered.
    • Convert an amount into words

    • To do this, the fields LANGUAGE, CURRENCY, and AMOUNT have to beentered.
      • Set the number of places before and after the decimal point for an
      • amount
        To do this, the parameters CURRENCY and AMOUNT have to be entered. TheLANGUAGE field must be transferred with the value SPACE. This optionoptimizes the runtime of the function module.
        The structure SPELL transfers the converted amounts. The function moduleenters the number of places before and after the decimal point in theNUMBER and DECIMAL fields, the amount in words in the WORD and DECWORDfields, and the figure in words in the DIGnn fields. The numbersconverted into words can be protected by a star or some other FILLER.

        Notes
        If you are using the first two functions, the system always checkswhether the language required for the conversion is also entered in thecalling program.

        Example
        Program RF_SPELL contains a sample call of thefunction module. You can use it for test purposes.

        Further information
        The FB uses table T015Z (figures and numbers in words)for the conversion. You may have to modify this table since the grammarfor numbers in other languages may differ from the rules of grammar forCentral European numbers (especially between German and English). Takenote of the following languages:
        Czech | Korean |
        Polish |Portuguese |Russian | Slovak
        | Spanish |Thai

1003839Translation of table T015Z
1129534Cash documents in Lithuanian language
590127 Numbers in words in SK language
451584Falsche Plurale bei Million, etc. in Ungarisch
325761Error:missing semi-colon in T015Z Thai translation