Skip to Content
author's profile photo
Former Member

Smartform Last Page

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?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • author's profile photo
    Former Member
    Oct 03, 2005 at 01: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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 03, 2005 at 01: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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 03, 2005 at 01: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

    Add comment
    10|10000 characters needed characters exceeded