on 07-07-2008 12:48 PM
Hi all,
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
AMOUNT = totalamount16
CURRENCY = 'USD'
FILLER = ' '
LANGUAGE = SY-LANGU
IMPORTING
IN_WORDS = t_spell
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.
ENDIF.
IF wa_ekpo-sikgr = 'INR'.
CONCATENATE wa_ekpo-sikgr t_spell-word 'PAISE' INTO t_spell-word SEPARATED BY space.
ENDIF.
IF wa_ekpo-sikgr = 'USD'.
CONCATENATE wa_ekpo-sikgr t_spell-word 'CENT' INTO t_spell-word SEPARATED BY space.
ENDIF.
IF wa_ekpo-sikgr = 'EUR'.
CONCATENATE wa_ekpo-sikgr t_spell-word 'CENT' INTO t_spell-word SEPARATED BY space.
ENDIF.
Tha above is d code written to print the amount in words in different currencies. m not gettin d desired o/p.
if the amount is 19,990.00 then it shld print Rupees Nineteen Thousand Nine Hundred ninty and zero paise if currency = 'INR'.
if currency = 'USD'.
then it shld print in USD format.
if currency = 'EUR'.
then it shld print in EUR format.
Plz help. its urgent.
Thanks in advance.
hi ,
for this type of error you can use the standard function modules HR_IN_CHG_INR_WRDS or Spell_amount
. pleas check this . if you give the aount in numericals you will get same in words..
i think u can use this.......
thanks
pradeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
there is a script for check printing in which the amount is printed in words.
just check the script F110_PRNM1_CHCK and window is check r checkspecial.
just see the logic beneath i think this should be helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Check out FM HR_IN_CHG_INR_WRDS
Regards,
Santosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.