The print program is used to print forms. The program retieves the
necesary data from datbase tables, defines the order of in which
text elements are printed, chooses a form for printing and selects
an output device and print options.
* Open form
printing - Must be called before working with any of the other form
function modules.
Must be ended with function module CLOSE FORM
call function 'OPEN_FORM'.....
*To begin
several indentical forms containing different data within a single
spool request, begin each form using START_FORM, and end it using
END_FORM
call funtion 'START_FORM'.....
* Write
text elements to a window of the form
call function 'WRITE_FORM'.....
* Ends
form
call funtion 'END_FORM'.....
* Closes
form printing
call function 'CLOSE_FORM'....
Examples of function calls
OPEN
FORM
* Structure for the OPTIONS parameter
DATA BEGIN OF OPTIONS.
INCLUDE STRUCTURE ITCPO.
DATA END OF OPTIONS.
* Structure for Print options (return values) - Pages selected for
printing, Number of copies etc.
DATA BEGIN OF RESULT.
INCLUDE STRUCTURE ITCPP.
DATA END OF RESULT.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT
= RESULT