Skip to Content
author's profile photo Former Member
Former Member

Problem in Tax invoice printing

Hi,

In the print out of tax invoice, there are 74 pages printed for 70 customers. Whenever there is a continuation of 2 pages for a single customer, in the second page the name of the next customer is printed. For example, in page no. 35 which is a continuation of page no. 34 for the same customer(MATNR-16149) , the customer details of the next customer(MATNR-16157) is printed. But this problem does not occur when a single customer's billing document is taken as input. Please help.

Regards,

Alka Nanda

Edited by: Rob Burbank on Dec 21, 2011 1:20 PM

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 21, 2011 at 09:14 AM

    Hello friend,

    Its a simple problem only.

    Its a simple problem with windows, as all of us know the main window is the only window which will grow according to the data. So you must have give the customer details in some other window which is repeating for all the page. or the window should be placed before the main window in the page so it repeats for all the page.

    Also you many think its printing the next record header because you might have used different loop for fetching header data and item data separately. Or else some other method which fetches the record for every page beginning.

    Its simple to handle it. Use commands and give page breaks at appropriate things so that your issue gets solved.

    Please let me know if you have any difficulties in solving this.

    Thanks,

    Sri Hari

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 21, 2011 at 11:48 AM

    Hi,

    Check the position of the NEXT_PAGE COMMAND node in the main window.

    Jshree

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 26, 2011 at 04:42 AM

    Hi,

    I tried changing the smartform page break (next Page) command. But the alignment of the output is disturbed now. Can anyone suggest me anything else other than next page command for this problem?

    Thanks n Regards

    Alka

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      1. Create Program lines in the main area.

      2. Create a variable say lv_var1 and increment it (lv_var = lv_var + 1,default the variable with '1' in the global definition).This is to find the sy-tabix value

      3.Check if lv_var ge 6.and set flag lv_flag eq X.

      4.Place the command node in the table->mainarea->last row->lastcell.In the command node->condition tab,place the condition lv_flag eq 'X'.

      this will print 6 records in the first page and moves the successive records to the second page.

      Jshree

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.