cancel
Showing results for 
Search instead for 
Did you mean: 

Printing amount in words in various currencies

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

hi,

Check out FM HR_IN_CHG_INR_WRDS

Regards,

Santosh