Show TOC

CLOSE_FORMLocate this document in the navigation structure

Use

The function module closes the form opened using OPEN_FORM. Possible closing operations on the form last opened are carried out.

Form printing must be completed by this function module. If this is not carried out, nothing is printed or displayed on the screen.

Function call:

CALL FUNCTION 'CLOSE_FORM'
IMPORTING RESULT =
TABLES OTFDATA = ?...
EXCEPTIONS UNOPENED =
            

Import parameter:

RESULT

The parameter contains results of the print formatting process. By comparing the corresponding fields of parameter OPTIONS for OPEN_FORM with those of parameter RESULT, you can determine whether the user made changes to any settings on the print control screen.

Structure: ITCPP

Among others, the structure ITCPP contains a field with the name of USEREXIT. This field tells you how the user left the print view:

Characters E, B, or C:

EXIT <-> E

BACK <-> B

CANCEL <-> C

Table parameters:

OTFDATA

If in the parameter OPTIONS the field TDGETOTF contains 'X', the system returns the formatted output in the OTF format in the optional table parameter OTFDATA.

In this case spool or printer output, screen display, or fax/telex/teletex output is not carried out.

Structure: ITCOO

Exceptions:

UNOPENED

The current form function could not be executed as the form output was not initialized with OPEN_FORM.