‎2007 Feb 05 10:33 PM
Hello friends,
I am working on scripts and am facing a problem.
I have a select-options in my print program for invoice number.
When i look only for one invoice number the script works just fine and I see the result on first page of the script. However when i use a range if invoice numbers I want to see every invoice detail in a different page, but i see all the results only on one page and in the header details its printing the last invoice number and the customer details.
Any suggestions.
Madhu.
‎2007 Feb 06 12:00 AM
Hi Madhu,
Open the Form once 'OPEN_FORM' and loop at the internal table where you have the invoice details use 'START_FORM' , 'WRITE_FORM' and 'END_FORM' and close the loop. for this use 'CLOSE_FORM'. This should handle multiple invoice numbers and output them in diffrent pages.
Srini
‎2007 Feb 06 12:00 AM
Hi Madhu,
Open the Form once 'OPEN_FORM' and loop at the internal table where you have the invoice details use 'START_FORM' , 'WRITE_FORM' and 'END_FORM' and close the loop. for this use 'CLOSE_FORM'. This should handle multiple invoice numbers and output them in diffrent pages.
Srini
‎2007 Feb 06 12:20 AM
Hi,
After the start_form, use a loop...endloop and call the write_form inside this.
Before the endloop stmt. call CALL FUNCTION 'CONTROL_FORM'
EXPORTING
command = 'NEW-PAGE'
EXCEPTIONS
unopened = 1
unstarted = 2
OTHERS = 3.
to have the next invoice to be printed on a new page.
Regards
Subramanian
‎2007 Feb 06 12:45 AM