on 11-20-2007 8:10 AM
Hi all,
Im working for cheque printing and in the Amount in words column....im getting the text in a single line...as i've made it as in my script.
(im moving the rate in to amount thru FM "HR_IN_CHG_INR_WRDS"....
and it displaying into a single line....)
But in every bank cheque...we have only a limit space for the first line and balance words should come in to the next line....How to achieve this in my form print.(when im giving the cheque(laser print) inside the printer for print)...
*******FYI..
now im getting it as
RUPEES Ninety Seven Thousand Thirty seven and four paise only.(its going out in my cheque as it's coming in a single line,going beyond the words column)
the above one...i want to print it as two lines as like in normal cheque...
what condition i've to give and how to split the text or make it to continue in the second line....
Pls do the needful with any examples or any coding.....
help needed
thanks & regards
sankar
Hi Sankar,
If you are using a script style.
Specify a Right Margin for the paragraph format.
It will wrap around automatically.
OR
use this FM
CALL FUNCTION 'TEXT_SPLIT'
EXPORTING
length = lx_length
text = amt_words_var
IMPORTING
line = part1
rest = part2.
Choose how many characters fit on one line and put that in lx_length.
This aoutomatically takes whole words into considraton
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Nehal,
the below one is my coding part........FYI
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
*************************
with the above code,im getting the amount field in a single line and it goes out beyond the line specified.
How to split it as a length basis as u said....pls explain in detail...
thanks & regards
sankar
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.