Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Spell Amount in Traditional Chinese (For Taiwan)

Former Member
0 Kudos
221

Hi,

The amount needs to be spelled and displayed in Traditional Chinese Characters in Smart Form.

This is Taiwan specific requirement. Please suggest me a way to display this.

Regards,

Gaurang

4 REPLIES 4

Former Member
0 Kudos
62

use SPELL_AMOUNT function module, in input u enter language key then u will get out put in that language

Madhavi

Former Member
0 Kudos
62

Hi,

Use FM - SPELL_AMOUNT and input the language as TH.

Thanks,

Sriram Ponna.

Former Member
0 Kudos
62

Add A code in your smartform

and add this snippet

CALL FUNCTION 'SPELL_AMOUNT'

EXPORTING

AMOUNT = 1000

  • CURRENCY = ' '

  • FILLER = ' '

LANGUAGE = 'TH'

IMPORTING

IN_WORDS = str

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.

where str is of type string.

Former Member
0 Kudos
62

check this example and modify parameters according to your requirements...

by the way in_words is NOT string type.

DATA : in_word LIKE spell.

DATA : amount(16) TYPE p DECIMALS 2.

amount = '23454.75'.

CALL FUNCTION 'SPELL_AMOUNT'

EXPORTING

amount = amount

currency = 'GBP'

language = sy-langu

IMPORTING

in_words = in_word.

WRITE 😕 in_word-word, 'AND', in_word-decword.