cancel
Showing results for 
Search instead for 
Did you mean: 

spell_amount

Former Member
0 Kudos

hello experts,

i am using spell_amount function but not getting output,

can any one pls tell how to pass those parameters, i have one amount field , thal value ineed to convert into words , but when i am executing my report its going into dump. when simply iam displaying that with write statement its showing in words after displying my smartform.

thanks

priyanshu

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Please check this

DATA: L_AMOUNT(10) TYPE N,
      SPELL LIKE SPELL.
       
CALL FUNCTION 'SPELL_AMOUNT'
       EXPORTING
            LANGUAGE = SY-LANGU
            CURRENCY = SY-WAERS
            AMOUNT   = L_AMOUNT
       IMPORTING
            IN_WORDS = SPELL.

reward if helpful

raam

Former Member
0 Kudos

Hi,

actually i have to print the data what i am getting in my internal table's amount field. and i need to display it on my smartform. but i am not getting. wt u sent i did bt still im its nt coming. is that table of type spell is also i have pass in form interface , i hav tried this also. wt should i do pls help.

thanks

priyanshu

Former Member
0 Kudos

Hello,

Pass the value in the call function in the print program and also in the smart form, in the form interface you need to assign.

Former Member
0 Kudos

Former Member
0 Kudos

Hello,

Please make sure the import params and the export params are of same type assignment as in the function module.