cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms. loop count - next page.

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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 .

Private_Member_17805
Participant
0 Kudos

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

Former Member
0 Kudos

Hi jayant,

I am facing a simialr problem.Could you please send me the screen shots as well.I had posted the same problem 2 days ago.My id is dishantb@gmail.com.

Thanks

Private_Member_17805
Participant
0 Kudos

Open a new thread dishant.

Private_Member_17805
Participant
0 Kudos

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>

Former Member
0 Kudos

Hi

Thanks.

But i m gettins error msg. %COMMAND1 - no new page allowed in table.

jai.

Former Member
0 Kudos

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.)

Private_Member_17805
Participant
0 Kudos

Hi Jeyaseelan award posts that you find useful

Dont put the command line inside the table.

Main Window.

Loop Node(loop itab)

Command Line

Table Node(Loop itab1)

Mark helpful posts.

Bye

Former Member
0 Kudos

hi,

with in the loop node Loop ITAB. i have a Temblate which displays the header details.

Private_Member_17805
Participant
0 Kudos

send me your mail id.

I ll send screen shots as to how it is to be done.

<b>Award Posts that are useful</b>

Former Member
0 Kudos

Thanks in advance.

My Id : gjeyaseelan@yahoo.co.in.

jai.

Former Member
0 Kudos

Hi,

Sorry.

could u pls send it to Other ID : Jeyaseelan.gurusamy@cambridge-asia.com

Former Member
0 Kudos

Hi Jayant I tried that.

sorry if i am disturbing u.

could u pls expand the node Page2 and send it to me.

jai.