cancel
Showing results for 
Search instead for 
Did you mean: 

amount in words (both amount and Decimal)

Former Member
0 Kudos

my requirement is to display amount in words both (amount and Decimal) in thai language.

any idea or any changes required in spell_amount FM.

Vamsykrishna.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

i created my own function module for this which is orginating from spell_amount.give me ur id ,will send you screen shot ,your problem will solved

Former Member
0 Kudos

Hi,

Check this FM 'HR_IN_CHG_INR_WRDS' which returns the amount as required by you,

Regards

Kiran Sure

Former Member
0 Kudos

Hi,

For this function module pass the language attribute as 'TH'. you can get thai discription if they are maintained by the fi people.

Thanks,

Nethaji.

Former Member
0 Kudos

TABLES SPELL.

DATA : T_SPELL LIKE SPELL OCCURS 0 WITH HEADER LINE.

DATA : PAMOUNT LIKE SPELL-NUMBER VALUE '123.45'.

SY-TITLE = 'SPELLING NUMBER'.

PERFORM SPELL_AMOUNT USING PAMOUNT 'USD'.

WRITE: 'NUMBERS', T_SPELL-WORD, 'DECIMALS ', T_SPELL-DECWORD.

FORM SPELL_AMOUNT USING PWRBTR PWAERS.

CALL FUNCTION 'SPELL_AMOUNT'

EXPORTING

AMOUNT = PAMOUNT

CURRENCY = PWAERS

FILLER = SPACE

LANGUAGE = 'E'

IMPORTING

IN_WORDS = T_SPELL

EXCEPTIONS

NOT_FOUND = 1

TOO_LARGE = 2

OTHERS = 3.

ENDFORM. " SPELL_AMOUNT