SAP Function SET_PRINT_PARAMETERS - Set Spool Print Parameters and Archive Parameters

Parameter Reference Type Length Default Optional Text
ARCHIVE_ID ARC_PARAMS-ARCHIV_ID C 2 C_CHAR_UNKNOWN X Default for archiving ID
ARCHIVE_INFO ARC_PARAMS-INFO C 3 C_CHAR_UNKNOWN X Additional information for report names
ARCHIVE_MODE PRI_PARAMS-ARMOD C 1 C_CHAR_UNKNOWN X Control of the printing and archiving
ARCHIVE_TEXT ARC_PARAMS-ARCTEXT C 40 C_CHAR_UNKNOWN X Info text for the archive request
AR_OBJECT ARC_PARAMS-AR_OBJECT C 10 C_CHAR_UNKNOWN X Archiving object
AUTHORITY PRI_PARAMS-PRBER C 12 C_CHAR_UNKNOWN X Default for 'authorization'
COPIES PRI_PARAMS-PRCOP N 3 C_NUM3_UNKNOWN X Default for 'number of copies'
COVER_PAGE PRI_PARAMS-PRBIG C 1 C_CHAR_UNKNOWN X Selection cover sheet output value
DATA_SET PRI_PARAMS-PRDSN C 6 C_CHAR_UNKNOWN X Default for name of the spool data
DEPARTMENT PRI_PARAMS-PRABT C 12 C_CHAR_UNKNOWN X Default for 'department'
DESTINATION PRI_PARAMS-PDEST C 4 C_CHAR_UNKNOWN X Default for 'output device'
EXPIRATION PRI_PARAMS-PEXPI N 1 C_NUM1_UNKNOWN X Default for 'retention period'
FOOT_LINE PRI_PARAMS-FOOTL C 1 C_CHAR_UNKNOWN X Footer line on/off
HOST_COVER_PAGE PRI_PARAMS-PRUNX C 1 C_CHAR_UNKNOWN X
IMMEDIATELY PRI_PARAMS-PRIMM C 1 C_CHAR_UNKNOWN X Default for 'Print immediately'
IN_ARCHIVE_PARAMETERS ARC_PARAMS u 332 SPACE X List of all archiving parameters
IN_PARAMETERS PRI_PARAMS u 196 SPACE X List of all default parameters
LAYOUT PRI_PARAMS-PAART C 16 C_CHAR_UNKNOWN X Default for 'format'
LINE_COUNT PRI_PARAMS-LINCT I 4 C_INT_UNKNOWN X Default for 'Rows'
LINE_SIZE PRI_PARAMS-LINSZ I 4 C_INT_UNKNOWN X Default for 'columns'
LIST_NAME PRI_PARAMS-PLIST C 12 C_CHAR_UNKNOWN X Default for 'spool request name'
LIST_TEXT PRI_PARAMS-PRTXT C 68 C_CHAR_UNKNOWN X Default for 'spool request text'
NEW_LIST_ID PRI_PARAMS-PRNEW C 1 C_CHAR_UNKNOWN X Default for 'New spool request'
PRIORITY PRI_PARAMS-PRIOT N 1 C_NUM1_UNKNOWN X
RECEIVER PRI_PARAMS-PRREC C 12 C_CHAR_UNKNOWN X Default for 'recipient'
RELEASE PRI_PARAMS-PRREL C 1 C_CHAR_UNKNOWN X Default for 'retention period'
SAP_COVER_PAGE PRI_PARAMS-PRSAP C 1 C_CHAR_UNKNOWN X Default for the output of the SAP cover sheet
SAP_OBJECT ARC_PARAMS-SAP_OBJECT C 10 C_CHAR_UNKNOWN X Name of the application for the archiving
TYPE PRI_PARAMS-PTYPE C 12 C_CHAR_UNKNOWN X Default 'Spool request type'

Functionality
The function module SET_PRINT_PARAMETERS sets the printparameters for the following print functions (seePrinting in ABAP/4):
Starting a a report with Execute + print. In this case, you mustcall the function module before the print parameter screen, i.e. duringone of the events INITIALIZATION or AT SELECTION-SCREEN.
Printing an online list. In this case, you must call thefunction module some time before the end of the program.
You can specify the default parameters together (via the structuresIN_PARAMETERS or IN_ARCHIVE_PARAMETERS) or individually (with theparameters DESTINATION, LIST_NAME etc.).
The print parameters LINE_SIZE and LINE_COUNT require thefollowing special handling:
With the function to print an online list, the LINE_SIZEparameter has no effect because the line width has already been setbefore printing and cannot be changed.
If you specify a value for LINE-SIZE in theREPORT or PROGRAMstatement, the LINE_SIZE parameter is ignored.
If you specify a value for LINE-COUNT in the REPORT orPROGRAM statement, the LINE_COUNT parameter is ignored.
* Normal setting of print parameters
INITIALIZATION.
CALL FUNCTION 'SET_PRINT_PARAMETERS'
EXPORTING LINE_COUNT = 55.
* Setting print parameters depending on a
* selection parameter
PARAMETERS:
LINCT LIKE PRI_PARAMS-LINCT.
AT SELECTION-SCREEN.
CALL FUNCTION 'SET_PRINT_PARAMETERS'
EXPORTING LINE_COUNT = LINCT.
Further information

1102694Acc/Def: Log output in separate spool jobs (2)
852551ABG: Log output in separate spool requests
1101594ABG: Log output in separate spool requests