Skip to Content
0
Former Member
Aug 01, 2008 at 10:30 AM

HI ALL - SCRIPT ISSUE

20 Views

HI ALL

I HAVE WRITTEN FOLLOWING CODE IN SCRIPT SE71 FORM

PERFORM SPEL_AMT IN PROGRAM ZABC USING &AMOUNT& CHANGING &AMTWD&

AND THE FOLLOWING CODE IN FORM (IN SE38 PROGRAM)

data: var1 like bseg-dmbtr,

w_word(50) TYPE c.

form spel_amt tables intab structure itcsy

outtab structure itcsy.

LOOP AT OUTTAB.

read table intab index 1.

move intab-value to var1.

CALL FUNCTION 'HR_IN_CHG_INR_WRDS'

EXPORTING

amt_in_num = VAR1 " '1005.70'

IMPORTING

amt_in_words = w_word

EXCEPTIONS

data_type_mismatch = 1.

*WRITE: w_word.

READ TABLE OUTTAB INDEX 1.

IF OUTTAB-NAME = 'AMTWD'.

MOVE W_WORD TO OUTTAB-VALUE.

MODIFY OUTTAB.

ENDIF.

ENDLOOP.

endform.

BUT I AM NOT GETTING OUTPUT IN VARIABLE AMTWD.

WHAT IS WRONG IN THE ABOVE CODING.

I AMTRYING TO GET AMOUNT IN WORD IN AMTWD.

THANX IN ADV.

ROCKY