‎2008 Aug 27 9:50 AM
I created a smartform with one page. The next page is itself.
I import an internal table t_purinv into this form. And one record will fill the fields in only one page. If t_purinv has 4 records , there should be 4 pages in one print preview screen.
But I can't create a "LOOP" under the page. How can I see these 4 pages in one preview?
Can any expert help?
‎2008 Aug 27 9:57 AM
next page is used when the current main area is not long enough to print the contents.
in your case, you have to call the smart form 4 times and merge the calls to a single spool.
this can be controlled by the FM parameter 'control_parameters'.
Please refer to:
http://help.sap.com/saphelp_nw2004s/helpdata/en/71/9ccd9c8e0e11d4b608006094192fe3/content.htm
‎2008 Aug 27 2:42 PM
Hi,
You will have two options.
1. Restrict the main window size to one line item.
2. In main window while looping the internal table
in table main, at last give an alternative and provide command to trigger the next page.
Regards,
Raju.
‎2008 Aug 28 6:56 AM
under the loop you have to call command node(dynamic page break)
for new page.