ABAP Keyword Documentation →  ABAP − Reference →  User Dialogs →  Classic Lists →  Spooling Lists →  Spool Parameters → 

Setting Program-Driven Spool Parameters

Spool and archiving parameters can only be set in a program using the following function module: GET_PRINT_PARAMETERS. If the corresponding structure is changed directly and then the parameters in question used in NEW-PAGE PRINT ON or SUBMIT TO SAP-SPOOL, a runtime error occurs. The GET_PRINT_PARAMETERS function module can be used to execute the following functions:

The interface parameters for the function module are listed in Overview of All Spool Parameters.

The spool dialog box is displayed by default and can be switched off using the NO_DIALOG parameter. The values passed to the function module are used as the default values in the spool dialog box and can be overwritten there.

The function module gets all parameters that have not been set from the system, taking some values from the user master record. Dependent parameters are set automatically. If the function module is unable to generate a record with valid spool and archiving parameters, it generates an exception. The generated records are either complete or empty. The VALID export parameter (if the spool dialog box is being used) indicates whether or a complete record could be generated.

Notes