2006 Jun 30 4:00 PM
Hi,
In the Main window of the script the line item details are being printed.
The format of the details is as follows:
Item Quantity Unit Price Unit Currency
0001 1.000 EA 10.00 EA USD
Your Proposed delivery date:----
The above statement ends in that page and the rest of the data for the same line item is overflowing to the next page i.e. this statement appears in the next page 'Your material no.----
'
Now in the next page it should appear like this
ITEM 0001 (Continued)
Your material no.----
Solution for this is appreciated in this regard.
Thanks and regards
Bhaskar
2006 Jun 30 6:03 PM
I think you are writing all 3 item details with one WRITE_FORM.
This solution assumes that you know the number of lines main window can print and each item prints fixed numebr of lines, 3 in this case.
Create a new text element in the main window:
/E TOP1
&ITM_CTD&
In the print program:
Before every WRITE_FORM to BODY, cumulate line counter variable.
If you are printing 3 lines: LINE_COUNT = LINE_COUNT+3.
if LINE_COUNT eq TOTAL_MAIN_WINDOW_LINES
clear: ITEM_CTD, LINE_COUNT.
elseif LINE_COUNT gt TOTAL_MAIN_WINDOW_LINES
concatenate ITEM# 'Continued' into ITM_CTD.
clear LINE_COUNT
endif.
After calling first WRITE_FORM with parameter TYPE = BODY
call WRITE_FORM with TYPE = TOP and ELEMENT = TOP1 once.
Regards
Sridhar