What does it do? The statement SUBMIT> calls an executable program>. The executable program is executed as described under Flow of an Executable Program>. Depending on the addition AND RETURN> , the calling program is either ended or interrupted. If the called program contains a syntax error, an uncatchable exception is raised. The name> of the called program can be specified as follows:
rep> Direct static specification as rep>.
(name)> Specification as the content of a parenthesized flat character-like data object name>. The data object name> must contain the name of the program to be called in uppercase letters. The following can be specified for name>:
Literal or constant
If the data object name> is specified as a text field literal or as a constant, it can be evaluated statically and the called program is recognized as the used object.
Variable BEGIN_SECTION ID SUBMIT-DYNAMIC
If the data object name> is specified as a variable, it is specified only dynamically, and the content is not evaluated statically. END_SECTION ID SUBMIT-DYNAMIC When the statement is executed, name> is not evaluated until runtime in both cases. If the program specified in name> is not found, an uncatchable exception is raised. The additions have the following meaning:
The additions selscreen_options>> can be used to determine the selection screen> for the called program and to supply it with values.