Calling Executable Programs (Reports)
To call executable programs (reports) from within other programs, use the SUBMIT statement.
To set the name of the called program statically in the program coding, write:
Syntax
SUBMIT <rep> [AND RETURN] [<options>].
To set the name of the called executable program (report) dynamically at runtime, write:
Syntax
SUBMIT (<rep>) [AND RETURN] [<options>].
The first statement starts the executable program (report) <rep>, the second statement starts the executable program (report) whose name is stored in field <rep>.
If the system cannot find the specified executable program (report) while executing the program, a runtime error occurs. If you specify the executable program (report) statically, you can double-click on <rep> in the ABAP Editor to create, display, or modify the called executable program (report).
If you omit the AND RETURN option, the system deletes all data and list levels of the calling executable program (report). After terminating the called executable program (report), it returns to the level from which you started the calling executable program (report).
If you use AND RETURN, the system stores the data of the calling executable program (report) and returns to the calling executable program (report) after processing the called executable program (report). The system resumes executing the calling executable program (report) from the statement following the call. To exit a executable program (report) called via SUBMIT... AND RETURN from within the program, see
Any executable program (report) called using SUBMIT, independent of the AND RETURN option, can access the ABAP memory of the calling program including the data clusters stored in the ABAP memory. For more information on clusters, see
Data Clusters in ABAP Memory.The SUBMIT statement offers many other <options> for passing data and processing the called program. Some of them are described below.
For more information, read
Submitting Executable Programs (Reports) in the dialog programming part of this manual or the keyword documentation of SUBMIT.