‎2005 Nov 29 9:55 AM
Hi all,
I have a Reqt. in smartform.let me explain u the scenario first.I have to create a print preview for collective invoicing.there will be 2 pages which will display the summmary details for the collective invoice and there will be 2 pages for child invoice.the problem i am facing is first i need to print 2 pages for the collective invoice and then the next 2 pages for child invoice and the (last 2 pages for the child invoice has to be repeated as many times as the no of child invoices for the collective invoice.please suggest me how this can be done.any inputs will be greatly appreciated.
‎2005 Nov 29 10:31 AM
Hi,
1. If u are displaying the child invoices for different numbers.
then give Loop and assign the Itab in DATA Tab.
Create Child invoice pages with in this loop.
For each value it will display the Child invoice pages.
2. If the child invoice number is not in loop.
create the child invoice display in main window.so that it will display everything.
3. Using program lines get the number of times to be displayed.and give the Child page for those number.
‎2005 Nov 29 10:59 AM
Hi,
Thanks for your reply.
Pages cannot be used in a loop.thats the problem.any other alternative?
‎2005 Nov 29 11:07 AM
Ravi,
What i think use Program lines under Loop control.
There you just pass the data to perticulat ITAB which
will display data again & again.
Regards,
Amey
‎2005 Nov 29 11:02 AM
Hi,
I think that is the problem.
you should not use pages in the loop.
otherwise it will be repeated no of times.
you need to some other work around.
Regards.
‎2005 Nov 29 11:32 AM
Hi Ravi,
For your requirement,
Have a loop on Collective Invoicing internal table, in which you display the summary details.
Within, this loop, loop on Child invoice internal table and print the invoice details.
Hope this helps.
Regards,
Raj