cancel
Showing results for 
Search instead for 
Did you mean: 

Smart Forms - Page Break

Former Member
0 Kudos

Hi,

I have a Created smartforms with 10 PURCHASE ORDER and i Want TO PRINT ONLY 5 IN EACH PAGE.. I WANT TO CREATE a page break .

how to do it..? , Give me the Sample Code .

Regards

Vel

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Take the varibale for count and increment with everey line item

Craete a command node and with condition

count > 5 .

Former Member
0 Kudos

>

> Take the varibale for count and increment with everey line item

> Craete a command node and with condition

> count > 5 .

Count > 5 would trigger a new page for every line item after 5th one, so it should be count = 5 only.

or the count needs to be reset after the page break

@vel

I guess the simplest solution is to do as suggested by chenna kesava that the main window be adjusted till u get exactly five line items, make sure u have implemented page protection on the line items.

кu03B1ятu03B9к

Edited by: kartik tarla on Mar 11, 2009 2:13 PM

Answers (4)

Answers (4)

Former Member
0 Kudos

i got the relavent answer tks to all

Former Member
0 Kudos

Hi,

check this wiki to meet your requirement

[Page Break in smartforms|https://wiki.sdn.sap.com/wiki/x/dAHDB]

in that wiki just change the command window condition with a local variable say

w_count = 5

in the program lines window

increase the counter.

w_count = w_count + 1.
if w_count > 5.
w_count = 1.
endif.

this will definitely solve the poroblem

regards

sarves

Former Member
0 Kudos

first of all. Dont use all bold when posting a question.

now coming to ur solution, use a counter count ur line items and after ur table node or loop which u are using to print line items use a command node, in the command node give the next page as the current page itself and in conditions tab give a condition that v_count = 5.

кu03B1ятu03B9к

Former Member
0 Kudos

decrease the MAIN window and check it... give the hight of main window is 36 to 40MM