ABAP Keyword Documentation → ABAP - Reference → Calling and leaving program units → Calling ABAP Programs → Calling Executable Programs → SUBMIT → SUBMIT - list_options
SUBMIT - spool_options
Other versions: 7.31 | 7.40 | 7.54
Syntax
... SPOOL PARAMETERS pri_params
[ARCHIVE PARAMETERS arc_params]
WITHOUT SPOOL DYNPRO... .
Effect
These additions are used to supply the spool request with print and archiving parameters. The latter are required if the print list is to be archived using ArchiveLink.
The addition SPOOL PARAMETERS
passes the print parameters in a structure
pri_params
of data type PRI_PARAMS from ABAP
Dictionary. If archiving is specified in pri_params
, you must pass archiving
parameters using the addition ARCHIVE PARAMETERS
in a structure arc_params
of data type ARC_PARAMS from ABAP Dictionary.
Structures of data types PRI_PARAMS and ARC_PARAMS must be filled by the function module
GET_PRINT_PARAMETERS. When calling the
function module, you can set individual or all print parameters in the program and/or display a print
dialog window. The function module creates a set of valid print and archiving parameters for use as pri_params
and arc_params
and adds these to its output parameters.
If the structures pri_params
or arc_params
are
initial, the print parameters or archiving parameters created by a call of the function modules GET_PRINT_PARAMETERS with initial input values are used.
The addition WITHOUT SPOOL DYNPRO
suppresses the print dialog box that is displayed as standard when you use the addition TO SAP-SPOOL
.
Notes
- These additions must always be used as indicated here. It is particularly important that the standard print dialog box be suppressed. If the standard print dialog box is used, inconsistent parameters may be passed on to the program accessed if the user chooses Cancel to exit the dialog box. Instead, the print dialog box can be displayed when the function module GET_PRINT_PARAMETERS is executed. This function module has an output parameter VALID that indicates the consistency of the print parameters created.
-
Use of the addition
WITHOUT SPOOL DYNPRO
without passing print parameters is no longer allowed in ABAP objects. In other objects, the print parameters are derived from the user master record, if possible. -
Calling the print dialog box with
SUBMIT TO SAP-SPOOL
has the disadvantage that the Back function is not available. After using this kind of statement to switch to printing, the system cannot return to a point before the statement in question. You can only exit printing using Exit, which ends the entire program. If you use Cancel, inconsistent print parameters can be passed to the program. To disconnect the print dialog box from switching to printing, it is recommended that you call the function module GET_PRINT_PARAMETERS. -
The same obsolete additions apply to the
statement
SUBMIT TO SAP-SPOOL
as to the statementNEW-PAGE PRINT ON
.