on 03-25-2008 1:00 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.