Skip to Content
0
Former Member
Nov 20, 2007 at 12:51 PM

To display the amount text into two lines as per length of Cheque leaf

24 Views

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 &REGUH-VBLNR&

CHANGING &AMOUNT&

ENDPERFORM

IF &REGUH-HBKID& EQ 'ALLBK'

&reguh-zaldt&

&REGUH-NAME1&

&REGUh-rwbtr&

&AMOUNT&

ENDIF

************************************

just go thru the below code...and pls put ur comments in detail.....

Pls do advise....

thanks & regards

sankar