SAP SUBMIT ABAP Statements



Get Example source ABAP code based on a different SAP table
  


ID SUBMIT
• SUBMIT ABAP Statement

SUBMIT
Short Reference

ABAP_SYNTAX
SUBMIT ${rep$|(name)$} $[selscreen_options $]
$[ list_options$]
$[job_options$]
$[AND RETURN$].

ABAP Addition
... AND RETURN

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.
The additions list_options can be used to affect the output medium and the page size of the basic list of the called program.
The program can be scheduled for background processing by specifying job_options.
The addition AND RETURN determines whether the calling program is ended or interrupted. It defines the behavior regarding the ABAP_ISESS and the behavior with respect to SAP LUWs.
When the statement SUBMIT is executed, an authorization check for the authorization group specified in the program properties is performed using the authorization object S_PROGRAM. The program property Start Using Variant is ignored in SUBMIT.