2008 Jul 04 7:24 AM
Dear Guru ,
I want to know is there any sap standard Function Module to convert amount value to amount in words
Thanks & Regards
2008 Jul 04 7:28 AM
2008 Jul 04 7:26 AM
try:
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
amount = zsum
currency = is_bil_invoice-hd_komk-waerk
language = 'E'
IMPORTING
in_words = gt_amtwords
EXCEPTIONS
not_found = 1
too_large = 2
OTHERS = 3.
.
plz reward points if dis helps
2008 Jul 04 7:28 AM
2014 Apr 21 12:10 PM
2014 Apr 21 12:34 PM
IN India it is working, but in other country not working...
2008 Jul 04 7:30 AM
Hi..
Use FM SPELL_AMOUNT.
This function module converts an amount or number into words. It can be used as follows:
Convert a number into words
To do this, the transfer parameters LANGUAGE and AMOUNT have to be entered.
Convert an amount into words
To do this, the fields LANGUAGE, CURRENCY, and AMOUNT have to be entered.
Program RF_SPELL contains a sample call of the function module. You can use it for test purposes.
REPORT ZSPELL.
TABLES SPELL.
DATA : T_SPELL LIKE SPELL OCCURS 0 WITH HEADER LINE.
DATA : PAMOUNT LIKE SPELL-NUMBER VALUE '1234510'.
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
I hope it helps.
Reward pts if helpful
Regards
- Rishika Bawa
2020 Jul 31 5:42 PM
This thread is from 2008.....you raised it from the dead simply to post an OSS note link. Why?