on 03-11-2009 8:34 AM
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
Hi,
Take the varibale for count and increment with everey line item
Craete a command node and with condition
count > 5 .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> 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
i got the relavent answer tks to all
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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к
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
decrease the MAIN window and check it... give the hight of main window is 36 to 40MM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
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.