Skip to Content
0
Former Member
Oct 16, 2008 at 06:32 AM

SPELL_AMOUNT to convert amount in ( USD )words

1268 Views

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 ????