cancel
Showing results for 
Search instead for 
Did you mean: 

QUERY ON SCRIPT.

Former Member
0 Kudos

how to use spell amount in medruck.can any one send me detail coding.iam getting a runtime error

UNABLE TO INTERPRET "XXXXXXXX,XX' AS NUMBER.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

U can use PERFORM in sapscript use the following syntax :

PERFORM PICK_WORDS IN PROGRAM Z_spellamt using &Amount&

CHANGING &words&.

REPORT Z_SPELLAMT.

FORM pick_words USING amount1 CHANGING words.

CALL FUNCTION 'SPELL_AMOUNT'

EXPORTING

AMOUNT = amount1

CURRENCY = ' '

LANGUAGE = SY-LANGU

IMPORTING

IN_WORDS = WORDS

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.

Use WORD for printing.

This will solve ur problem.

Regards,

Mayank

Answers (0)