10-06-2008 9:56 AM
HI All,
I need to convert the amount into words in my smartforms.
How is this achieved?
Thanks & Regards,
Murthy
10-06-2008 9:58 AM
10-06-2008 9:59 AM
10-06-2008 10:20 AM
Hi kan murthy ,
let say in sf the amount is sf_amt...
*Declare varibles in SF like this in global
data: v_word type spell, "structure
v_amt type string.
*Calling Function SPELL_AMOUNT in Program Lines
and Import parameters are V_AMT and Export Parameters are
*V_WORD
call function 'SPELL_AMOUNT'
exporting
amount = v_amt
currency = 'INR'
language = sy-langu
importing
in_words = v_word
exceptions
not_found = 1
too_large = 2
others = 3.
Use V_WORD Where need to print
Regards,
sg
10-06-2008 10:32 AM
HI,
Try to use this Functional Mod : HR_IN_CHG_INR_WRDS Instant of Using above one.
data: amt(20) type c.
CALL FUNCTION 'HR_IN_CHG_INR_WRDS'
EXPORTING
AMT_IN_NUM = '10000000'
IMPORTING
AMT_IN_WORDS = amt.
write:/ amt.
Hope it is helps.
Regards,
Vamshi