Show TOC

CONTROL_FORMLocate this document in the navigation structure

Use

Use CONTROL_FORM to pass SAPscript control statements to the form.

Function call:

CALL FUNCTION 'CONTROL_FORM'
EXPORTING COMMAND = ?...
EXCEPTIONS UNOPENED =
UNSTARTED =
            

Export parameters:

COMMAND

Specification of the SAPscript command to be executed in ITF format. The command is specified without the command attribute '/:'.

Exceptions:

UNOPENED

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

UNSTARTED

A layout set was not opened.

Possible causes:

The form processing was started using OPEN_FORM without specifying a form name, but no form was opened yet using START_FORM.

The layout set last used was concluded with END_FORM but a new layout set was not opened with START_FORM.

The last filled page of the current form has no subsequent page. In this case, the system automatically terminates form printing after this page. You need no explicit END_FORM call.

In the current form, no page contains a main window, but a text element shall be output in the main window.