HI all,
(Attn:HI Perez,)
Im working on Cheque print(pre-printed script)...in that i want to display the amount into two lines....as available/specified as per Bank Cheque (leaf)format...
With the below code, im not getting the output as required...
FYI----in se38
*************************
DATA AMT LIKE REGUD-WAERS.
data: words(120) type c,AMOUNT(120).
data: ant like PC207-betrg,t like reguh-vblnr,t1 type int4.
FORM WORDS TABLES intab
STRUCTURE itcsy outtab
STRUCTURE itcsy.
READ TABLE intab INDEX 1.
t = intab-value.
select single RWBTR from reguh into ant where vblnr eq t.
ant = ant * ( -1 ).
CALL FUNCTION 'HR_IN_CHG_INR_WRDS'
EXPORTING
AMT_IN_NUM = ant
IMPORTING
AMT_IN_WORDS = words.
amount = words.
READ TABLE outtab INDEX 1.
MOVE WORDS TO outtab-value.
MODIFY outtab INDEX 1.
ENDFORM. "diff
*************************
in Script
PERFORM WORDS IN PROGRAM ZCHEQUE
USING ®UH-VBLNR&
CHANGING &AMOUNT&
ENDPERFORM
IF ®UH-HBKID& EQ 'ALLBK'
®uh-zaldt&
®UH-NAME1&
®Uh-rwbtr&
&AMOUNT&
ENDIF
************************************
just go thru the below code...and pls put ur comments in detail.....
Pls do advise....
thanks & regards
sankar