Skip to Content
0
Jun 21, 2007 at 02:32 PM

FM SPELL_AMOUNT problems

70 Views

Hi, expert

I have a requirement to solve on PRD, we use FM SPELL_AMOUNT wich give monto_letras-word without separation for certain numbers specifically with the four hundred (400).

CALL FUNCTION 'SPELL_AMOUNT'
  EXPORTING
    amount    = monto
    currency  = 'VEB'
    language  = sy-langu
  IMPORTING
    in_words  = monto_letras
  EXCEPTIONS
    not_found = 1
    too_large = 2
    OTHERS    = 3.

Examples:

1) For Bs. 145.103.498 give back the text:

CIENTO CUARENTA Y CINCO MILLONES CIENTO TRES MIL <b>CUATROCIENTOSNOVENTA Y OCHO</b> (<i>ONE HUNDRED FORTY AND FIVE MILLION ONE HUNDRED THREE THOUSAND CUATROCIENTOSNOVENTA AND EIGHT</i>)

would have to be:

CIENTO CUARENTA Y CINCO MILLONES CIENTO TRES MIL <b>CUATROCIENTOS NOVENTA Y OCHO</b>

2) For Bs. 428.042 give back the text:

<b>CUATROCIENTOSVEINTIOCHO</b> MIL CUARENTA Y DOS

(FOUR HUNDRED TWENTY-EIGHT THOUSANDS FORTY AND TWO )

would have to be:

<b>CUATROCIENTOS VEINTIOCHO MIL</b> CUARENTA Y DOS

I will appreciate it any helpfull information, thanks in advance.

Tokio

P.D. Points reward