Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SPELL_AMOUNT to convert amount in ( USD )words

hi guys,

i m using the following function module to convert amount to words for USD. but the result is coming in lakhs and crores .. i want the amount in thousands and millions .

CALL FUNCTION 'SPELL_AMOUNT'

EXPORTING

AMOUNT = val

CURRENCY = 'USD'

LANGUAGE = SY-LANGU

IMPORTING

IN_WORDS = IN_WORDS.

SPELL_VAL = IN_WORDS-WORD.

for example,

val = 231,620.00

words = TWO HUNDRED THIRTY-ONE THOUSAND SIX HUNDRED TWENTY DOLLARS

above is the output i get in development server for the f.m. and is exactly what i want.

but for the same example, in production server , the output is

words = TWO LAKH THIRTY-ONE THOUSAND SIX HUNDRED TWENTY DOLLARS

and suggestions ????

Tags:
Not what you were looking for? View more on this topic or Ask a question