Skip to Content
0
Former Member
Jan 10, 2008 at 08:51 AM

currency in smartform

31 Views

Hi

In my smartform my currency is 329,543.000

And it is spelling it as

three hundred twenty-nine thousand five hundred fourt-three and zero paise only.

Where as it shouls spell it as

three lakhs twenty nine thousand five hundred and fourty three only

my coding is as below

v_rupees = spell-word.

V_CESS_ADD_FINAL = ( v_second - '0' ) * 100.

CALL FUNCTION 'SPELL_AMOUNT'

EXPORTING

AMOUNT = V_CESS_ADD_FINAL

CURRENCY = 'INR'

  • FILLER = ' '

LANGUAGE = SY-LANGU

IMPORTING

IN_WORDS = spell

EXCEPTIONS

NOT_FOUND = 1

TOO_LARGE = 2

OTHERS = 3

.

v_paise = spell-word.

if v_rupees is not initial.

if v_paise is not initial.

concatenate 'RUPEES' v_rupees 'AND' v_paise 'PAISE ONLY' into v_frupees

separated by space.

else.

concatenate 'RUPEES' v_rupees 'ONLY' into v_frupees separated by space.

endif.

endif.