Skip to Content
0
Former Member
May 07, 2007 at 08:55 PM

SPELL_AMOUNT

37 Views

HI,

Can any one help me with following code.? Please fix the errors in the code.

DATA : MONEY TYPE I,

VALUE LIKE SY-WAERS,

LANG LIKE SY-LANGU,

IN_LETTERS LIKE SPELL.

MONEY = 1000.

CALL FUNCTION 'SPELL AMOUNT'

EXPORTING

AMOUNT = MONEY

IMPORTING

IN_WORDS = IN_LETTERS

EXCEPTIONS

NOT_FOUND = 1

TOO_LARGE = 2

OTHERS = 3

IF SY-SUBRC <> 0

ENDIF.

WRITE : / AMOUNT, VALUE, IN_LETTERS.