Skip to Content
0
Former Member
Dec 03, 2008 at 05:51 AM

spell_amount

47 Views

Hi..

Iam trying to print the time in words using spell_amount FM. I split the time in to 3 pieces but I got the error

" Offset Specification "+3" is greater than or equal to field length ("2"). My code is...

data : var1(2) type n,

var2(2) type n,

var3(2) type n.

parameters : p_var1 type t. "like payr_fi-rwbtr default '123456789.12'.

split p_var1 at space into : var10(2) var23(2) var3+6(2).

CALL FUNCTION 'SPELL_AMOUNT'

EXPORTING

AMOUNT = var1

CURRENCY = 'INR'

  • FILLER = ' '

LANGUAGE = SY-LANGU

IMPORTING

IN_WORDS = spell

  • 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.

Can any body help me....?

Regarda,

Prathima.M