10-03-2005 2:37 PM
I have smartform with 3 pages .
FIRST, REPEAT and LAST
FIRST page print only once.
REPEAT page print the main window so it will be printed as many time as need to finish main windows.
and the LAST page which I only want to print for specific condition.
so if that condition is false then only FIRST and REPEAT
page will print
and If that condition is true then
FIRST-> REPEAT -> REPEAT -> REPEAT.... -> LAST pages sould be printed.
How to achieve this functionality. Do I need to set the next page property of REPEAT window at run time. How to do so?
10-03-2005 2:45 PM
hi,
in the last page/ window you have conditions tab
you just specify the conditions then if the conditions is true then only the page/ window get print
cheers,
sasi
10-03-2005 2:52 PM
Hi
In REPEAT you should insert a command node to go to new page LAST.
You put your condition in the TAB condition of this node, another condition should be to run this node only after at the end of MAIN.
Max
10-03-2005 2:53 PM
In the main window of REPEAT , put an ABAP Code at the end. Here try to process the condition and set a FLAG ( defined in SMARTFORM Global Interface ). Then create a command node to trigger next page LAST , check this
http://help.sap.com//saphelp_470/helpdata/EN/70/e17a37dec511d3b575006094192fe3/content.htm.
In the conditions of command node use the flag to check that this node is executed only if flag is "X".
Cheers