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: 

Query on Smartforms

Former Member
0 Kudos

Hi Experts,

I am working on a smartform , it has two windows

1) Header Window and 2) the Main Window.

My problem is after the loop in the main window prints all the records in the output, one extra page , with the header window details , is getting printed in the output.

This problem occurs if the last record printed from the loop is at the end of the main window ( which is also the end of page limit ).

Is there any way to stop the flow of processing after the loop completes ?

1 ACCEPTED SOLUTION

vinod_gunaware2
Active Contributor
0 Kudos

<b>Rules for Processing a Form</b>

The overview below lists the exact rules for processing a form:

1. Processing starts with the start page (the first page in the tree).

2. Processing of a page is executed in the sequence of the assigned windows in the tree.

3. Processing a window means processing the output control of the window (see also Output

Control [Seite 79]).

4. Processing of the main window on a page is finished:

i. If the main window is filled completely on the page and the output control has not yet

been processed to the end or

ii. If the output control has been processed to the end or

iii. If a manual page break (see also Page Sequence and Numbering [Seite 83]) is

reached.

5. Processing of a subwindow is finished:

i. If the subwindow is completely filled on the page or

ii. If the output control has been processed to the end.

6. After all windows of a page are processed, processing of the page is finished.

7. A page break to a new page occurs as soon as the processing of a page is finished and

i. The output control of the main window has not yet been completely processed or

ii. A manual page break was executed in the output control of the main window or

iii. The page does not contain a main window.

8. The new page is the static next page. If a new page is called by a manual page break with

page specification within the main window (dynamic next page), the system processes this

page.

9. Processing of the form ends if the processing of a page is finished and

i. On this page the output control of the main window has been finished and no manual

page break occurred at the end or

ii. On this page the output control of the main window has not been finished but there is

no next page (neither static nor dynamic) or

iii. This page does not contain a main window and no static next page exists.

The manual page break is executed only in the main window, which means that you

can specify it only in the output control of the main window.

For pages without a main window the system goes to the static next page after

processing all windows. If there is no next page, processing stops.

regards

vinod

5 REPLIES 5

Former Member
0 Kudos

Hi,

Try removing the header window in the NEXT PAGE.

Regards,

Anjali

vinod_gunaware2
Active Contributor
0 Kudos

<b>Rules for Processing a Form</b>

The overview below lists the exact rules for processing a form:

1. Processing starts with the start page (the first page in the tree).

2. Processing of a page is executed in the sequence of the assigned windows in the tree.

3. Processing a window means processing the output control of the window (see also Output

Control [Seite 79]).

4. Processing of the main window on a page is finished:

i. If the main window is filled completely on the page and the output control has not yet

been processed to the end or

ii. If the output control has been processed to the end or

iii. If a manual page break (see also Page Sequence and Numbering [Seite 83]) is

reached.

5. Processing of a subwindow is finished:

i. If the subwindow is completely filled on the page or

ii. If the output control has been processed to the end.

6. After all windows of a page are processed, processing of the page is finished.

7. A page break to a new page occurs as soon as the processing of a page is finished and

i. The output control of the main window has not yet been completely processed or

ii. A manual page break was executed in the output control of the main window or

iii. The page does not contain a main window.

8. The new page is the static next page. If a new page is called by a manual page break with

page specification within the main window (dynamic next page), the system processes this

page.

9. Processing of the form ends if the processing of a page is finished and

i. On this page the output control of the main window has been finished and no manual

page break occurred at the end or

ii. On this page the output control of the main window has not been finished but there is

no next page (neither static nor dynamic) or

iii. This page does not contain a main window and no static next page exists.

The manual page break is executed only in the main window, which means that you

can specify it only in the output control of the main window.

For pages without a main window the system goes to the static next page after

processing all windows. If there is no next page, processing stops.

regards

vinod

Former Member
0 Kudos

Hi Vinod,

Thanks for the good explaination.

I think my problem is the point no 4

Processing of the main window on a page is finished:

i. If the main window is filled completely on the page and the output control has not yet been processed to the end.

But here the temporary table details that I want to print are done (Before the main window finishes) , but as the output control has not finished processing , the control goes to the next page.

So can we somehow stop the processing of the output control ?

Thanks,

Ketan.

0 Kudos

Ketan,

I am not sure if there is not more data left to print, why is it printing a blank page.

Try to check the PAGE PROTECT parameter.

regards,

Ravi

Note : Please mark the helpful answers

Former Member
0 Kudos

Hi Ketan,

Even if there is a single extra character which cannot fit into the Main window of the first page, the page will overflow to the next page.

Try removing some characters from the last line of the main window.

Regards,

Subbu