Start of Content Area

Background documentation Formatting a Form Page   Locate the document in its SAP Library structure

The process of formatting the output is controlled by the text contents in the BODY area of the main window. If the main window is completely filled, or if the control statement NEW-PAGE appears in the main window, the system executes a page break. Only at this point in time the system formats the contents of the windows of the other types and replaces the variables with the current values.

For each other window, the system first outputs the default text element, if it exists. Then it processes and formats the list of the active text elements of the this window, which you set using the function module WRITE_FORM with the parameter FUNCTION (SET,APPEND, DELETE). Any text that does not fit into the page window is truncated.

As a consequence to this processing order of the composer, the reservation of space for the TOP and BOTTOM areas must be made beforehand. If the BODY area of the main window already contains text, a new text output to the TOP area does not appear on the current page but on the subsequent page in the TOP area. The same applies for the BOTTOM area. If the BODY area is filled to such an extent that the new BOTTOM text no longer fits into the current main window, this text appears on the subsequent page in the BOTTOM area.

Caution

A frequent error in application programs is that for the subsequent page (for example, NEXT) of a form no main window is defined. If the formatted text of the previous page did not fit into the corresponding main window, the composer searches the subsequent pages for a main window to output the text remainder. However, if the subsequent page of NEXT is NEXT again, the composer encounters an endless loop.

Note

To be able to create correct page breaks in longer text, you must define a main window on each form page.

 

 

End of Content Area