on 04-27-2007 6:35 AM
Hi all,
i have created a smart form for voucher printing.
->MainWindow.
->loop1 itab into itab.
->Template
->Table itab1 into itab1 where belnr = itab-belnr.
->Text signature.
->Text pageno1.
above are the nodes in my smartforms.
while printing it prints all documents in one page.
but i need to print one document in one page second in next page
(means for itab first loop shoud be in first page. second loop in second page..)
for each page signature and pageno shoud appear.
expecting the reply.
regards
jai.
Hi,
This is how it should be done
at first create two pages - Page1 (fisrt page ) and Page2 (next page).
Now in page1 ,
as all the nodes are in the main window ,
after Text pageno1 node . , just put the command node and set the next page as page2.
so that every new record of itab will be on new page.
DO NOT FORGET TO REWARD HELPFUL SOLUTIONS.....
Bye,
cheers .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey,
Create page 2 with main window of same width as the first page's main window.
No code or nodes go into page2.
This is should solve the problem.
Page1(Next Page is Page2)
Main Window
Loop itab
Command Line
Table loop itab1
Page 2(Next page is page2)
<b>Awards posts which are helpful</b>
Guess this should be the last of the posts
Page 1.
->MainWindow.
->loop1 itab into itab.
->Template
->Command Line (Goto Required Page)(Condition if sfsy-page ne 1)
This is to prevent the first document from getting printed in a new page.
From next time every new document will be printed in a new page.
->Table itab1 into itab1 where belnr = itab-belnr.
->Text signature.
->Text pageno1.
<b>
Award Points if found helpful</b>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
the problm is with LOOP.
i have two internal tables one for header <b>itab</b>(data from BKPF) other for Line itms<b>(BSEG) itab1</b>
My form should Print First DOcuments Header And Line Items In First Page.
and the next document on next page. (means when the loop runs 2 nd time those data shoud print in a next page.)
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.