Monday, October 27, 2008

how to get the amount in words

REPORT ZTESTPROG.

DATA words LIKE SPELL .

parameters: p_number type i default 230.

CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
AMOUNT = p_number
LANGUAGE = SY-LANGU
IMPORTING
IN_WORDS = words
.
WRITE words-word.

No comments: