‎2010 Aug 12 9:30 AM
Hi Experts ,
My requirement is is there any function module to convert currency in to text form , like the import parameter for that function module is 2.00 and it will export output like Two rupees zero pies .
Thanks,
-Krishna
Moderator message: next time, please search before asking.
locked by: Thomas Zloch on Aug 12, 2010 12:29 PM
‎2010 Aug 12 9:35 AM
‎2010 Aug 12 9:35 AM
‎2010 Aug 12 9:37 AM
hi ,
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
amount = v_total
currency = is_bil_invoice-hd_gen-bil_waerk
filler = ' '
language = sy-langu
IMPORTING
in_words = v_words
EXCEPTIONS
not_found = 1
too_large = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.