Skip to Content

Multiple blocks in script(cheque printing F110)

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Apr 27, 2012 at 02: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 27, 2012 at 05: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.

    Add a comment
    10|10000 characters needed characters exceeded

    • 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


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.