cancel
Showing results for 
Search instead for 
Did you mean: 

Secondary window to be printed on the last page the form

Former Member
0 Kudos

Hello,

Is there any way, by which we can show the defined secondary window on the last page of the form in smartform?

Only 1 page is defined in the smartform for the layout.

e.g. If no. of line items exceeds more than the size defined for it in the main window, then a new page is taken to print rest of the line items. then total (defined in the secondary window) of the line items must be displayed on the the last page of the form only in this case the last page is 2nd.

Thanks and Regards,

Paresh

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

>

> e.g. If no. of line items exceeds more than the size defined for it in the main window, then a new page is taken to print rest of the line items.

> Paresh

put a counter on which you are getting the line items.

for the last page, the counter should be equal to the number of line items in the table .. right?

so.. keep the number of records in another variable, lets say in the global initialization part.

and for the secondary window condition tab

keep

counter = gv_number_of_lines

only when this condition satisfies, the window will be triggered. and this condition will only be satisfied if all the items are covered => last page.

former_member205763
Active Contributor
0 Kudos

In the conditions tab there must be a checkbox "at the end of main window"

Use that.

ALternatively u can put a condition as

sfsy-page = sfsy-formpages

if this condition doesn't seem to work then make the window as final window