Output Areas in the Main Window
Use
For outputting texts in the main window, or, more correctly, in a page window of type MAIN, you can choose one of three different areas (see figure below). The upper margin of the main window is called TOP area; the lower margin is called BOTTOM area. The area in-between is called BODY of the main window. The sizes of the TOP and BOTTOM areas depend on the sizes of their text contents. The BODY area varies accordingly.
The different areas in the main window
TOP, BODY, and BOTTOM Areas of a Main Window
You can determine or modify the contents of the three areas TOP, BODY, and BOTTOM dynamically during the output of the form. SAPscript automatically outputs these areas on each page of a form that contains a main window. When calling the function modules WRITE_FORM or WRITE_FORM_LINES, the parameter TYPE determines into which of the three areas to output the text. If this parameter is missing in the call, the system positions the output in the BODY area.
The call in the print program then looks like this:
loop at bookings where...
call function 'WRITE_FORM'
exporting
element = 'BOOKING'
type = 'BODY'
window = 'MAIN'.
endloop.