cancel
Showing results for 
Search instead for 
Did you mean: 

Amount and Date in words (Spanish, if logon language is english)

Former Member
0 Kudos

Dear all,

hope sb can help me with my issue.

We have to print within our system for Spain. That means the check itself have to be in spanish.

But we don't have spanish as logon language available. So the logon language is english.

If we print our checks we use the fields

&REGUD-ZALIW& (for Date in words)

and

&SPELL-WORD& (for Amount in words).

Unfortunately the words are not in spanish but in english. Additionally the day is not in words at all.

Could anybody help me? How can I get the words in Spanish?

Thanks in advance

Philip

Accepted Solutions (1)

Accepted Solutions (1)

former_member203305
Active Contributor
0 Kudos

Hi, u have to use this function


 CALL FUNCTION 'SPELL_AMOUNT'
    EXPORTING
      amount    = w_dmbtr
      currency  = 'CLP'
      language  = 'ES'
    IMPORTING
      in_words  = w_spell
    EXCEPTIONS
      not_found = 1
      too_large = 2
      OTHERS    = 3.

where w_dmbtr is the amount of the check.

and for the date

but before u need to set up the sy-langu = 'S'. of spanish

after u get the value set it again to english.



CALL FUNCTION 'CONVERSION_EXIT_LDATE_OUTPUT'
EXPORTING
 INPUT = p_date
IMPORTING
 OUTPUT = MONTH.

Regards

Answers (0)