Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple blocks in script(cheque printing F110)

kamalakar_reddy2
Explorer
0 Kudos

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.

5 REPLIES 5

naresh_bammidi
Contributor
0 Kudos

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

0 Kudos

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.

0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

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