‎2008 Dec 17 10:13 AM
Hi Experts,
I wanna to display net value in word. I am using spell_amount. But it is not display in the form print preview. when i checked in the debugging mode amount in words are coming in to the variable but when i go for print preview it is not displaying the amount in word. Here I am sending the code which i have used. In smartform i declared as &V_DESC&.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
AMOUNT = P_AMOUNT
CURRENCY = 'INR'
FILLER = ' '
LANGUAGE = SY-LANGU
IMPORTING
IN_WORDS = S_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.
concatenate s_spell-word 'RUPEES AND'
s_spell-decword 'PAISE'
into v_desc separated by space.
ENDIF.
thanks.
‎2008 Dec 17 10:21 AM
Did u pass v_desc in the output parameters of the node where u have calculated it.
‎2008 Dec 17 10:31 AM
‎2008 Dec 17 10:37 AM
‎2008 Dec 17 10:54 AM