2006 Jun 23 3:26 PM
Hi,
I have a BULK ORDER ACKNOWLEDGE Script in which for every Sales Order Item it is printing the delivery date status for each sales item , which should be display only once before the terms and conditions on last page ..may i know wht r the steps & changes in print prog and form i have to make plz ..
thxs,
vind.
2006 Jun 23 3:30 PM
2006 Jun 23 3:37 PM
store the data in internal table itab.
in script create two text elements in main window.
/E:data
&itab-data&
/E:footer
/: write terms and condition.
in main program.
loop at itab.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'DATA'
WINDOW = 'MAIN'
.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'FOOTER'
WINDOW = 'MAIN'
.
reward points if you find this helpful.
2006 Jun 23 3:34 PM
hi,
in the last page of your form, just check the condition.
/: IF &NEXTPAGE& EQ 0
write the footer text..
/: ENDIF
Regards,
Richa
2006 Jun 23 3:36 PM
Vind,
Belive you are using Custom print program and script.
VBDKA-LFDAT will be the delivery order and you can check this values in the main window before you write your lineitem. That way you can validate your lineitems and print.
rgds,
TM
2006 Jun 23 6:34 PM
Hi Vinod,
Use the Main Window in the page. In the Main Window you have something called
<b>/: Bottom
&sy-datum&
/: Endbottom</b>
When you use this your date will be the last value which will be displayed. If you use this there is no need to check for any condition like next page or call a function module. What it does is, it writes all the contents in Main Window and after writing all that your Bottom .. Endbottom will be triggered so your value within Bottom .. Endbottom will be displayed.
Hope this solves ur issue.
Reply if you have any problem regarding the same.
Regards,
Tushar
2006 Jun 23 7:06 PM