Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform Last Page

Former Member
0 Kudos

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?

3 REPLIES 3

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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