04-27-2012 2:16 PM
Hi,
I am copying script for cheque printing(F110) along with print program.
I have one problem here. The customer wants that the same information(invoice no, amoun etc) is printed out in one page.
Please see the below.
-
MAIN WINDOW----
Invoice No Description Date Invoice Amt Discount Net Amount
Invoice #1 Test Description 1 08/10/20010 1,000.00 20.00 980.00
Invoice #2 Test Description 2 09/10/20010 1,500.00 0.00 1,500.00
Invoice #3 Test Description 3 09/15/20010 3,000.00 0.00 3,000.00
Invoice #4 Test Description 4 09/20/20010 500.00 0.00 500.00
Invoice #5 Test Description 5 09/30/20010 600.00 0.00 600.00
Invoice #6 Test Description 6 10/1/20010 900.00 0.00 900.00
-
-
MAIN WINDOW----
Invoice No Description Date Invoice Amt Discount Net Amount
Invoice #1 Test Description 1 08/10/20010 1,000.00 20.00 980.00
Invoice #2 Test Description 2 09/10/20010 1,500.00 0.00 1,500.00
Invoice #3 Test Description 3 09/15/20010 3,000.00 0.00 3,000.00
Invoice #4 Test Description 4 09/20/20010 500.00 0.00 500.00
Invoice #5 Test Description 5 09/30/20010 600.00 0.00 600.00
Invoice #6 Test Description 6 10/1/20010 900.00 0.00 900.00
-
I tried multiple main windows which is not working
i have coded with seconday window using the function module "WRITE_FORM_LINES"
For single page it is working fine but from second page in 2nd block same data is printing as firstpage.
Please suggest me is it possible to print secondary window in multiple pages .
Thanks in advance!
Thank you.
04-27-2012 3:14 PM
Hi,
You can not use Secondary window to print long data flow.Try to create one more main window where ever you required.Find out the FM write_form ,which is printing your main window data in your Print program.Under the FM ,write one more write_form to fill up the data into second main window.Now test it again and let me know ,what was happend.
best regards
Naresh Bammidi
04-27-2012 3:35 PM
Hi Naresh,
Thanks for your inputs
Iam trying to create another main window( type Main) its giving error as
" Type MAIN only permitted for main window MAIN"
Thanks,
Kamalakar.
04-30-2012 7:02 AM
Hey you can not create more than one MAIN window in scripts,but you can add MAIN window to the page upto 99 times.namely MAIN0,MAIN1...MAIN99.so go to page windows click on edit then there itself you can add one more main window .
best regards
Naresh Bammidi
04-27-2012 6:25 PM
Your post is not at all clear. What do you need to do? Do you have overflow for your remittance advice portion (the invoice list)? If so, what we do is print our first page, put bold VOID on the check part, print next, etc.. On last page, we actually output the check. Alternatively, print your check, and if you have overflow, output the remainder on a blank page that has you MAIN resized for the entire page. Not two main windows, it is your main window on multiple pages.
04-27-2012 8:04 PM
My Requrirement is to print invoice items twice in the same page fallowed cheque
i.e invoice details in the main window has to print twice as shown below.
Invoice No Description Date Invoice Amt Discount Net Amount
Invoice #1 Test Description 1 08/10/20010 1,000.00 20.00 980.00
Invoice #2 Test Description 2 09/10/20010 1,500.00 0.00 1,500.00
Invoice #3 Test Description 3 09/15/20010 3,000.00 0.00 3,000.00
Invoice #4 Test Description 4 09/20/20010 500.00 0.00 500.00
Invoice #5 Test Description 5 09/30/20010 600.00 0.00 600.00
Invoice #6 Test Description 6 10/1/20010 900.00 0.00 900.00
-
sub total
Invoice No Description Date Invoice Amt Discount Net Amount
Invoice #1 Test Description 1 08/10/20010 1,000.00 20.00 980.00
Invoice #2 Test Description 2 09/10/20010 1,500.00 0.00 1,500.00
Invoice #3 Test Description 3 09/15/20010 3,000.00 0.00 3,000.00
Invoice #4 Test Description 4 09/20/20010 500.00 0.00 500.00
Invoice #5 Test Description 5 09/30/20010 600.00 0.00 600.00
Invoice #6 Test Description 6 10/1/20010 900.00 0.00 900.00
-
sub total
My requirement is similar to below post but not able to get the solution
http://scn.sap.com/message/9046940
multiple main windows in sapscriptAs of now i created secondary window and printing using function module WRITE_FORM_LINES in print program,for single page I am able print but for multipages from second page secondary window is printing same data as first page