Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Spell_amount fm

Former Member
0 Likes
642

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.

4 REPLIES 4
Read only

Former Member
0 Likes
608

Did u pass v_desc in the output parameters of the node where u have calculated it.

Read only

Former Member
0 Likes
608

hi

refer

this can help u

Read only

Former Member
0 Likes
608

Why did you open a new thread for the same post??? Continue with the old one.......

Reported!!!!!!!

Read only

Former Member
0 Likes
608

Thanks,

it solved my issue.